/* Variables CSS */
:root {
    --primary-color: #4fc3f7;
    --primary-orange: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --background-dark: #0a0a0a;
    --background-card: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #4fc3f7, #29b6f6);
    --gradient-gold: linear-gradient(135deg, #ffd700, #ffed4e);
    --gradient-silver: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    --gradient-bronze: linear-gradient(135deg, #cd7f32, #daa520);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.stats-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.stats-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(79,195,247,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(79, 195, 247, 0.5);
    position: relative;
    z-index: 2;
}

.hero-title i {
    margin-right: 20px;
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Navigation des disciplines */
.discipline-nav {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-tab:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.3);
}

.nav-tab.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(79, 195, 247, 0.4);
}

.nav-tab i {
    font-size: 1.2rem;
}

/* Contenu des statistiques */
.stats-content {
    padding: 60px 0;
    min-height: 100vh;
}

.discipline-stats {
    display: none !important;
}

.discipline-stats.active {
    display: block !important;
}

/* Debug pour les onglets */
.nav-tab {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-tab:active {
    transform: scale(0.98);
}

.stats-section {
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    font-size: 2rem;
}

/* Grille des statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--background-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card.gold::before {
    background: var(--gradient-gold);
}

.stat-card.silver::before {
    background: var(--gradient-silver);
}

.stat-card.bronze::before {
    background: var(--gradient-bronze);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.rank-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.stat-card.gold .rank-badge {
    background: var(--gradient-gold);
    color: #333;
}

.stat-card.silver .rank-badge {
    background: var(--gradient-silver);
    color: #333;
}

.stat-card.bronze .rank-badge {
    background: var(--gradient-bronze);
    color: white;
}

.rank-badge i {
    margin-right: 5px;
}

.fighter-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    position: relative;
}

.fighter-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.stat-card:hover .fighter-photo img {
    transform: scale(1.1);
}

.fighter-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.fighter-stats {
    margin-bottom: 20px;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 5px;
}

.record {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.record span {
    padding: 5px 10px;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 15px;
    color: var(--primary-color);
}

/* Grille des champions */
.champions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.champion-card {
    background: var(--background-card);
    backdrop-filter: blur(10px);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.champion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: all 0.3s ease;
}

.champion-card:hover::before {
    opacity: 1;
}

.champion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.champion-crown {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.champion-card .fighter-photo {
    border-color: #ffd700;
    margin-bottom: 20px;
}

.champion-category {
    color: #ffd700;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title i {
        font-size: 2rem;
        margin-right: 10px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-tabs {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-tab {
        width: 200px;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .champions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .stat-card {
        padding: 20px;
    }

    .fighter-photo {
        width: 100px;
        height: 100px;
    }

    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .stats-hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats-content {
        padding: 40px 0;
    }

    .stats-section {
        margin-bottom: 60px;
    }

    .stat-card {
        padding: 15px;
    }

    .fighter-photo {
        width: 80px;
        height: 80px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .record {
        gap: 10px;
        font-size: 0.8rem;
    }
}
