/* ==========================================================================
   Docs page  (/docs)
   ========================================================================== */

/* ---------- Hero ---------- */
/* Subtle dot grid background, same as the landing page body. The red orb
   glows below blur on top of it; the section card backgrounds cover the
   dots inside individual sections so they only show in the "void" between
   the hero, the cards, and around the sidebar. */
.docs__hero {
    position: relative;
    background-color: #0a0a0a;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    padding: 140px 0 80px;
    overflow: visible;
    isolation: isolate;
}

.docs__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

body:has(.docs__hero) .overlay:not(.active) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body:has(.docs__hero) .game-selector-header {
    background: #0d0d0d;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.docs__hero-inner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 64px;
}

.docs__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    background: hsl(var(--base) / 0.15);
    border: 1px solid hsl(var(--base) / 0.4);
    border-radius: 999px;
    color: hsl(var(--heading-color));
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.docs__eyebrow i {
    color: hsl(var(--base));
    font-size: 14px;
}

.docs__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 72px;
    line-height: 1.05;
    color: hsl(var(--heading-color));
    text-transform: uppercase;
    letter-spacing: -2.5px;
    margin: 0 0 20px;
}

.docs__title-accent {
    background: linear-gradient(135deg, hsl(var(--base)) 0%, hsl(var(--base) / 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.docs__lead {
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.7;
    color: hsl(var(--body-color));
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.85;
}

/* ---------- Quick links row ---------- */
.docs__quicklinks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 96px;
}

.docs__quicklink {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: hsl(var(--heading-color));
    text-decoration: none;
    transition: all 0.2s ease;
}

.docs__quicklink:hover {
    background: hsl(var(--base) / 0.08);
    border-color: hsl(var(--base) / 0.5);
    transform: translateY(-2px);
    color: hsl(var(--heading-color));
}

.docs__quicklink-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--base) / 0.15);
    border-radius: 10px;
    color: hsl(var(--base));
    font-size: 18px;
    transition: background 0.2s ease;
}

.docs__quicklink:hover .docs__quicklink-icon {
    background: hsl(var(--base) / 0.25);
}

.docs__quicklink-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.docs__quicklink-label {
    font-family: var(--heading-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 4px;
}

.docs__quicklink-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* ---------- Layout ---------- */
.docs__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 60px;
    align-items: flex-start;
}

/* ---------- Sidebar / TOC ---------- */
.docs__sidebar-wrap {
    position: sticky;
    top: 110px;
    align-self: flex-start;
}

.docs__sidebar {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 28px 20px;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.96) 0%, rgba(14, 14, 14, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.docs__sidebar h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: hsl(var(--body-color));
    opacity: 0.55;
    margin: 0 0 18px;
    padding-left: 14px;
}

.docs__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: docs-section;
}

.docs__nav li {
    counter-increment: docs-section;
}

.docs__nav li + li {
    margin-top: 4px;
}

.docs__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: hsl(var(--body-color));
    text-decoration: none;
    border-radius: 10px;
    border-left: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.docs__nav a::before {
    content: counter(docs-section, decimal-leading-zero);
    flex-shrink: 0;
    width: 26px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: hsl(var(--body-color));
    opacity: 0.4;
    text-align: left;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.docs__nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: hsl(var(--heading-color));
}

.docs__nav a.active {
    background: hsl(var(--base) / 0.12);
    color: hsl(var(--heading-color));
    border-left-color: hsl(var(--base));
}

.docs__nav a.active::before {
    color: hsl(var(--base));
    opacity: 1;
}

/* ---------- Content ---------- */
.docs__content {
    min-width: 0;
    /* No max-width: let the article fill its grid cell so the reading
       column lines up with the right edge of the quicklinks row above. */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.docs__section {
    position: relative;
    padding: 48px 48px 44px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    scroll-margin-top: 110px;
    overflow: hidden;
}

.docs__section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, hsl(var(--base) / 0.4) 50%, transparent 100%);
    opacity: 0.6;
}

/* alternate sections get a softer, cooler tint so they read as a different "panel" */
.docs__section:nth-child(even) {
    background: #161616;
    border-color: rgba(255, 255, 255, 0.06);
}

.docs__section:nth-child(even)::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
}

/* policy sections (TOS / Privacy) get a calmer, neutral panel */
.docs__section--policy {
    background: #121212 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.docs__section--policy::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%) !important;
}

.docs__section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs__section-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--base) / 0.2) 0%, hsl(var(--base) / 0.05) 100%);
    border: 1px solid hsl(var(--base) / 0.35);
    border-radius: 14px;
    color: hsl(var(--base));
    font-size: 22px;
    box-shadow: 0 8px 24px hsl(var(--base) / 0.15);
}

.docs__section:nth-child(even) .docs__section-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.18);
    color: hsl(var(--heading-color));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.docs__section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: hsl(var(--heading-color));
    margin: 0;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.docs__section h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.35;
    color: hsl(var(--heading-color));
    margin: 48px 0 18px;
    position: relative;
    padding-left: 18px;
}

.docs__section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: hsl(var(--base));
    border-radius: 2px;
}

.docs__section h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    color: hsl(var(--body-color));
    margin: 32px 0 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.75;
}

.docs__section p,
.docs__section li {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.85;
    color: hsl(var(--body-color));
}

.docs__section p {
    margin: 0 0 20px;
}

.docs__section ul,
.docs__section ol {
    margin: 0 0 28px;
    padding-left: 24px;
}

