/* ═══════════════════════════════════════════════════════════
   TARA Institut — Stats Section
   ═══════════════════════════════════════════════════════════ */

.stats-section {
  background: var(--color-navy);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(35, 51, 160, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 90% 20%, rgba(212, 35, 35, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="dark"] .stats-section { background: #040B1A; }

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-right: 1px solid rgba(255,255,255,0.08);
}

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

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.04em;
  width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: var(--weight-black);
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.stat-value span {
  color: var(--color-red-light);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(241,245,249,0.55);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  max-width: 16ch;
  text-align: center;
  margin-inline: auto;
}

/* Stat item highlight (featured — 1500+) */
.stat-item--featured .stat-value {
  background: linear-gradient(135deg, #E85555 0%, #FF8080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item--featured .stat-value span {
  -webkit-text-fill-color: unset;
  background: none;
  color: var(--color-red-light);
}

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

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; }
}
