@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;700;800&display=swap');

:root {
    --docs-bg: #000000;
    --docs-panel: #080808;
    --docs-panel-soft: rgba(10, 10, 10, 0.9);
    --docs-line: #1f1f1f;
    --docs-line-hot: #ff0080;
    --docs-line-cyan: #00ffff;
    --docs-text: #f1f1f1;
    --docs-text-dim: #9a9a9a;
    --docs-max-content: 980px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.docs-page {
    min-height: 100vh;
    background: var(--docs-bg);
    color: var(--docs-text);
    font-family: 'Onest', 'Courier New', Courier, monospace;
    position: relative;
    overflow-x: hidden;
}

body.docs-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 620px at 2% -12%, rgba(255, 0, 128, 0.12) 0%, transparent 62%),
        radial-gradient(980px 520px at 102% 2%, rgba(0, 255, 255, 0.1) 0%, transparent 62%);
    backdrop-filter: blur(900px);
    z-index: -3;
    pointer-events: none;
}

body.docs-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/stardust.png');
    opacity: 0.56;
    z-index: -2;
    animation: docs-twinkle 5s infinite alternate;
    pointer-events: none;
}

@keyframes docs-twinkle {
    0% {
        opacity: 0.42;
    }

    100% {
        opacity: 0.78;
    }
}

.docs-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(
            0deg,
            transparent 24%,
            rgba(255, 255, 255, 0.09) 25%,
            rgba(255, 255, 255, 0.09) 26%,
            transparent 27%,
            transparent 74%,
            rgba(255, 255, 255, 0.09) 75%,
            transparent 76%,
            transparent
        ),
        linear-gradient(
            90deg,
            transparent 24%,
            rgba(255, 255, 255, 0.09) 25%,
            rgba(255, 255, 255, 0.09) 26%,
            transparent 27%,
            transparent 74%,
            rgba(255, 255, 255, 0.09) 75%,
            transparent 76%,
            transparent
        );
    background-size: 50px 50px;
    opacity: 0.22;
}

.docs-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
    width: min(1500px, 100%);
    margin: 0 auto;
    border-left: 1px solid #181818;
    border-right: 1px solid #181818;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.56));
}

.docs-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--docs-line);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.76));
    backdrop-filter: blur(5px);
    padding: 22px 16px 24px;
}

.docs-brand {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--docs-line-hot);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-shadow: 0 0 8px rgba(255, 0, 128, 0.35);
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.docs-nav-link {
    color: #dfdfdf;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 0;
    border: 2px solid transparent;
    background:
        linear-gradient(rgba(8, 8, 8, 0.78), rgba(8, 8, 8, 0.78)) padding-box,
        linear-gradient(90deg, rgba(255, 0, 128, 0), rgba(0, 255, 255, 0)) border-box;
    transition: color 0.15s, box-shadow 0.15s, background-color 0.15s;
    line-height: 1.25;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.94rem;
}

.docs-nav-link:hover {
    color: #ffffff;
    background:
        linear-gradient(rgba(20, 0, 12, 0.66), rgba(20, 0, 12, 0.66)) padding-box,
        linear-gradient(90deg, rgba(255, 0, 128, 0.95), rgba(0, 255, 255, 0.85)) border-box;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.22);
}

.docs-nav-link.is-active {
    color: #ff7dc1;
    background:
        linear-gradient(rgba(24, 0, 14, 0.72), rgba(24, 0, 14, 0.72)) padding-box,
        linear-gradient(90deg, rgba(255, 0, 128, 1), rgba(255, 0, 128, 0.82)) border-box;
    box-shadow: 0 0 12px rgba(255, 0, 128, 0.28);
}

.docs-home-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--docs-line-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.docs-home-link:hover {
    color: #ffffff;
    border-color: var(--docs-line-cyan);
}

.docs-main {
    padding: 26px 30px 42px;
}

.docs-header {
    max-width: var(--docs-max-content);
    margin: 0 auto 16px;
}

.docs-kicker {
    margin: 0;
    color: var(--docs-line-cyan);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.docs-header h1 {
    margin: 8px 0 0;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.08;
    color: var(--docs-line-hot);
    text-shadow: 0 0 8px rgba(255, 0, 128, 0.4);
}

.docs-content {
    max-width: var(--docs-max-content);
    margin: 0 auto;
    line-height: 1.62;
    padding: 24px clamp(14px, 2vw, 30px) 30px;
    border: 1px solid var(--docs-line);
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.95), rgba(3, 3, 3, 0.92));
    box-shadow:
        0 0 0 1px rgba(255, 0, 128, 0.06),
        0 20px 48px rgba(0, 0, 0, 0.45);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    line-height: 1.22;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    color: #ffffff;
}

.markdown-body h2 {
    border-bottom: 1px solid #202020;
    padding-bottom: 0.3em;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body table,
.markdown-body pre,
.markdown-body blockquote {
    margin-top: 0;
    margin-bottom: 1em;
}

.markdown-body p,
.markdown-body li {
    color: #e8e8e8;
}

.markdown-body a {
    color: var(--docs-line-hot);
    text-decoration: none;
}

.markdown-body a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.35em;
}

.markdown-body li + li {
    margin-top: 0.26em;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    background: rgba(6, 6, 6, 0.92);
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--docs-line);
    padding: 8px 10px;
    text-align: left;
    white-space: nowrap;
}

.markdown-body th {
    background: #120812;
    color: #ff9fd6;
    font-family: 'Courier New', Courier, monospace;
}

.markdown-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background: #090909;
    border: 1px solid #242424;
    border-radius: 0;
    color: #9cfbff;
    padding: 0.08em 0.38em;
}

.markdown-body pre {
    background: #040404;
    border: 1px solid #2a2a2a;
    border-left: 2px solid var(--docs-line-hot);
    border-radius: 0;
    padding: 14px;
    overflow-x: auto;
}

.markdown-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.9em;
    color: inherit;
}

.markdown-body blockquote {
    padding: 0.1em 0.9em;
    border-left: 3px solid var(--docs-line-cyan);
    color: #d5f8ff;
    background: rgba(0, 255, 255, 0.07);
}

.markdown-body hr {
    border: 0;
    border-top: 1px solid var(--docs-line);
    margin: 1.5em 0;
}

@media (max-width: 1080px) {
    .docs-shell {
        grid-template-columns: 252px minmax(0, 1fr);
    }

    .docs-main {
        padding: 22px 18px 34px;
    }
}

@media (max-width: 900px) {
    .docs-shell {
        grid-template-columns: 1fr;
        border-left: none;
        border-right: none;
    }

    .docs-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--docs-line);
        padding-bottom: 16px;
    }

    .docs-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .docs-nav-link {
        text-align: center;
    }

    .docs-main {
        padding-top: 18px;
    }
}

@media (max-width: 640px) {
    .docs-main {
        padding: 16px 12px 26px;
    }

    .docs-content {
        padding: 16px 12px 22px;
    }

    .docs-nav {
        grid-template-columns: 1fr;
    }

    .docs-header h1 {
        font-size: 1.5rem;
    }
}