.docs__section li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.docs__section ul li::marker {
    color: hsl(var(--base));
}

.docs__section ol li::marker {
    color: hsl(var(--base));
    font-weight: 700;
}

.docs__section li strong,
.docs__section p strong {
    color: hsl(var(--heading-color));
    font-weight: 700;
}

.docs__section a {
    color: hsl(var(--base));
    text-decoration: none;
    border-bottom: 1px dashed hsl(var(--base) / 0.5);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.docs__section a:hover {
    color: hsl(var(--heading-color));
    border-bottom-color: hsl(var(--heading-color));
}

/* ---------- Note callout ---------- */
.docs__note {
    margin: 24px 0;
    padding: 18px 22px;
    background: hsl(var(--base) / 0.08);
    border: 1px solid hsl(var(--base) / 0.25);
    border-left: 3px solid hsl(var(--base));
    border-radius: 12px;
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.7;
    color: hsl(var(--body-color));
}

.docs__note strong {
    display: block;
    margin: 0 0 6px;
    color: hsl(var(--base));
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--heading-font);
}

/* ---------- Mode cards ---------- */
.docs__modes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 24px 0 36px;
}

.docs__mode {
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.docs__mode:hover {
    border-color: hsl(var(--base) / 0.4);
    transform: translateY(-2px);
}

.docs__mode-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.docs__mode-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--base) / 0.15);
    border-radius: 10px;
    color: hsl(var(--base));
    font-size: 16px;
}

.docs__mode-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    color: hsl(var(--heading-color));
}

.docs__mode-price {
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: hsl(var(--base));
    margin-bottom: 8px;
}

.docs__mode-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    opacity: 0.85;
}

/* ---------- Tier cards ---------- */
.docs__tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0 32px;
}

.docs__tier-card {
    position: relative;
    padding: 28px 24px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.docs__tier-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.docs__tier-card--standard::before {
    background: linear-gradient(90deg, hsl(var(--base)) 0%, hsl(var(--base) / 0.4) 100%);
}

.docs__tier-card--vip::before {
    background: linear-gradient(90deg, #4ec5ff 0%, #1a8cff 100%);
}

.docs__tier-card--gold::before {
    background: linear-gradient(90deg, #ffd75a 0%, #f0a020 100%);
}

.docs__tier-card--vip {
    border-color: rgba(78, 197, 255, 0.3);
}

.docs__tier-card--gold {
    border-color: rgba(255, 215, 90, 0.4);
}

.docs__tier-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: hsl(var(--heading-color));
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    line-height: 1;
}

.docs__tier-meta {
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs__tier-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs__tier-card li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.docs__tier-card li::before {
    content: "\f00c"; /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: hsl(var(--base));
    font-size: 11px;
}

.docs__tier-card--vip li::before {
    color: #4ec5ff;
}

.docs__tier-card--gold li::before {
    color: #f0a020;
}

/* ---------- Pricing tiles ---------- */
.docs__price-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 28px;
    list-style: none;
    padding-left: 0;
}

.docs__price-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 0;
    position: relative;
    transition: border-color 0.2s ease;
}

.docs__price-list li:hover {
    border-color: hsl(var(--base) / 0.4);
}

.docs__price-list li strong {
    color: hsl(var(--heading-color));
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.docs__price-list li span {
    font-size: 13px;
    color: hsl(var(--body-color));
    opacity: 0.75;
}

.docs__price-list li em {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 8px;
    background: hsl(var(--base) / 0.2);
    color: hsl(var(--base));
    border-radius: 999px;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- Misc ---------- */
.docs__updated {
    display: inline-block;
    font-family: var(--heading-font);
    font-size: 11px;
    color: hsl(var(--body-color));
    opacity: 0.55;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

/* ---------- Mobile menu toggle ---------- */
.docs__sidebar-toggle {
    display: none;
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: hsl(var(--heading-color));
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.docs__sidebar-toggle i {
    float: right;
    transition: transform 0.2s ease;
}

.docs__sidebar-toggle.is-open i {
    transform: rotate(180deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .docs__quicklinks {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .docs__hero {
        padding: 110px 0 56px;
    }
    .docs__container {
        padding: 0 20px;
    }
    .docs__title {
        font-size: 46px;
        letter-spacing: -1.5px;
    }
    .docs__hero-inner {
        margin-bottom: 48px;
    }
    .docs__quicklinks {
        margin-bottom: 64px;
    }
    .docs__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .docs__sidebar-toggle {
        display: block;
    }
    .docs__sidebar-wrap {
        position: static;
    }
    .docs__sidebar {
        max-height: none;
        display: none;
    }
    .docs__sidebar.is-open {
        display: block;
    }
    .docs__section {
        padding: 32px 24px 28px;
        border-radius: 16px;
    }
    .docs__content {
        gap: 20px;
    }
    .docs__section-head {
        gap: 14px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    .docs__section-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .docs__section h2 {
        font-size: 28px;
    }
    .docs__modes,
    .docs__tier-grid {
        grid-template-columns: 1fr;
    }
    .docs__price-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .docs__title {
        font-size: 34px;
    }
    .docs__lead {
        font-size: 16px;
    }
    .docs__quicklinks {
        grid-template-columns: 1fr;
    }
    .docs__section h2 {
        font-size: 24px;
    }
    .docs__section h3 {
        margin-top: 36px;
        font-size: 19px;
    }
    .docs__price-list {
        grid-template-columns: 1fr;
    }
}
