/* ============================================
   GAMEQ STATS - STYLES CSS
============================================ */

/* Container principal des stats */
.server-stats-container {
    margin-top: 0.5rem;
}

/* Badge de statut */
.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s;
}

.server-status .status-icon {
    font-size: 1rem;
}

/* Statut en ligne */
.server-status.online {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #000;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* Statut hors ligne */
.server-status.offline {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Vérification en cours */
.server-status.checking {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

/* Erreur */
.server-status.error {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

/* Animation pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Détails des stats */
.server-stats-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    font-size: 0.85rem;
}

.stat-item .stat-icon {
    font-size: 1rem;
}

.stat-item .stat-value {
    font-weight: 500;
}

/* Badge données anciennes */
.stat-outdated {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #f59e0b;
}

/* Bouton de rafraîchissement */
.refresh-stats-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    border: none;
    border-radius: 20px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-stats-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.refresh-stats-btn:active {
    transform: scale(0.95);
}

/* Version mobile */
@media (max-width: 767px) {
    .server-stats-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        width: 100%;
        justify-content: space-between;
    }
}

/* Jauge de joueurs (optionnel) */
.players-gauge {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.players-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    transition: width 0.5s;
    border-radius: 10px;
}

/* Indicateur de latence */
.latency-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.latency-indicator.good {
    background: #22c55e;
    box-shadow: 0 0 5px #22c55e;
}

.latency-indicator.medium {
    background: #f59e0b;
    box-shadow: 0 0 5px #f59e0b;
}

.latency-indicator.bad {
    background: #ef4444;
    box-shadow: 0 0 5px #ef4444;
}
