/* ===================== ESTILOS ESPECÍFICOS VIEW-STATS-LIKES ===================== */
/* Nota: Estilos base (fonts, reset, body, animaciones comunes) están en yonunca_base.css */

/* Layout específico para stats-likes: elementos desde arriba con márgenes relativos */
#view-stats-likes.spa-view {
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Ocultar scrollbar pero permitir scroll */
#view-stats-likes.spa-view::-webkit-scrollbar {
  display: none;
}

/* ===================== LOGO CONTAINER ESPECÍFICO STATS-LIKES ===================== */
/* Logo container único para stats-likes - sin herencia */
.logo-container_stats_likes {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 0;
  margin-top: 3vh;
  z-index: 10;
  background: transparent;
}

/* ===================== CONTAINER ESPECÍFICO STATS-LIKES ===================== */
#view-stats-likes .container {
  text-align: center;
  color: white;
  border-radius: 30vh;
  background-color: rgba(179, 136, 43, 0);
  width: 98%;
  height: auto;
}

#view-stats-likes .rowContainer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-radius: 5vh;
  background-color: rgba(179, 136, 43, 0);
  width: 98%;
  height: auto;
}

/* ===================== LOGO ESPECÍFICO STATS-LIKES ===================== */
/* Logo único para stats-likes - sin herencia */
.logo_stats_likes {
  margin-top: 0;
  width: 80vw;
  margin-bottom: 0;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  display: block;
  font-size: 8vw;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  /* La animación moveUpDown se controla desde spa_transitions.css */
}

/* ===================== LOTTIE CONTAINER ESPECÍFICO STATS-LIKES ===================== */
#view-stats-likes #lottie-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 200px;
  margin-bottom: 20px;
}

/* ===================== HEADINGS ESPECÍFICOS STATS-LIKES ===================== */
#view-stats-likes .title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 40px;
}

#view-stats-likes h1 {
  position: relative;
  margin-top: 15vh;
  margin-bottom: 0;
  font-size: 6vw;
  font-weight: bold;
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  letter-spacing: 0.2vw;
  color: white;
  text-shadow: 
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 0 10px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  line-height: 1.2;
  width: 100%;
  text-align: center;
}

#view-stats-likes h2 {
  margin-top: 8vh;
  margin-bottom: 0;
  font-size: 5vw;
  font-weight: bold;
  color: white;
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  letter-spacing: 0.2vw;
  text-shadow: 
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 0 10px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  line-height: 1.2;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  animation: fraseGlow 3s ease-in-out infinite alternate;
  position: relative;
  word-wrap: break-word;
}

@keyframes fraseGlow {
  0% {
    text-shadow: 
      -2px -2px 0 #000,
      2px -2px 0 #000,
      -2px 2px 0 #000,
      2px 2px 0 #000,
      0 0 10px rgba(0, 0, 0, 0.8),
      0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 
      -2px -2px 0 #000,
      2px -2px 0 #000,
      -2px 2px 0 #000,
      2px 2px 0 #000,
      0 0 10px rgba(0, 0, 0, 0.8),
      0 0 30px rgba(255, 255, 255, 0.6);
  }
}

#view-stats-likes h3 {
  font-size: 3vw;
  font-weight: bold;
  margin-top: 4vh;
  margin-bottom: 0;
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  letter-spacing: 0.2vw;
  color: white;
  text-shadow: 
    -1.5px -1.5px 0 #000,
    1.5px -1.5px 0 #000,
    -1.5px 1.5px 0 #000,
    1.5px 1.5px 0 #000,
    0 0 8px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  animation: autorPulse 2s ease-in-out infinite;
  line-height: 1.3;
  display: none;
  opacity: 0;
  visibility: hidden;
  position: relative;
  width: 100%;
  text-align: center;
}

/* Mostrar autor solo cuando la frase esté completa */
#view-stats-likes h3.show {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: autorPulse 2s ease-in-out infinite, fadeInAutor 0.5s ease-in-out;
}

@keyframes fadeInAutor {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes autorPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

/* ===================== CONTENEDORES ESPECÍFICOS STATS-LIKES ===================== */
#view-stats-likes .overlay-text {
  position: relative;
  font-weight: bold;
  z-index: 2;
  text-align: center;
  margin-bottom: 1rem;
}

#view-stats-likes .frase-container {
  position: relative;
  margin: 2vh auto;
  max-width: 85vw;
  width: 100%;
  text-align: center;
}

@keyframes containerFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

#view-stats-likes #lottie-background {
  position: fixed;
  margin-top: -43vh;
  left: 50%;
  width: 90vw;
  height: auto;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

/* ===================== ICONO ESPECÍFICO STATS-LIKES ===================== */
#view-stats-likes .icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

#view-stats-likes .icon-image {
  width: 5vw;
  height: auto;
}

/* ===================== AUTHOR AND BTN ESPECÍFICO STATS-LIKES ===================== */
#view-stats-likes .author-and-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  width: 100%;
}

#view-stats-likes .author-and-btn h3 {
  margin: 0;
  text-align: center;
}

/* ===================== BOTÓN REINICIAR ESPECÍFICO STATS-LIKES ===================== */
#view-stats-likes .reiniciar {
  position: fixed !important;
  bottom: 3vh !important;
  right: 2.5vw !important;
  left: auto !important;
  top: auto !important;
  padding: 0.7em 1.6em;
  background: linear-gradient(90deg, #ef4444 60%, #fca5a5 100%);
  color: #fff;
  border: none;
  border-radius: 1.5em;
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(239,68,68,0.18);
  cursor: pointer;
  z-index: 99999 !important;
  transition: background 0.2s, transform 0.1s;
  transform: translateZ(0) !important;
  will-change: transform;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
}

#view-stats-likes .reiniciar:hover {
  background: linear-gradient(90deg, #b91c1c 60%, #f87171 100%);
  transform: scale(1.05);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .logo-container_stats_likes {
    margin-top: 2vh;
  }
  
  #view-stats-likes h1 {
    font-size: 7vw;
    margin-top: 12vh;
    letter-spacing: 0.1vw;
  }
  
  #view-stats-likes h2 {
    font-size: 6vw;
    margin-top: 6vh;
    letter-spacing: 0.1vw;
  }
  
  #view-stats-likes h3 {
    font-size: 3.5vw;
    margin-top: 3vh;
    letter-spacing: 0.1vw;
  }
  
  #view-stats-likes .frase-container {
    padding: 2vh 3vw;
    margin: 1vh auto;
    max-width: 90vw;
  }
  
  #view-stats-likes .reiniciar {
    bottom: 2vh;
    right: 2vw;
    padding: 0.6em 1.2em;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-container_stats_likes {
    margin-top: 1vh;
  }
  
  #view-stats-likes h1 {
    font-size: 8vw;
    margin-top: 10vh;
    letter-spacing: 0.1vw;
  }
  
  #view-stats-likes h2 {
    font-size: 6.5vw;
    margin-top: 5vh;
    line-height: 1.3;
    letter-spacing: 0.1vw;
  }
  
  #view-stats-likes h3 {
    font-size: 4vw;
    margin-top: 2vh;
    letter-spacing: 0.1vw;
  }
  
  #view-stats-likes .frase-container {
    padding: 1.5vh 4vw;
    margin: 1vh auto;
    max-width: 92vw;
  }
  
  #view-stats-likes .reiniciar {
    bottom: 1.5vh;
    right: 1.5vw;
    padding: 0.5em 1em;
    font-size: 0.9rem;
  }
}
