/* QL City LAN Series - "Dark Arena" shared base styles.
   Loaded before each page's own <style> block, which may override it.
   Palette is flat: no gradients, no glows, square corners throughout. */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0c0c0e;
    --bg-elevated: #131316;
    --border: #1e1e22;
    --text: #f2f0ee;
    --text-muted: #b9b5b0;
    --text-faint: #8d8983;
    --accent: #d61c24;
    --accent-bright: #ff2d2d;

    --font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.15;
}

a {
    color: var(--accent-bright);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--accent);
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* ---------- Navigation (shared by every page) ---------- */

nav {
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ---------- Buttons (shared) ---------- */

.btn-primary,
.btn-secondary,
.discord-btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 0;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary,
.discord-btn {
    background: var(--accent);
    color: var(--text);
    border: 1px solid var(--accent);
}

.btn-primary:hover,
.discord-btn:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
}

.discord-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ---------- Section label: small caps with a 2px red rule ---------- */

.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

/* ---------- Shared bits ---------- */

.stat-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-faint);
    margin-top: 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.25rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    section {
        padding: 3.5rem 0;
    }
}

/* ---------- Mobile navigation (shared by every page with a nav) ---------- */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

@media (max-width: 768px) {
    .nav-logo {
        font-size: 1.05rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.active {
        max-height: 460px;
    }

    .nav-links li {
        width: 100%;
        border-top: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 1.25rem;
        border-bottom: none;
    }

    .nav-links a.active {
        color: var(--accent-bright);
    }

    .discord-btn {
        display: block;
        width: 100%;
    }
}
