/* ═══════════════════════════════════════════════════════════════════
   RIVENSWILD — SHARED THEME
   Import this file in every page (before any page-specific CSS).
   Change values here to restyle the entire site at once.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg:        #0d0d12;
    --surface:   #16161f;
    --surface-2: #1e1e2a;

    /* Borders */
    --border:    #2a2a38;
    --border-2:  #363648;

    /* Text */
    --text:      #e8e8f0;
    --muted:     #6b6b80;

    /* Accent colours */
    --accent:        #e3350d;   /* primary accent (red) */
    --accent-hover:  #ff4f25;
    --blue:          #60a5fa;
    --blue-hover:    #93c5fd;
    --green:         #4ade80;
    --green-bg:      #0d1f14;
    --green-bdr:     #166534;

    /* Links */
    --link:         #59a0bd;
    --link-visited: #7759bd;

    /* Shape */
    --radius:    12px;
    --radius-sm: 6px;
    --radius-lg: 20px;

    /* Nav */
    --nav-height: 4rem;
    --nav-bg:     #000000;
}

/* ── Global Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

/* ── Navigation Bar ─────────────────────────────────────────────── */
#NavigationBar {
    display: flex;
    align-items: center;
    width: 100vw;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    color: var(--text);
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 200;
}

.navigationItem {
    display: inline-block;
    padding-left: 1.25rem;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.15s;
}

/* ── Link Colours ───────────────────────────────────────────────── */
.otherLink:link,
.otherLink:active  { color: var(--link); }
.otherLink:hover   { color: var(--blue-hover); }
.otherLink:visited { color: var(--link-visited); }

/* ── Page Wrapper ───────────────────────────────────────────────── */
#SiteWrapper {
    width: 100%;
    min-height: calc(100vh - var(--nav-height));
    background-color: var(--bg);
    overflow-x: hidden;
}

/* ── Title / Page Header ────────────────────────────────────────── */
.title_box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    margin: 1.5rem 2vw 2rem;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.title_box h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    text-align: center;
    width: auto;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    width: 100%;
    text-align: center;
}

h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    width: 100%;
    text-align: center;
}

p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Utility: Card Surface ──────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
    border-color: var(--border-2);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

/* ── Utility: Outline (legacy compat) ───────────────────────────── */
.outline {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ── Utility: Muted Badge ───────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-2);
    background: transparent;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

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

/* ── Form Elements ──────────────────────────────────────────────── */
input, textarea, select {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
    transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
}

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 6px; height: 6px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Mobile Nav ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #NavigationBar {
        height: 2.8rem;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    #NavigationBar::-webkit-scrollbar { display: none; }
    .navigationItem {
        padding-left: 0.9rem;
        font-size: 0.82rem;
    }
    :root {
        --nav-height: 2.8rem;
    }
    .title_box h1 { font-size: 1.5rem; }
}
