/* LerouxClan CSS v3 */
:root {
    --bg: #08080f;
    --bg2: #0e0e1a;
    --bg3: #13131f;
    --card: #12121e;
    --card2: #1a1a2e;
    --border: #2a2a45;
    --border2: #3a3a5c;
    --accent: #7c3aed;
    --accent2: #6d28d9;
    --accent3: #a855f7;
    --accent-glow: rgba(124,58,237,0.25);
    --text: #f1f0ff;
    --text2: #9b99b8;
    --text3: #5c5a7a;
    --green: #4ade80;
    --red: #f87171;
    --discord: #5865f2;
    --discord2: #4752c4;
    --radius: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(8,8,15,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}
.navbar.scrolled { background: rgba(8,8,15,0.97); border-bottom-color: var(--border2); }
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center;
    padding: 0 1.5rem; height: 60px;
}
.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px; font-weight: 700;
    letter-spacing: 2px; color: var(--text); white-space: nowrap;
}
.logo-bracket { color: var(--text3); }
.logo-accent { color: var(--accent3); }
.nav-links { display: flex; gap: 0; list-style: none; margin-left: auto; }
.nav-links a {
    display: block; padding: 0 1rem; line-height: 60px;
    color: var(--text2); text-decoration: none;
    font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-discord { color: var(--discord) !important; }
.nav-discord:hover { color: #818cf8 !important; }
.nav-admin { color: var(--accent3) !important; border-left: 1px solid var(--border); margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; margin-left: auto; }

/* ── HERO ── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 100px 1.5rem 80px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(168,85,247,0.06) 0%, transparent 60%),
        repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.015) 60px),
        repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.015) 60px);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-sub {
    font-family: 'Rajdhani', sans-serif; font-size: 12px;
    letter-spacing: 5px; text-transform: uppercase;
    color: var(--accent3); margin-bottom: 1.25rem;
    display: inline-flex; align-items: center; gap: .5rem;
}
.hero-sub::before, .hero-sub::after { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent3); opacity: .5; }
.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(52px, 10vw, 108px);
    font-weight: 700; line-height: 1; letter-spacing: 4px; color: #fff; margin-bottom: 1.25rem;
}
.hero-title .accent { color: transparent; -webkit-text-stroke: 2px var(--accent3); }
.hero-desc { font-size: 16px; color: var(--text2); max-width: 440px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 2.5rem; margin-top: 5rem;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem 3rem;
}
.hstat { text-align: center; }
.hstat-num { display: block; font-family: 'Rajdhani', sans-serif; font-size: 30px; font-weight: 700; color: var(--accent3); }
.hstat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }
.hstat-div { width: 1px; height: 44px; background: var(--border); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 26px;
    font-family: 'Rajdhani', sans-serif; font-size: 13px;
    font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    text-decoration: none; border-radius: var(--radius);
    cursor: pointer; transition: all .2s; border: none; gap: 6px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent3); color: var(--accent3); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: var(--discord2); transform: translateY(-1px); }
.btn-copy { background: var(--accent); color: #fff; font-size: 12px; padding: 8px 18px; }
.btn-copy:hover { background: var(--accent2); }
.btn-lg { padding: 13px 32px; font-size: 14px; }

/* ── SECTIONS ── */
.section { padding: 90px 0; }
.section-dark { background: var(--bg2); }
.section-cta { padding: 70px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
    font-family: 'Rajdhani', sans-serif; font-size: 30px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; color: var(--text);
    margin-bottom: 2.5rem; padding-bottom: .75rem;
    border-bottom: 2px solid var(--accent); display: inline-block;
}

/* ── SERVERS GRID ── */
.servers-grid { display: flex; flex-direction: column; gap: 1rem; }

.server-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem 2rem;
    display: grid; grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem; align-items: center;
    transition: border-color .2s;
}
.server-card:hover { border-color: var(--accent); }
.server-card.offline { opacity: .6; }

.server-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--text3); flex-shrink: 0; transition: all .4s;
}
.server-dot.online { background: var(--green); box-shadow: 0 0 10px rgba(74,222,128,0.5); }
.server-dot.offline { background: var(--red); }

.server-info { min-width: 0; }
.server-name {
    font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700;
    color: var(--text); margin-bottom: .25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.server-desc { font-size: 13px; color: var(--text3); }

.server-meta { display: flex; gap: 2rem; }
.server-meta-item { display: flex; flex-direction: column; gap: .2rem; text-align: center; }
.smeta-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }
.smeta-value { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 600; color: var(--text); }

.server-actions { display: flex; flex-direction: column; gap: .5rem; min-width: 140px; }
.server-actions .btn { width: 100%; text-align: center; }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.news-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color .2s, transform .2s;
    display: flex; flex-direction: column;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-card-img-placeholder {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, var(--card2) 0%, var(--bg3) 100%);
    display: flex; align-items: center; justify-content: center;
}
.news-card-img-placeholder svg { opacity: .2; }
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.news-date { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }
.news-author-badge { font-size: 11px; color: var(--accent3); font-family: 'Rajdhani', sans-serif; font-weight: 600; }
.news-card-title { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: .5rem; line-height: 1.3; }
.news-excerpt { font-size: 13px; color: var(--text2); line-height: 1.7; flex: 1; }

