/**
 * Stats Counter Components
 * 
 * Reusable statistics counter styles for displaying numerical metrics
 * with emphasis on large, glowing numbers.
 * 
 * @version 1.0.0
 * @date 2026-02-17
 */

/* ============================================
   STAT COUNTER COMPONENT
   ============================================ */

/* Stat Counter Container */
.stat-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

/* Stat Counter Value - Large glowing number */
.stat-counter-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-glow);
    display: block;
    line-height: var(--leading-none);
}

/* Stat Counter Label */
.stat-counter-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ============================================
   STAT COUNTER VARIANTS
   ============================================ */

/* Light Theme Variant */
.stat-counter-light .stat-counter-value {
    color: var(--color-primary-500);
}

/* Dark Theme Variant */
.stat-counter-dark .stat-counter-value {
    color: var(--color-accent-glow);
}

/* Accent Variant */
.stat-counter-accent .stat-counter-value {
    color: var(--color-accent-cyan);
}

/* ============================================
   STAT GRID LAYOUT
   ============================================ */

/* Stats Grid - Responsive */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
}

/* Stats Grid - Equal Columns */
.stats-grid-equal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid-equal {
        grid-template-columns: 1fr;
    }
    
    .stat-counter-value {
        font-size: 2rem;
    }
}

/* ============================================
   HERO STATS
   ============================================ */

/* Hero Stats Container */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-glass);
}

/* Hero Stat Item */
.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
}

/* Hero Stat Value */
.hero-stats .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    line-height: var(--leading-none);
    text-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}

/* Hero Stat Label */
.hero-stats .stat-label {
    font-size: var(--text-xs);
    color: #d1d5db;
    margin-top: var(--space-1);
    font-weight: var(--font-weight-medium);
}

/* Responsive Hero Stats */
@media (max-width: 992px) {
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
        align-items: center;
    }
}

/* ============================================
   ANIMATED COUNTER
   ============================================ */

/* Counter animation for counting up */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-counter-animated .stat-counter-value {
    animation: countUp 0.6s ease-out forwards;
}
