/* Interactive Stats Dashboard Styles */
.stats-dashboard {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f0f2f 100%);
    position: relative;
    overflow: hidden;
}

.stats-dashboard::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite;
}

.stats-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 4rem;
}

.stats-header h2 {
    font-size: 3rem;
    background: linear-gradient(135deg, #00D9FF, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stats-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Live Counter Cards */
.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-counter-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stat-color, #FF6B35), transparent);
    transform: scaleX(0);
    transform-origin: left;
    animation: fillProgress 2s ease forwards;
    animation-delay: 0.3s;
}

.stat-counter-card:hover {
    transform: translateY(-10px);
    border-color: var(--stat-color, var(--accent));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--stat-color, rgba(255, 107, 53, 0.3));
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(255, 107, 53, 0.3));
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--stat-color, #FF6B35), #F7B731);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Raleway', sans-serif;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Charts Section */
.stats-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.chart-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.chart-card h3 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Stat Counter Color Variations */
.stat-counter-card:nth-child(1) {
    --stat-color: #FF6B35;
}

.stat-counter-card:nth-child(2) {
    --stat-color: #4ECDC4;
}

.stat-counter-card:nth-child(3) {
    --stat-color: #F7B731;
}

.stat-counter-card:nth-child(4) {
    --stat-color: #5F27CD;
}

.stat-counter-card:nth-child(5) {
    --stat-color: #26DE81;
}

.stat-counter-card:nth-child(6) {
    --stat-color: #45AAF2;
}

/* Pulse Animation for Active Stats */
@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-value {
    animation: statPulse 2s ease-in-out;
}

@keyframes fillProgress {
    to {
        transform: scaleX(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-dashboard {
        padding: 4rem 1.5rem;
    }

    .stats-header h2 {
        font-size: 2rem;
    }

    .stats-counter-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .stat-counter-card {
        padding: 1.5rem 1rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stats-charts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chart-container {
        height: 250px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .chart-container {
        height: 200px;
    }
}

/* Loading State */
.stat-counter-card.loading .stat-value::after {
    content: '...';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}
