/* Style général du site */
body {
    background-color: #0f1218;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('https://wow.zamimg.com/uploads/screenshots/normal/1060614.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête du site */
.header {
    background-color: rgba(15, 18, 24, 0.9);
    border-bottom: 1px solid #2c3347;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 120, 255, 0.7);
    text-decoration: none;
}

/* Navigation */
.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-item:hover {
    background-color: rgba(0, 120, 255, 0.3);
}

.nav-item.active {
    background-color: #0078ff;
}

/* Cartes d'information */
.card {
    background-color: rgba(15, 18, 24, 0.9);
    border: 1px solid #2c3347;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.card-header {
    background-color: rgba(44, 51, 71, 0.8);
    border-bottom: 1px solid #2c3347;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 10px 10px 0 0;
}

.card-header h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0078ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0066cc;
}

.btn-discord {
    background-color: #5865F2;
}

.btn-discord:hover {
    background-color: #4752C4;
}

/* Pied de page */
.footer {
    background-color: rgba(15, 18, 24, 0.9);
    border-top: 1px solid #2c3347;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    color: #aaa;
}

/* Grille pour les cartes */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Iframe pour la carte des joueurs */
.playermap-frame {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Statut du serveur */
.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4CAF50;
}

.status-text {
    font-weight: 600;
}

.online {
    color: #4CAF50;
}

.offline {
    color: #F44336;
}

.status-indicator.offline {
    background-color: #F44336;
}

/* Statistiques du serveur */
.server-stats {
    margin: 30px 0;
}

.stat-card {
    background-color: rgba(44, 51, 71, 0.5);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    background-color: rgba(44, 51, 71, 0.8);
}

.stat-card i {
    font-size: 36px;
    color: #0078ff;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
}

/* Répartition des factions */
.faction-distribution {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.alliance, .horde {
    display: flex;
    align-items: center;
    gap: 5px;
}

.alliance img, .horde img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.alliance span {
    color: #0078ff;
    font-weight: 700;
}

.horde span {
    color: #ff3860;
    font-weight: 700;
}

/* Onglets de classement */
.nav-tabs {
    border-bottom: 1px solid #2c3347;
}

.nav-tabs .nav-link {
    color: #aaa;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 20px;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: #fff;
    border-bottom-color: rgba(0, 120, 255, 0.5);
}

.nav-tabs .nav-link.active {
    color: #0078ff;
    background-color: transparent;
    border-bottom-color: #0078ff;
}

/* Tableaux de classement */
.table {
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: rgba(44, 51, 71, 0.8);
    color: #fff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}

.table td {
    padding: 12px 15px;
    border-top: 1px solid rgba(44, 51, 71, 0.5);
}

.table tbody tr {
    background-color: rgba(15, 18, 24, 0.5);
    transition: background-color 0.3s;
}

.table tbody tr:hover {
    background-color: rgba(44, 51, 71, 0.5);
}

/* Icônes de classe et race */
.class-icon, .race-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 50%;
}

/* Animation de chargement */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 120, 255, 0.3);
    border-radius: 50%;
    border-top-color: #0078ff;
    animation: spin 1s ease-in-out infinite;
}

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