/* ==============================================
   COMPONENT: Stat Counter
   Description: Large stat value + label card — animates number on scroll into view
   ============================================== */

/* --- Block --- */

.stat-counter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-counter:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Elements --- */

.stat-counter__value {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-extrabold);
  color: var(--color-clinical-white);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-family: var(--font-family-base);
}

.stat-counter__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

/* --- Modifier: on light backgrounds --- */

.stat-counter--light {
  background: var(--color-clinical-white);
  border-color: var(--color-border);
}

.stat-counter--light .stat-counter__value {
  color: var(--color-innovation-blue);
}

.stat-counter--light .stat-counter__label {
  color: var(--color-text-secondary);
}

/* --- States --- */

.stat-counter.is-animated .stat-counter__value {
  /* Number animates via JS — no CSS animation needed */
}
