/* * AETHERNA EMPIRE - LANDING PAGE STYLES
 * Theme: Dark Sci-Fi / Neon
 * Version: Final Onyx (Nav Updated + Badge New)
 */

:root {
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-gold: #ffd700;
    --neon-green: #39ff14;
    --neon-red: #ff003c;
    --bg-dark: #05070a;
    --glass: rgba(10, 15, 20, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* --- RESET & BASE --- */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: #eee;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden; 
    overflow-y: auto;
    position: relative;
}

h1, h2, h3, .nav-logo, .btn-main, .hero-timer { font-family: 'Orbitron', sans-serif; }

/* --- CANVAS BACKGROUND --- */
#star-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; 
    background: radial-gradient(circle at bottom, #080b10 0%, #000000 100%);
    opacity: 0.4;
}

/* --- LOGO EN ARRIÈRE PLAN --- */
.global-logo-bg {
    position: absolute;
    top: 100px; left: 50%; transform: translateX(-50%);
    width: 2816px; height: 1536px; max-width: none;
    opacity: 1; mix-blend-mode: screen;
    filter: drop-shadow(0 0 50px rgba(0, 243, 255, 0.05));
    z-index: 0; pointer-events: none;
}

/* --- NAVIGATION (RESTRUCTURÉE) --- */
.v-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 0 40px; height: 70px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(2, 2, 2, 0.95); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

/* Groupe Gauche : Logo + Liens */
.nav-left-group { display: flex; align-items: center; gap: 40px; }

.nav-logo { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.nav-logo span { color: var(--neon-cyan); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-item { text-decoration: none; color: #888; font-weight: 600; font-size: 13px; text-transform: uppercase; transition: 0.3s; position: relative; }
.nav-item:hover { color: #fff; text-shadow: 0 0 8px var(--neon-cyan); }

/* Groupe Droite : Stats + Auth */
.nav-right-group { display: flex; align-items: center; gap: 20px; }

/* Compteur Joueurs */
.player-counter {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 5px 15px; border-radius: 4px;
    transition: 0.3s;
}
.player-counter:hover { background: rgba(0, 243, 255, 0.1); border-color: var(--neon-cyan); }
.player-counter i { color: var(--neon-cyan); font-size: 18px; }
.pc-info { display: flex; flex-direction: column; line-height: 1; }
.pc-val { font-family: 'Orbitron'; font-weight: bold; color: #fff; font-size: 14px; }
.pc-lbl { font-size: 9px; color: #aaa; font-weight: bold; letter-spacing: 1px; }

/* Boite Auth (Encadré) */
.auth-box {
    display: flex; gap: 10px; padding: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.nav-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    font-family: 'Orbitron'; font-size: 12px; font-weight: bold;
    text-decoration: none; color: #fff;
    border-radius: 2px; transition: 0.3s;
}

.btn-login {
    background: transparent; color: #ccc;
}
.btn-login:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-register {
    background: var(--neon-cyan); color: #000;
}
.btn-register:hover {
    background: #fff; box-shadow: 0 0 15px var(--neon-cyan);
}
.btn-return {
    background: var(--neon-purple); color: #fff;
}
.btn-return:hover {
    background: #d04aff; box-shadow: 0 0 15px var(--neon-purple);
}

.nav-arrow {
    position: fixed; right: 20px; z-index: 9999;
    width: 40px; height: 40px;
    background: rgba(0, 0, 0, 0.8); border: 1px solid var(--neon-cyan); color: var(--neon-cyan);
    display: flex; justify-content: center; align-items: center;
    text-decoration: none; transition: 0.3s; font-size: 24px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}
.nav-arrow:hover { background: var(--neon-cyan); color: #000; }
.nav-up { top: 100px; }
.nav-down { bottom: 20px; }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 150px 20px 50px 20px;
    position: relative; z-index: 2; 
}

.hero-timer-label, .hero-timer, .hero h1, .hero p, .hero-btns { position: relative; z-index: 2; }

.hero-timer-label { color: var(--neon-gold); font-size: 12px; letter-spacing: 4px; margin-bottom: 10px; text-transform: uppercase; }
.hero-timer { display: flex; gap: 20px; margin-bottom: 20px; }
.ht-box { background: rgba(255, 215, 0, 0.05); border: 1px solid rgba(255, 215, 0, 0.3); padding: 10px 0; width: 100px; backdrop-filter: blur(5px); text-align: center; }
.ht-val { font-size: 36px; color: var(--neon-gold); font-weight: bold; line-height: 1; text-shadow: 0 0 20px rgba(255, 215, 0, 0.4); font-variant-numeric: tabular-nums; display: inline-block; width: 100%; }
.ht-unit { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; }

.hero h1 { font-size: 5rem; line-height: 0.9; margin-bottom: 20px; margin-top: 10px; color: #fff; text-shadow: 0 0 50px rgba(0, 243, 255, 0.5); }
.hero p { font-size: 1.2rem; color: #fff; margin-bottom: 50px; letter-spacing: 6px; text-transform: uppercase; opacity: 1; font-weight: bold; text-shadow: 0 0 10px rgba(0,0,0,0.8); }
.hero-btns { display: flex; gap: 20px; }

.btn-discord {
    padding: 18px 50px; font-size: 14px; font-weight: bold; color: #fff; letter-spacing: 2px;
    background: #5865F2; border: 1px solid #5865F2;
    text-decoration: none; text-transform: uppercase;
    transition: 0.3s; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover { background: #4752c4; border-color: #fff; box-shadow: 0 0 40px rgba(88, 101, 242, 0.6); transform: translateY(-2px); }
.btn-discord i { font-size: 20px; }

/* BADGE NOUVEAU (ANIMÉ) */
.badge-new {
    display: inline-block;
    background-color: var(--neon-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.6);
    animation: pulse-badge 2s infinite;
    line-height: normal;
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 0, 60, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 60, 0);
        transform: scale(1);
    }
}

/* --- SECTIONS --- */
.section { padding: 120px 0; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
#community { padding-top: 0px; } 

.section-title { text-align: center; font-size: 32px; margin-bottom: 80px; color: #fff; text-transform: uppercase; letter-spacing: 4px; }
.section-title span { color: var(--neon-purple); border-bottom: 2px solid var(--neon-purple); padding-bottom: 10px; }

/* --- CARDS & GRID --- */
.comm-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: stretch; }

.comm-card, .wiki-text { background: var(--glass); border: 1px solid var(--glass-border); padding: 40px; position: relative; overflow: hidden; }
.comm-card::before, .wiki-text::before { content:''; position: absolute; top:0; left:0; width: 3px; height: 100%; }
.comm-card::before { background: var(--neon-purple); }
.referral-box { border-color: rgba(255, 215, 0, 0.3); } 
.referral-box::before { background: var(--neon-gold); }

.social-link { display: flex; align-items: center; gap: 20px; padding: 15px; margin-bottom: 15px; background: rgba(255,255,255,0.02); border: 1px solid transparent; text-decoration: none; color: #ccc; transition: 0.3s; }
.social-link:hover { border-color: var(--neon-cyan); background: rgba(0, 243, 255, 0.05); color: #fff; }
.social-link i { font-size: 24px; color: var(--neon-cyan); }

.ref-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: var(--neon-gold); font-size: 20px; font-family: 'Orbitron'; }

.ref-steps { display: flex; gap: 10px; margin: 30px 0; align-items: stretch; }
.ref-step { flex: 1; background: #000; padding: 15px; text-align: center; border: 1px dashed #333; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ref-num { font-size: 24px; color: #fff; font-weight: 900; line-height: 1; margin-bottom: 5px; color: var(--neon-cyan); }
.ref-title { display: block; color: #fff; margin-bottom: 5px; font-family: 'Orbitron'; font-weight: bold; }
.ref-step span { font-size: 12px; color: #888; }
.ref-arrow { align-self: center; color: #444; }
.security-notice { margin-top: 20px; padding: 15px; background: rgba(255, 0, 60, 0.05); border-left: 2px solid var(--neon-red); font-size: 12px; color: #aaa; display: flex; gap: 10px; }

/* --- WIKI --- */
.wiki-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.w-tab { background: transparent; border: none; border-bottom: 2px solid #333; color: #666; padding: 10px 30px; cursor: pointer; font-family: 'Orbitron'; transition: 0.3s; font-size: 14px; }
.w-tab:hover, .w-tab.active { border-color: var(--neon-cyan); color: #fff; text-shadow: 0 0 10px var(--neon-cyan); }
.w-tab.secret { color: var(--neon-red); border-bottom-color: var(--neon-red); }
.w-tab.secret:hover, .w-tab.secret.active { color: #fff; text-shadow: 0 0 10px var(--neon-red); }

/* STYLE POUR L'ONGLET AETHER (DORÉ) */
.w-tab.aether { color: var(--neon-gold); border-bottom-color: var(--neon-gold); }
.w-tab.aether:hover, .w-tab.aether.active { color: #fff; text-shadow: 0 0 10px var(--neon-gold); }

.wiki-content { display: none; animation: fadeIn 0.5s; }
.wiki-content.active { display: block; }

/* WIKI LAYOUT - UNIFIED CENTERED */
.wiki-container-center { text-align: center; max-width: 800px; margin: 0 auto; }
.wiki-text::before { background: var(--neon-cyan); }
.wiki-text h3 { font-size: 28px; color: #fff; margin-bottom: 20px; }
.wiki-text p { color: #aaa; line-height: 1.8; margin-bottom: 20px; font-size: 16px; }

.wiki-list { list-style: none; text-align: left; margin-top: 30px; }
.wiki-list li { margin-bottom: 15px; padding-left: 20px; position: relative; color: #ccc; }
.wiki-list li::before { content: '•'; position: absolute; left: 0; color: var(--neon-cyan); font-size: 20px; line-height: 18px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- ROADMAP --- */
.tree-wrapper { position: relative; padding: 40px 0; }
.tree-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--neon-cyan), var(--neon-purple), transparent); transform: translateX(-50%); }
.tree-node { display: flex; justify-content: center; align-items: center; margin-bottom: 60px; position: relative; width: 100%; }
.node-content { width: 42%; background: var(--glass); border: 1px solid var(--glass-border); padding: 25px; position: relative; z-index: 2; transition: 0.3s; }
.node-content:hover { transform: translateY(-5px); border-color: var(--neon-cyan); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.node-content h3 { font-size: 18px; margin-bottom: 10px; color: #fff; font-family: 'Orbitron'; }
.node-content p { color: #aaa; font-size: 13px; line-height: 1.6; }
.tree-node:nth-child(odd) .node-content { margin-right: auto; margin-left: 5%; text-align: right; border-right: 2px solid var(--neon-cyan); }
.tree-node:nth-child(even) .node-content { margin-left: auto; margin-right: 5%; text-align: left; border-left: 2px solid var(--neon-purple); }
.tree-node::before { content: ''; position: absolute; top: 50%; width: 5%; height: 1px; background: #444; z-index: 1; }
.tree-node:nth-child(odd)::before { left: 45%; } 
.tree-node:nth-child(even)::before { right: 45%; } 
.tree-node::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; background: #000; border: 2px solid #fff; transform: translate(-50%, -50%); z-index: 3; }
.tree-node.done::after { background: var(--neon-green); border-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }
.tree-node.wip::after { background: var(--neon-gold); border-color: var(--neon-gold); box-shadow: 0 0 10px var(--neon-gold); }
.tree-node.plan::after { border-color: #333; }
.node-status { font-size: 9px; font-weight: 800; padding: 3px 8px; text-transform: uppercase; margin-bottom: 10px; display: inline-block; letter-spacing: 1px; }
.st-done { background: rgba(57, 255, 20, 0.1); color: var(--neon-green); border: 1px solid var(--neon-green); }
.st-wip { background: rgba(255, 215, 0, 0.1); color: var(--neon-gold); border: 1px solid var(--neon-gold); }
.st-plan { color: #555; border: 1px solid #333; }

footer { border-top: 1px solid #222; padding: 60px 0; text-align: center; background: #010101; margin-top: 120px; position: relative; z-index: 2; }

@media (max-width: 900px) {
    .v-nav { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
    .nav-links { display: none; }
    .nav-right-group { width: 100%; justify-content: center; flex-wrap: wrap; }
    
    .hero h1 { font-size: 3.5rem; }
    .hero-timer { gap: 10px; } .ht-box { min-width: 60px; padding: 5px; } .ht-val { font-size: 24px; }
    .comm-grid, .wiki-grid { grid-template-columns: 1fr; }
    .tree-node { flex-direction: column; padding-left: 30px; border: none !important; align-items: flex-start; }
    .tree-line { left: 10px; }
    .tree-node::after { left: 10px; }
    .tree-node::before { display: none; }
    .node-content { width: 100%; margin: 0 !important; border: 1px solid #333 !important; border-left: 3px solid var(--neon-cyan) !important; text-align: left !important; }
}