/**
 * PCTechComVn — Stats Bar CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 3)
 *
 * Stats counter section: 4-col grid, dark bg, animated numbers.
 * Data from ACF Options: stats_items repeater.
 * JS: counter.js (Sprint 0) — IntersectionObserver count-up.
 */

/* ═══════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════ */
.stats {
  background: var(--blue-dark);
  padding: 48px 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

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

.stat-num {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════
   PROMO COUNTDOWN BAR
   ═══════════════════════════════════════════════ */
.promo-countdown {
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--orange-dark));
  padding: 14px 0;
  color: var(--white);
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-text {
  font-size: 0.9rem;
  font-weight: 600;
}

#countdown {
  display: flex;
  gap: 6px;
  font-weight: 800;
  font-size: 1rem;
}


/* ═══════════════════════════════════════════════
   SLOT 50K BAR
   ═══════════════════════════════════════════════ */
.slot-50k-bar {
  background: linear-gradient(90deg, var(--green), #16a34a);
  padding: 12px 0;
  color: var(--white);
  font-size: 0.88rem;
}

.slot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.slot-hold-timer {
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  display: none;
}

.slot-hold-timer.active {
  display: inline-flex;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .stat-num {
    font-size: 2rem;
  }

  .promo-inner,
  .slot-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats {
    padding: 32px 0;
    margin-top: -24px;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }
}