/* ── CTA ── */
.cta-box {
    background: linear-gradient(135deg, var(--card2) 0%, rgba(124,58,237,0.1) 100%);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-title { font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: 2px; color: var(--text); margin-bottom: .5rem; }
.cta-desc { font-size: 15px; color: var(--text2); max-width: 480px; }

/* ── FOOTER ── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-logo { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--text); margin-bottom: .4rem; }
.footer-logo span { color: var(--accent3); }
.footer-tagline { font-size: 12px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--text2); text-decoration: none; font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: color .2s; }
.footer-links a:hover { color: var(--accent3); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text3); }

/* ── TOAST ── */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(60px);
    background: var(--accent); color: #fff; padding: 10px 24px;
    border-radius: var(--radius); font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    transition: transform .3s, opacity .3s; z-index: 999; pointer-events: none; opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.loading-cell { text-align: center; padding: 3rem; color: var(--text3); font-size: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .server-card { grid-template-columns: auto 1fr; gap: 1rem; }
    .server-meta { order: 3; grid-column: 1 / -1; justify-content: flex-start; }
    .server-actions { order: 4; grid-column: 1 / -1; flex-direction: row; }
    .server-actions .btn { flex: 1; }
    .cta-box { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(8,8,15,0.98); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links a { line-height: 1; padding: 1rem 1.5rem; }
    .nav-toggle { display: block; }
    .hero-stats { gap: 1.2rem; padding: 1rem 1.5rem; flex-wrap: wrap; justify-content: center; }
    .section { padding: 60px 0; }
    .footer-inner { flex-direction: column; }
    .footer-links { justify-content: center; }
    .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-title { font-size: clamp(42px, 14vw, 72px); }
    .server-card { padding: 1.25rem; }
}

/* ── SERVER HISTORY ── */
.history-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.history-range-tabs { display: flex; gap: .5rem; }
.history-range-btn {
    background: var(--card); border: 1px solid var(--border);
    color: var(--text2); padding: 6px 16px;
    font-family: 'Rajdhani', sans-serif; font-size: 13px;
    font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    border-radius: 20px; cursor: pointer; transition: all .2s;
}
.history-range-btn.active, .history-range-btn:hover {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.history-grid {
    display: grid; grid-template-columns: 1fr 240px; gap: 1.5rem;
}
.history-chart-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
}
.history-stats-row {
    display: flex; gap: 2rem; margin-bottom: 1.25rem;
}
.hstat-mini { text-align: center; }
.hstat-mini-num {
    display: block; font-family: 'Rajdhani', sans-serif;
    font-size: 24px; font-weight: 700; color: var(--accent3);
}
.hstat-mini-label {
    font-size: 11px; color: var(--text3);
    text-transform: uppercase; letter-spacing: 1px;
}
.chart-wrap { position: relative; height: 220px; }
.peak-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem;
}
.peak-title {
    font-family: 'Rajdhani', sans-serif; font-size: 14px;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text3); margin-bottom: 1rem;
    padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.peak-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem 0; border-bottom: 1px solid rgba(42,42,69,.4);
    font-size: 13px;
}
.peak-item:last-child { border: none; }
.peak-rank {
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    color: var(--accent3); min-width: 24px;
}
.peak-hour { color: var(--text); flex: 1; }
.peak-val { color: var(--text3); }

@media (max-width: 768px) {
    .history-grid { grid-template-columns: 1fr; }
}

/* ── ROADMAP ── */
.roadmap-stats {
    display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.rm-stat {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1rem 1.5rem;
    text-align: center; flex: 1; min-width: 120px;
}
.rm-stat-num {
    display: block; font-family: 'Rajdhani', sans-serif;
    font-size: 28px; font-weight: 700;
}
.rm-stat-label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }
.rm-stat-done .rm-stat-num { color: var(--green); }
.rm-stat-progress .rm-stat-num { color: #f59e0b; }
.rm-stat-planned .rm-stat-num { color: var(--text2); }

.roadmap-list { display: flex; flex-direction: column; gap: .75rem; }

.rm-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
    display: flex; align-items: flex-start; gap: 1rem;
    transition: border-color .2s;
}
.rm-item:hover { border-color: var(--accent); }
.rm-item.rm-done { opacity: .7; }
.rm-item.rm-done .rm-item-title { text-decoration: line-through; }

.rm-item-left { display: flex; flex-direction: column; gap: .4rem; min-width: 130px; }

.rm-status-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: .5px; text-align: center;
}
.status-done     { background: rgba(74,222,128,.15); color: var(--green); border: 1px solid rgba(74,222,128,.3); }
.status-progress { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.status-planned  { background: rgba(155,153,184,.1); color: var(--text2); border: 1px solid var(--border); }

.rm-cat-badge {
    display: inline-block; padding: 2px 8px; border-radius: 20px;
    font-size: 11px; font-weight: 600; text-align: center;
}
.cat-feature { background: rgba(124,58,237,.15); color: var(--accent3); border: 1px solid rgba(124,58,237,.3); }
.cat-bug     { background: rgba(248,113,113,.15); color: var(--red); border: 1px solid rgba(248,113,113,.3); }
.cat-update  { background: rgba(88,101,242,.15); color: #818cf8; border: 1px solid rgba(88,101,242,.3); }
.cat-other   { background: rgba(155,153,184,.1); color: var(--text2); border: 1px solid var(--border); }

.rm-item-body { flex: 1; }
.rm-item-title {
    font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700;
    color: var(--text); margin-bottom: .3rem;
}
.rm-item-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

@media (max-width: 600px) {
    .rm-item { flex-direction: column; }
    .rm-item-left { flex-direction: row; min-width: auto; }
}

.btn-steam { background: #1b2838; color: #fff; border: 1px solid #4c9be8; display:inline-flex; align-items:center; gap:6px; }
.btn-steam:hover { background: #2a475e; transform: translateY(-1px); }
.nav-steam { color: #4c9be8 !important; }
.nav-steam:hover { color: #7ab8f5 !important; }

.news-card-link { display: block; text-decoration: none; cursor: pointer; }
.news-card-link .news-card { height: 100%; }
