/* Stats Page Styles */

/* Hero Section */
.stats-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 153, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 102, 153, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.stats-hero .container {
    position: relative;
    z-index: 2;
}

.stats-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stats-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-blue);
    margin-bottom: 2rem;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--light-blue);
    font-size: 0.9rem;
}

.update-icon {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

.stats-section-header {
    text-align: center;
    margin: 60px 0 40px;
}

.stats-section-header:first-child {
    margin-top: 0;
}

.stats-section-header .section-title {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.stats-section-header .section-description {
    font-size: 1.1rem;
    color: var(--light-blue);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Grids */
.stats-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.player-grid,
.combat-grid,
.performance-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Stat Cards */
.stat-card {
    background: var(--darker-bg);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.stat-card.highlight::before {
    opacity: 1;
}

/* Stat Card Content */
.stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-blue);
}

.stat-content {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    line-height: 1;
}

.stat-card:not(.highlight) .stat-value {
    font-size: 2rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-blue);
    margin-bottom: 4px;
}

.stat-sublabel {
    font-size: 0.9rem;
    color: var(--muted-blue);
    opacity: 0.8;
}

/* Fun Stats Grid */
.fun-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.fun-stat {
    background: var(--darker-bg);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.fun-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--accent-blue));
    border-radius: 2px;
}

.fun-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

.fun-stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.fun-stat-label {
    font-size: 1rem;
    color: var(--light-blue);
    font-weight: 500;
    line-height: 1.4;
}

/* Loading States */
.loading {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 25%, rgba(0, 212, 255, 0.2) 50%, rgba(0, 212, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    color: transparent;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-hero {
        padding: 100px 0 40px;
    }
    
    .stats-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .player-grid,
    .combat-grid,
    .performance-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .fun-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-card:not(.highlight) .stat-value {
        font-size: 1.8rem;
    }
    
    .fun-stat-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-hero .hero-title {
        font-size: 2rem;
    }
    
    .stats-section-header .section-title {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-card:not(.highlight) .stat-value {
        font-size: 1.5rem;
    }
    
    .fun-stat-value {
        font-size: 2rem;
    }
}

/* Additional animations */
.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}