/* Shared layout for simple Mathbhoot placeholder pages. */

:root {
    --static-bg: #05070d;
    --static-panel: rgba(13, 20, 34, 0.92);
    --static-gold: #f1d66f;
    --static-text: #eadcb9;
    --static-muted: #bda982;
    --static-line: rgba(241, 214, 111, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    padding: 76px 18px 56px;
    overflow-x: hidden;
    color: var(--static-text);
    font-family: Georgia, serif;
    line-height: 1.75;
    background:
        radial-gradient(circle at 20% 16%, rgba(126, 245, 216, 0.14), transparent 24rem),
        radial-gradient(circle at 82% 22%, rgba(241, 214, 111, 0.13), transparent 22rem),
        var(--static-bg);
}

body.theme-antagonists {
    --static-bg: #050000;
    --static-panel: rgba(24, 3, 4, 0.94);
    --static-gold: #ff3b3b;
    --static-text: #ffe8e8;
    --static-muted: #d8a4a4;
    --static-line: rgba(255, 59, 59, 0.42);
    background:
        radial-gradient(circle at 18% 16%, rgba(175, 0, 0, 0.32), transparent 24rem),
        radial-gradient(circle at 84% 24%, rgba(255, 69, 69, 0.16), transparent 20rem),
        linear-gradient(180deg, #090000, var(--static-bg));
}

body.theme-escapeguide {
    --static-bg: #07020a;
    --static-panel: rgba(26, 6, 25, 0.94);
    --static-gold: #d686ff;
    --static-text: #f4e5ff;
    --static-muted: #c6a1c8;
    --static-line: rgba(214, 134, 255, 0.4);
    background:
        radial-gradient(circle at 20% 18%, rgba(106, 13, 73, 0.38), transparent 25rem),
        radial-gradient(circle at 84% 22%, rgba(124, 41, 144, 0.24), transparent 22rem),
        linear-gradient(180deg, #0b020d, var(--static-bg));
}

body.theme-ganith {
    --static-bg: #f7f7f7;
    --static-panel: rgba(255, 255, 255, 0.94);
    --static-gold: #101010;
    --static-text: #101010;
    --static-muted: #3c3c3c;
    --static-line: rgba(0, 0, 0, 0.22);
    background:
        radial-gradient(circle at 20% 16%, rgba(0, 0, 0, 0.08), transparent 22rem),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.72), transparent 22rem),
        var(--static-bg);
}


body.theme-ganith .navbar {
    background:
        linear-gradient(90deg, #050505, #151719 45%, #050505);
    border-bottom: 1px solid rgba(222, 230, 238, 0.42);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(222, 230, 238, 0.16);
}

body.theme-ganith .nav-links a {
    color: #f4f7fa;
    text-shadow: 0 0 8px rgba(222, 230, 238, 0.24);
}

body.theme-ganith .nav-links a:hover,
body.theme-ganith .nav-links a:focus-visible,
body.theme-ganith .nav-links a.active {
    color: #f8fbff;
    text-shadow:
        0 0 8px rgba(248, 251, 255, 0.88),
        0 0 18px rgba(190, 200, 210, 0.62);
}

body.theme-ganith .nav-toggle {
    color: #f8fbff;
    text-shadow: 0 0 10px rgba(222, 230, 238, 0.72);
}

body.theme-antagonists .placeholder-panel {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), 0 0 40px rgba(255, 0, 0, 0.16);
}

body.theme-escapeguide .placeholder-panel {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 40px rgba(150, 42, 156, 0.18);
}

body.theme-ganith .placeholder-panel {
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
}

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 15px;
    background: #000;
}

.nav-logo {
    display: block;
    width: 58px;
    height: auto;
}

.nav-links {
    display: flex;
    min-width: 0;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: var(--static-gold);
}

.nav-toggle {
    display: none;
    padding: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.placeholder-main {
    display: grid;
    min-height: calc(100vh - 180px);
    place-items: center;
}

.placeholder-panel {
    width: min(100%, 820px);
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--static-line);
    border-radius: 10px;
    background: var(--static-panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), 0 0 34px rgba(241, 214, 111, 0.08);
    text-align: center;
}

.placeholder-panel h1 {
    margin-bottom: 1rem;
    color: var(--static-gold);
    font-size: clamp(2rem, 7vw, 4rem);
    line-height: 1.05;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.placeholder-panel p {
    max-width: 62ch;
    margin: 0 auto 1rem;
    color: var(--static-muted);
    text-align: justify;
    text-align-last: center;
}

.placeholder-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 1rem;
    padding: 0.75rem 1.2rem;
    border: 1px solid rgba(241, 214, 111, 0.72);
    border-radius: 999px;
    color: var(--static-gold);
    text-decoration: none;
}

.site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 8px 12px;
    border-top: 1px solid var(--static-line);
    background:
        linear-gradient(90deg, var(--static-bg), var(--static-panel));
    color: var(--static-muted);
    text-align: center;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
}

.site-footer p {
    margin: 0;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .nav-toggle {
        position: relative;
        z-index: 1001;
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav-logo {
        width: 50px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        width: 100%;
        max-width: 100vw;
        flex-direction: column;
        gap: 14px;
        padding: 20px 0;
        background: #1a1a1a;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
}
