/* ===================== */
/* SEÇÃO DOAÇÃO */
/* ===================== */

.donation-section {
  min-height: 100vh;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  background:
    linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.97)),
    url("../img/noticia3.jpg") center/cover no-repeat;
}

/* ===================== */
/* CONTAINER */
/* ===================== */

.donation-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

/* ===================== */
/* LOGO */
/* ===================== */

.donation-logo {
  width: 220px;
  filter: drop-shadow(0 0 25px rgba(255,140,0,0.6));
  animation: slideLeft 1s ease forwards;
}

/* ===================== */
/* CONTEÚDO */
/* ===================== */

.donation-content {
  max-width: 700px;
}

/* ===================== */
/* TÍTULO */
/* ===================== */

.donation-title {
  font-size: 70px;
  color: #e0c27a;
  margin-bottom: 25px;
  text-shadow:
    0 0 20px rgba(224,194,122,0.6),
    0 0 60px rgba(224,194,122,0.4);
  animation: glowPulse 2.5s infinite, slideRight 1s ease forwards;
}

/* ===================== */
/* TEXTO */
/* ===================== */

.donation-text {
  font-size: 22px;
  line-height: 1.7;
  color: #ddd;
  margin-bottom: 45px;
  animation: slideRight 1.2s ease forwards;
}

/* ===================== */
/* BOTÃO PRINCIPAL */
/* ===================== */

.donation-btn {
  padding: 16px 50px;
  font-size: 18px;
  background: linear-gradient(145deg, #3b2a1a, #5a3a20);
  color: #e0c27a;
  border: 2px solid #6b4b2a;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 1px;

  box-shadow:
    0 0 18px rgba(224,194,122,0.35),
    inset 0 0 8px rgba(0,0,0,0.7);

  transition: 0.35s;
  animation: slideRight 1.4s ease forwards;
}

.donation-btn:hover {
  box-shadow:
    0 0 30px rgba(224,194,122,0.6),
    inset 0 0 10px rgba(0,0,0,0.8);
}

.donation-btn:active {
  transform: scale(0.97);
}

/* ===================== */
/* MODAL */
/* ===================== */

.donation-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.donation-modal.active {
  opacity: 1;
  pointer-events: all;
}

/* ===================== */
/* CAIXA MODAL */
/* ===================== */

.donation-modal-box {
  background: #050505;
  color: #fff;
  padding: 60px 70px;
  max-width: 650px;
  width: 92%;
  border-radius: 20px;
  text-align: center;
  position: relative;

  box-shadow:
    0 0 40px rgba(0,0,0,0.9),
    0 0 80px rgba(224,194,122,0.15);
}

/* ===================== */
/* TEXTOS MODAL */
/* ===================== */

.donation-modal-box h3 {
  font-size: 42px;
  color: #e0c27a;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(224,194,122,0.6);
}

.modal-text {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 18px;
}

/* ===================== */
/* SELECT */
/* ===================== */

#donationValue {
  width: 100%;
  margin-top: 20px;
  padding: 12px 20px;
  background: #0e0e0e;
  color: #e0c27a;
  border: 2px solid #6b4b2a;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  box-shadow:
    inset 0 0 10px rgba(0,0,0,0.8),
    0 0 15px rgba(224,194,122,0.25);

  transition: 0.3s;
}

#donationValue:hover,
#donationValue:focus {
  border-color: #e0c27a;
  box-shadow: 0 0 25px rgba(224,194,122,0.5);
}

/* ===================== */
/* INFO COINS */
/* ===================== */

.coins-info {
  margin: 25px 0;
  font-size: 17px;
  color: #ddd;
}

/* ===================== */
/* BOTÃO CONFIRMAR */
/* ===================== */

.confirm-donation {
  width: 100%;
  padding: 15px;
  background: linear-gradient(145deg, #3b2a1a, #5a3a20);
  color: #e0c27a;
  border: 2px solid #6b4b2a;
  border-radius: 40px;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 1px;

  box-shadow:
    0 0 20px rgba(224,194,122,0.4),
    inset 0 0 8px rgba(0,0,0,0.7);

  transition: 0.35s;
}

.confirm-donation:hover {
  box-shadow:
    0 0 35px rgba(224,194,122,0.7),
    inset 0 0 10px rgba(0,0,0,0.8);
}

.confirm-donation:active {
  transform: scale(0.96);
}

/* ===================== */
/* ANIMAÇÕES */
/* ===================== */

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 10px rgba(224,194,122,0.4);
  }
  50% {
    text-shadow: 0 0 30px rgba(224,194,122,0.9);
  }
  100% {
    text-shadow: 0 0 10px rgba(224,194,122,0.4);
  }
}

/* ===================== */
/* RESPONSIVO */
/* ===================== */

@media (max-width: 900px) {
  .donation-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .donation-title {
    font-size: 46px;
  }

  .donation-modal-box {
    padding: 40px 30px;
  }
}
/* ===================== */
/* AJUSTE LOGO */
/* ===================== */

/* Logo da seção principal */
.donation-section .donation-logo {
  width: 220px;
}

/* Logo do modal (menor) */
.modal-logo {
  width: 120px;
  margin: 0 auto 25px;
  display: block;
  filter: drop-shadow(0 0 15px rgba(224,194,122,0.4));
}
.modal-logo {
  animation: glowPulse 3s infinite;
}
/* ===================== */
/* BAÚ DE DOAÇÃO */
/* ===================== */

.donation-chest {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.donation-chest img {
  width: 100%;
  height: auto;
  display: block;

  filter: drop-shadow(0 0 45px rgba(255, 180, 60, 0.45));
  animation: chestFloat 4s ease-in-out infinite;
}

/* Animação flutuante RPG */
@keyframes chestFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}
@media (max-width: 768px) {
  .donation-chest {
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .donation-chest {
    max-width: 260px;
  }
}
/* ===================== */
/* BOTÃO FECHAR - ESTILO RPG */
/* ===================== */

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 44px;
  height: 44px;

  background: radial-gradient(circle at top, #6b4b2a, #2b1a0f);
  border: 2px solid #c9a35f;
  border-radius: 50%;

  color: #f5d88a;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;

  cursor: pointer;
  z-index: 10002;

  box-shadow:
    0 0 12px rgba(224, 194, 122, 0.5),
    inset 0 0 10px rgba(0,0,0,0.6);

  transition: 0.35s ease;
}

/* brilho + animação no hover */
.close-modal:hover {
  transform: scale(1.12) rotate(90deg);
  box-shadow:
    0 0 25px rgba(255, 215, 100, 0.9),
    inset 0 0 12px rgba(0,0,0,0.7);
  color: #fff2c2;
}

/* clique */
.close-modal:active {
  transform: scale(0.95);
}

/* remover estilos feios do navegador */
.close-modal:focus {
  outline: none;
}
