/* Styles pour l'espace Classement Global */

.my-stats {
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stats-card h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    margin-bottom: 3px;
}

.stat-detail {
    font-size: 12px;
    color: #999;
}

/* Piste d'athlétisme */
.track-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow-x: auto;
}

#track-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Classement */
.leaderboard-list {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.leaderboard-list h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.leaderboard-table {
    display: grid;
    gap: 10px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s;
}

.leaderboard-row:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.leaderboard-row.current-user {
    background: linear-gradient(135deg, #ede7f6 0%, #e1f5fe 100%);
    border: 2px solid #667eea;
}

.rank-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    flex-shrink: 0;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    font-size: 20px;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    color: white;
    font-size: 20px;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: white;
    font-size: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.username {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.you-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.score-info {
    text-align: right;
}

.total-points {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.score-details {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-value {
        font-size: 28px;
    }

    .track-container {
        padding: 15px;
    }

    .leaderboard-list {
        padding: 20px;
    }

    .leaderboard-row {
        padding: 12px;
    }

    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .user-avatar,
    .user-avatar-placeholder {
        width: 38px;
        height: 38px;
    }

    .username {
        font-size: 15px;
    }

    .total-points {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-info {
        text-align: left;
    }
}
