/*
 * Stats Grid
 *
 * Developed by: Rhyll Neri
 */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

.stat {
  text-align: center;
}

.stat--left { text-align: left; }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, var(--fs-64));
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--color-primary);
}

.stat--inverse .stat__value { color: var(--color-white); }
.stat--accent  .stat__value { color: var(--color-accent); }

.stat__label {
  margin-top: var(--space-3);
  font-size: var(--fs-13, 0.8125rem);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.stat--inverse .stat__label { color: rgba(255,255,255,0.7); }

.stat__divider {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-3) auto 0;
}

.stat--left .stat__divider { margin-left: 0; }

/* ---- Countdown ----
 * Four units must stay on one row at every width — a countdown that stacks
 * reads as four unrelated numbers — so this overrides the .stats breakpoints
 * rather than inheriting them. */
.stats--countdown {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 620px;
  margin: var(--space-7) auto 0;
}

.stats--countdown .stat__value {
  font-size: clamp(1.75rem, 7vw, var(--fs-56));
  font-variant-numeric: tabular-nums;
}

.stats--countdown .stat__label {
  margin-top: var(--space-2);
  font-size: var(--fs-12);
}

@media (max-width: 1024px) {
  .stats--countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .stats--countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
}
