/* Importa los estilos base */
@import url("memorial.css");

/* --- CORRECCIÓN GLOBAL: ESPACIADO DEL BODY --- */
body {
  padding-bottom: 130px !important; /* Ajuste para menú fijo + footer */
}

/* --- SECCIONES DE TRIBUTO: TEXTOS BLANCOS --- */
.tribute-section h2,
.tribute-section .form-label,
.tribute-section .btn,
.tribute-section .btn-group button,
.tribute-section .card-title,
.tribute-section p,
.candle-section h4,
.candle-section .btn,
.candle-section .form-control,
.candle-section .candle-counter p,
#candleCounterText {
  color: white !important;
}

/* Botón "Publicar" */
#tributeForm .btn-primary {
  color: white !important;
  background-color: #007bff !important;
  border-color: #007bff !important;
}

/* Formulario */
/* === HACER EL TEXTO DE LOS INPUTS OSCURO Y FONDO CLARO === */
#tributeName,
#tributeMessage {
  color: #000 !important; /* Texto negro */
  background-color: #fff !important; /* Fondo blanco */
  border: 1px solid #ced4da !important;
  border-radius: 8px;
  padding: 10px;
}

/* Estado de foco */
#tributeName:focus,
#tributeMessage:focus {
  color: #000 !important;
  background-color: #fff !important;
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Placeholder */
#tributeName::placeholder,
#tributeMessage::placeholder {
  color: #6c757d !important;
  opacity: 1;
}
#tributeForm .form-label {
  color: white !important;
}

/* Símbolos */
.tribute-symbol-btn {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}
.tribute-symbol-btn.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: white !important;
}

/* Título de tributo */
h2[data-lang-key="tribute-form-title"] {
  color: white !important;
  font-weight: 500;
}
.tribute-card .bi-pencil {
  color: #fff !important;
}

/* Botón de vela */
.light-candle-form .btn-warning {
  background-color: #ffd700;
  border-color: #ffd700;
  color: #000 !important;
}
.light-candle-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* --- VELA VIRTUAL --- */
@keyframes flicker {
  0%,
  100% {
    transform: translateX(-50%) scale(1) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: translateX(-48%) scale(1.05) rotate(2deg);
    opacity: 1;
  }
  50% {
    transform: translateX(-52%) scale(0.98) rotate(-1deg);
    opacity: 0.7;
  }
  75% {
    transform: translateX(-50%) scale(1.02) rotate(1deg);
    opacity: 0.9;
  }
}

/* --- MENÚ INFERIOR: MEJORA DE ESPACIADO --- */
.memorial-nav .nav-container {
  padding: 1.3rem 0 1.5rem !important;
  min-height: 75px !important;
}
.memorial-nav .nav-item {
  font-size: 0.95rem !important;
  padding: 0.6rem 0 !important;
}
.memorial-nav .nav-item i {
  margin-bottom: 0.5rem !important;
  font-size: 1.4rem !important;
}

/* --- FOOTER: LOGO NO CORTADO --- */
footer {
  margin-top: 1rem !important;
  padding: 1.2rem 0 0.8rem !important;
  background-color: #433d8b !important;
  text-align: center;
}
.footer-logo {
  width: 120px;
  height: auto;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.footer-logo:hover {
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 576px) {
  .memorial-nav .nav-container {
    padding: 1.4rem 0 1.6rem !important;
  }
  .memorial-nav .nav-item {
    font-size: 0.9rem !important;
  }
  .footer-logo {
    width: 100px;
  }
  footer {
    padding: 1rem 0 0.6rem;
  }
}
/* === HACER BLANCO EL TÍTULO "TRIBUTOS" Y SU ÍCONO === */
h2[data-lang-key="tributes"] {
  color: white !important;
}

/* Ícono del título */
h2[data-lang-key="tributes"] .bi-chat-heart {
  color: white !important;
  margin-right: 0.5rem;
}
/* --- VELA VIRTUAL (animación realista) --- */
.candle-container {
  position: relative;
  display: inline-block;
  margin: 30px auto;
  width: 410px;
  height: 410px;
  margin: 60px auto;
  overflow: hidden;
}

.virtual-candle {
  width: 100%;
  height: auto;
  filter: brightness(1.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flame {
  position: absolute;
  top: 50px; /* Bajamos la llama */
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 60px;
  background: radial-gradient(circle at 50% 100%, #ff6b35, #ffd700);
  border-radius: 50% 50% 20% 20%;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 40px #ff6b35, 0 0 60px #ffd700;
  filter: blur(1px);
  z-index: 2;
}

.flame.active {
  opacity: 1;
  animation: flicker 1.2s ease-in-out infinite alternate;
}
/* === HACER EL TEXTOS DEL INPUT OSCURO === */
.light-candle-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 500;
}
