/* =========================================
   ABYSSAL - THE ISLE EVRIMA
   Thème : Abyssal Dark & Blood Red
========================================= */

:root {
    /* Couleurs sombres et agressives */
    --bg-dark: #070709;             /* Noir très profond */
    --card-bg: #111216;             /* Noir légèrement grisé */
    --accent-red: #D91424;          /* Rouge vif/sang */
    --accent-glow: rgba(217, 20, 36, 0.5); /* Lueur rouge */
    
    /* Monnaie */
    --accent-gold: #FFC857;         /* Jaune or pour la monnaie */

    /* Textes */
    --text-main: #FFFFFF;           /* Blanc pur */
    --text-muted: #9BA0A6;          /* Gris clair */

    /* Bordures subtiles */
    --border-dark: #2A2B30;
    
    /* Ombres */
    --soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body {
    margin: 0;
    font-family: 'Lexend', sans-serif;
    color: var(--text-main);
    
    /* L'image de fond avec un filtre sombre par-dessus pour que le texte reste lisible */
    background-image: 
        linear-gradient(rgba(7, 7, 9, 0.85), rgba(7, 7, 9, 0.85)), 
        url('../assets/bg-1.png');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* --- Barre de navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-dark);
    padding: 15px 30px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 50px; 
    box-shadow: var(--soft-shadow);
    min-height: 60px; /* Garde la barre ouverte à la bonne taille en permanence */
}

.login-nav-btn {
    padding: 8px 20px;
    font-size: 14px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center; /* C'est cette ligne qui centre tout verticalement ! */
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* =========================================
   ICÔNE MONDE 3D ANIMÉ (NAVBAR)
========================================= */
.globe-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.globe-icon {
    display: flex;
    align-items: center;
    padding-bottom: 0 !important;
    text-decoration: none;
}

.animated-globe {
    width: 45px;
    height: 45px;
    border-radius: 50%; 
    background-image: url('../assets/world-map.png'); 
    
    background-size: 90px 45px; 
    background-repeat: repeat-x; 
    
    /* On décale l'image de -22.5px pour l'afficher parfaitement au centre par défaut */
    background-position: -22.5px 0; 
    
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.7), inset 2px 2px 5px rgba(255, 255, 255, 0.2);
    filter: grayscale(80%);
    transition: filter 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

/* La boucle part de notre centre (-22.5px) et recule de 90px (vers la gauche) */
@keyframes spin-earth {
    from { background-position: -22.5px 0; }
    to { background-position: -112.5px 0; } 
}

/* Effet au survol : la Terre tourne, prend ses couleurs et brille en rouge ! */
.globe-icon:hover .animated-globe {
    transform: scale(1.15); /* Grossit un peu */
    filter: grayscale(0%); /* Retire le filtre gris */
    
    /* On garde l'effet 3D interne, mais on ajoute le halo rouge externe */
    box-shadow: 
        inset -5px -5px 10px rgba(0, 0, 0, 0.7), 
        inset 2px 2px 5px rgba(255, 255, 255, 0.4),
        0 0 15px var(--accent-red);
    
    /* On déclenche l'animation de rotation de façon infinie et fluide (linear) */
    animation: spin-earth 4s linear infinite;
}

.nav-links a.globe-icon::after {
    display: none;
}




/* Ligne rouge sous l'onglet actif */
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 5px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* --- Menu Utilisateur (Profil & Monnaie en Jaune) --- */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 51px; /* Force la hauteur à rester celle de la photo de profil */
}

.currency-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-dark); 
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    padding: 8px 20px;
    gap: 10px;
}

.coin-icon {
    font-size: 18px;
    color: var(--accent-gold);
}

.balance {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 15px;
}

.plus-btn {
    background-color: var(--accent-red);
    color: #ffffff; 
    text-decoration: none;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-left: 8px;
    border: none;
    cursor: pointer;
}

.plus-btn:hover {
    background-color: #B5101D;
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.profile-bubble img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--border-dark);
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-bubble:hover img {
    transform: scale(1.05);
    border-color: var(--accent-red); 
}

/* =========================================
   SECTION ACCUEIL (HERO)
========================================= */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 80px auto; 
    padding: 0 30px;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 55px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .highlight {
    color: var(--accent-red); 
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* --- Boutons --- */
.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 25px var(--accent-glow); 
    border: 1px solid transparent;
}

.primary-btn:hover {
    background-color: #B5101D;
    box-shadow: 0 6px 35px var(--accent-glow);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.secondary-btn:hover {
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* --- Logo Flottant --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-logo {
    width: 100%;
    max-width: 350px; 
    border-radius: 50%;
    background-color: #000; 
    box-shadow: 0 0 50px var(--accent-glow), inset 0 0 20px #000; 
    animation: float 6s ease-in-out infinite; 
    cursor: pointer;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); } 
    100% { transform: translateY(0px); } 
}

/* =========================================
   SECTION FEATURES (CARTES)
========================================= */

.features-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

/* --- Titre avec la ligne rouge de chaque côté --- */
.features-section h2 {
    font-size: 28px;
    color: var(--accent-red);
    margin-bottom: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Ligne gauche : Rouge à gauche, Transparent à droite (vers le mot) */
.features-section h2::before {
    content: "";
    height: 2px; /* Un peu plus épais pour mieux voir le dégradé */
    flex: 1;
    background: linear-gradient(to left, transparent, var(--accent-red));
    opacity: 0.6;
}

/* Ligne droite : Transparent à gauche (vers le mot), Rouge à droite */
.features-section h2::after {
    content: "";
    height: 2px;
    flex: 1;
    background: linear-gradient(to right, transparent, var(--accent-red));
    opacity: 0.6;
}

/* --- Grille des cartes --- */
.features-grid {
    display: grid;
    /* Ajustement fluide pour que les cartes se placent intelligemment */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
}

/* Cartes allongées */
.feature-card {
    background-color: var(--card-bg);
    padding: 35px 25px;
    border-radius: 15px; 
    border: 1px solid var(--border-dark);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red); 
}

.feature-card h3 {
    color: var(--text-main); 
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feature-card h3 i, .feature-card h3 img {
    color: var(--accent-red);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================
   PANEL SERVEUR
========================================= */
.server-status-panel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto 80px auto; /* Centre le panel et l'espace en bas */
    padding: 20px 40px;
    box-shadow: var(--soft-shadow);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.status-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-value {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
}

.status-value.online {
    color: #43b581; /* Vert typique pour un statut "En ligne" */
    text-shadow: 0 0 10px rgba(67, 181, 129, 0.4);
}

/* =========================================
   FOOTER (PIED DE PAGE)
========================================= */
.site-footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* Responsive Panel */
@media (max-width: 768px) {
    .server-status-panel {
        flex-direction: column;
        gap: 20px;
    }
}