/**
 * ============================================================================
 * GORILLA NUTRITION SINALOA - Stats Strip CSS
 * ============================================================================
 *
 * Barra horizontal de estadísticas con 4 columnas.
 * Incluye animaciones pro: conteo ascendente, shimmer dorado, glow pulse,
 * barra expansiva y overlay animado.
 *
 * @package Gorilla_Nutrition
 * @since   1.0.0
 */

/* ─── Keyframes ───────────────────────────────────────────────────────── */

@keyframes overlayShimmer {
  0%   { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

@keyframes statShimmer {
  0%   { background-position: -300% center; }
  100% { background-position: 300% center; }
}

@keyframes statGlowPulse {
  0%   { background-color: transparent; }
  35%  { background-color: rgba(201, 169, 79, 0.07); }
  100% { background-color: transparent; }
}

/* ─── Strip ───────────────────────────────────────────────────────────── */

.stats-strip {
  background: linear-gradient(100deg, #0f0b03 0%, #1a1204 40%, #0f0b03 100%);
  border-top: 1px solid rgba(201, 169, 79, 0.15);
  border-bottom: 1px solid rgba(201, 169, 79, 0.15);
  padding: 0 var(--container-padding);
  position: relative;
  overflow: hidden;
}

/** Overlay dorado animado — shimmer de izquierda a derecha */
.stats-strip__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent          0%,
    rgba(201,169,79,0.09) 25%,
    rgba(255,240,160,0.06) 50%,
    rgba(201,169,79,0.09) 75%,
    transparent          100%
  );
  background-size: 300% 100%;
  opacity: 1;
  pointer-events: none;
  animation: overlayShimmer 5s ease-in-out infinite;
}

.stats-strip__grid {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* ─── Item de Stat ────────────────────────────────────────────────────── */

.stat-item {
  text-align: center;
  padding: 44px 20px;
  border-right: 1px solid var(--color-border-gold);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

/* Override reveal genérico: añadir escala para mayor dramatismo */
.stat-item[data-reveal] {
  transform: translateY(40px) scale(0.88);
}

.stat-item[data-reveal].revealed {
  transform: translateY(0) scale(1);
}

/* Glow pulse al quedar visible */
.stat-item.revealed {
  animation: statGlowPulse 1.6s ease-out forwards;
}

/* ─── Valor numérico ──────────────────────────────────────────────────── */

.stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 68px);
  color: var(--color-gold);
  letter-spacing: 2px;
  line-height: 1;
  position: relative;
  display: inline-block;
}

/* Barra dorada que crece desde el centro al revelar */
.stat-item__value::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 10px auto 0;
  border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.stat-item.revealed .stat-item__value::after {
  width: 52px;
}

/* Shimmer dorado al completar el contador (clase añadida por JS) */
.stat-item__value.counter-done {
  background: linear-gradient(
    90deg,
    var(--color-gold-dark) 0%,
    #fff6c8 35%,
    var(--color-gold)      55%,
    var(--color-gold-dark) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: statShimmer 0.75s ease-in-out forwards;
}

/* ─── Label ───────────────────────────────────────────────────────────── */

.stat-item__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(201, 169, 79, 0.45);
  margin-top: 5px;
}
