/* ==========================================
   STATISTICS COUNTER SECTION
   Base styles from global-sections-patterns.css
   Section-specific styles only
========================================== */

.statistics-counter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary-dark, #3B56D9) 0%, var(--color-primary, #4D6AFF) 100%);
    position: relative;
    color: var(--color-white, #FFFFFF);
}

/* Subtle pattern overlay */
.statistics-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path fill="none" d="M10,10 L90,10 M10,30 L90,30 M10,50 L90,50 M10,70 L90,70 M10,90 L90,90 M10,10 L10,90 M30,10 L30,90 M50,10 L50,90 M70,10 L70,90 M90,10 L90,90" stroke="white" stroke-width="1"/></svg>');
    background-repeat: repeat;
    background-size: 40px;
}

/* 
   NOTE: The following are NOT duplicated from global-sections-patterns.css:
   - .section-header, .section-eyebrow, .section-title, .section-text
   - These are already defined globally
   - We're just overriding them for dark background using .statistics-counter prefix
*/

/* Dark background overrides for section headers */
.statistics-counter .section-header {
    position: relative;
    z-index: 1;
}

.statistics-counter .section-eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.statistics-counter .section-title {
    color: var(--color-white, #FFFFFF);
}

.statistics-counter .section-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Stat Card */
.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    transition: all var(--transition-normal, 0.3s ease);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.3);
}

/* Stat Icon */
.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal, 0.3s ease);
}

.stat-card:hover .stat-icon {
    background: var(--color-white, #FFFFFF);
    transform: scale(1.05);
}

.stat-icon i {
    font-size: 32px;
    color: var(--color-white, #FFFFFF);
    transition: all var(--transition-normal, 0.3s ease);
}

.stat-card:hover .stat-icon i {
    color: var(--color-primary, #4D6AFF);
}

/* Stat Number */
.stat-number {
    font-size: 48px;
    font-weight: var(--font-weight-bold, 700);
    line-height: 1.1;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.counter {
    font-size: 48px;
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-white, #FFFFFF);
}

.stat-suffix {
    font-size: 36px;
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-white, #FFFFFF);
}

/* Stat Title */
.stat-title {
    font-size: var(--font-lg, 1.125rem);
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--color-white, #FFFFFF);
}

/* Stat Description */
.stat-description {
    font-size: var(--font-xs, 0.75rem);
    line-height: var(--line-relaxed, 1.65);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
========================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .statistics-counter {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-card {
        padding: 28px 16px;
    }
    
    .stat-number,
    .counter {
        font-size: 40px;
    }
    
    .stat-suffix {
        font-size: 28px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon i {
        font-size: 28px;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .statistics-counter {
        padding: 48px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 24px 20px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .stat-icon i {
        font-size: 24px;
    }
    
    .stat-content {
        flex: 1;
    }
    
    .stat-number,
    .counter {
        font-size: 32px;
        justify-content: flex-start;
    }
    
    .stat-suffix {
        font-size: 24px;
    }
    
    .stat-title {
        font-size: var(--font-base, 1rem);
        margin-bottom: 4px;
    }
    
    .stat-description {
        font-size: var(--font-2xs, 0.6875rem);
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .stat-card {
        padding: 16px;
        gap: 15px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-number,
    .counter {
        font-size: 28px;
    }
    
    .stat-suffix {
        font-size: 20px;
    }
}