/* assets/css/main.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --nav-bg: #13141c;
    --nav-border: #1e202d;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --primary-blue: #3b82f6;
    --twitch-purple: #8b5cf6;
    --recruit-red: #f43f5e;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    /* Effet de lueur en arrière-plan inspiré du screen */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(220, 38, 38, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(34, 197, 94, 0.08), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 90px; /* Espace pour la navbar fixe */
}

/* =========================================
   NOUVELLE NAVBAR (Style Exyt / e-sport)
   ========================================= */
.modern-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    gap: 20px;
}

/* Bouton Retour [<] */
.nav-back {
    background: #1a1c28;
    color: var(--text-muted);
    border: 1px solid #252838;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
    flex-shrink: 0;
}
.nav-back:hover { background: #252838; color: white; }

/* Pilule Profil [PP] Pseudo */
.nav-profile {
    background: var(--primary-blue);
    padding: 6px 16px 6px 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.nav-profile:hover { filter: brightness(1.1); }
.nav-profile img, .nav-profile .avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

/* Liens centraux */
.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
    flex-grow: 1;
    justify-content: center;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
}
.nav-links a:hover { color: white; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Zone de droite (Réseaux & Boutons) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links { display: flex; gap: 8px; }
.social-links a {
    background: #1e212f;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.social-links a:hover { background: #2a2e40; color: white; }

.nav-separator { width: 2px; height: 20px; background: #1e202d; }

/* Boutons d'action avec Glow */
.btn-glow {
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    position: relative;
}
.btn-twitch { background: var(--twitch-purple); box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); }
.btn-twitch:hover { box-shadow: 0 0 25px rgba(139, 92, 246, 0.7); transform: translateY(-1px); }

.btn-recruit { background: var(--recruit-red); box-shadow: 0 0 15px rgba(244, 63, 94, 0.4); }
.btn-recruit:hover { box-shadow: 0 0 25px rgba(244, 63, 94, 0.7); transform: translateY(-1px); }

/* Responsive basique */
@media (max-width: 1100px) {
    .nav-links { display: none; } /* Cache le menu texte sur petit écran */
}
@media (max-width: 768px) {
    .social-links, .nav-separator { display: none; }
}

/* =========================================
   DASHBOARD HUB (Base pour tes stats)
   ========================================= */
.hub-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.bento-card {
    background: #13141c;
    border: 1px solid #1e202d;
    border-radius: 20px;
    padding: 25px;
    transition: 0.3s;
}
.bento-card:hover { border-color: #2a2e40; transform: translateY(-5px); }
.bento-icon { font-size: 2rem; color: var(--primary-blue); margin-bottom: 15px; }
.bento-title { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin: 0 0 5px 0; }
.bento-value { font-size: 2rem; font-weight: 900; margin: 0; }

/* --- 1. L'Avatar 3D & Bienvenue --- */
.welcome-section { display: flex; align-items: center; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.welcome-avatar { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; /* Rend l'image parfaitement ronde */
    border: 3px solid var(--primary-blue); /* Bordure bleue */
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.3), 0 0 0 5px rgba(59, 130, 246, 0.1); /* Double effet de lueur */
    animation: float 4s ease-in-out infinite; 
    object-fit: cover;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.welcome-text h1 { font-weight: 900; font-size: 2.5rem; margin: 0 0 5px 0; letter-spacing: -1px; }
.welcome-text p { color: var(--text-muted); font-weight: 600; margin: 0; font-size: 1.1rem; }

/* --- 2. Live Tracker (Commande en cours) --- */
.live-banner { 
    background: linear-gradient(90deg, rgba(59,130,246,0.1), transparent); 
    border-left: 4px solid var(--primary-blue); border-radius: 12px; 
    padding: 15px 25px; display: flex; align-items: center; justify-content: space-between; 
    margin-bottom: 30px; box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); 
    animation: pulse-bg 2s infinite; 
}
@keyframes pulse-bg { 0%, 100% { background-color: rgba(59,130,246,0.05); } 50% { background-color: rgba(59,130,246,0.15); } }
.live-btn { background: var(--primary-blue); color: white; padding: 8px 16px; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 0.8rem; transition: 0.2s; }
.live-btn:hover { background: white; color: var(--primary-blue); box-shadow: 0 0 15px rgba(255,255,255,0.5); }

/* --- 3. Jauge de progression VIP --- */
.progress-bg { background: #1e202d; border-radius: 10px; height: 8px; width: 100%; overflow: hidden; margin-top: 15px; }
.progress-fill { background: linear-gradient(90deg, var(--primary-blue), var(--twitch-purple)); height: 100%; border-radius: 10px; box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); transition: width 1s ease-out; }
.progress-text { font-size: 0.7rem; color: var(--text-muted); margin-top: 6px; font-weight: 700; display: flex; justify-content: space-between; text-transform: uppercase; }

/* --- 4. Portail des Serveurs --- */
.section-title { font-size: 1.5rem; font-weight: 900; margin: 50px 0 20px 0; display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.srv-card { 
    background: #13141c; border: 1px solid #1e202d; border-radius: 16px; 
    padding: 25px 20px; text-align: center; text-decoration: none; color: white; 
    transition: 0.3s; position: relative; overflow: hidden; display: block;
}
.srv-card::before { 
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; 
    background: radial-gradient(circle, var(--srv-color) 0%, transparent 60%); 
    opacity: 0; transition: 0.4s; z-index: 0; pointer-events: none; 
}
.srv-card:hover::before { opacity: 0.15; }
.srv-card:hover { transform: translateY(-5px); border-color: var(--srv-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.srv-icon { font-size: 2.5rem; margin-bottom: 12px; position: relative; z-index: 1; color: var(--srv-color); transition: 0.3s; }
.srv-card:hover .srv-icon { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--srv-color)); }
.srv-name { font-weight: 900; font-size: 1.2rem; position: relative; z-index: 1; text-transform: uppercase; letter-spacing: 1px; }

/* --- 5. Vitrine Tendances --- */
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.trend-card { background: #13141c; border: 1px solid #1e202d; border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 15px; transition: 0.3s; }
.trend-card:hover { border-color: #2a2e40; transform: translateX(5px); background: #1a1c28; }
.trend-icon-box { background: rgba(255,255,255,0.03); width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary-blue); }