/*
 * Sitemap Page - SEO-First Table of Contents
 * Modern dark theme, fully crawlable, ADA compliant
 */

@layer pages {

    /* ============================================================
       CSS VARIABLES
       ============================================================ */
    .sitemap-page {
        --sm-green-rgb: 140, 149, 0;
        --sm-yellow-rgb: 237, 173, 1;
        --sm-blue-rgb: 49, 134, 255;
    }

    /* ============================================================
       PAGE LAYOUT
       ============================================================ */
    .sitemap-page {
        min-height: calc(100vh - 200px);
        background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
    }

    /* ============================================================
       HERO SECTION
       ============================================================ */
    .sm-hero {
        padding: 50px 16px 40px;
        text-align: center;
        background:
            radial-gradient(ellipse 60% 50% at 50% 30%, rgba(var(--sm-green-rgb), 0.10) 0%, transparent 50%),
            radial-gradient(ellipse 50% 40% at 80% 70%, rgba(var(--sm-yellow-rgb), 0.06) 0%, transparent 50%),
            transparent;
    }

    .sm-hero-inner {
        max-width: min(800px, 100%);
        margin: 0 auto;
    }

    .sm-hero h1 {
        font: 700 clamp(28px, 5vw, 42px)/1.2 "Barlow Condensed", sans-serif;
        color: var(--white);
        margin: 0 0 12px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .sm-intro {
        font: 400 16px/1.6 "Jost", sans-serif;
        color: rgba(255, 255, 255, 0.7);
        margin: 0 auto 28px;
        max-width: 600px;
    }

    /* Quick Navigation Pills */
    .sm-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .sm-nav-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        border-radius: 100px;
        font: 500 14px/1 "Jost", sans-serif;
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .sm-nav-link:hover,
    .sm-nav-link:focus-visible {
        background: rgba(var(--sm-yellow-rgb), 0.15);
        border-color: rgba(var(--sm-yellow-rgb), 0.3);
        color: var(--btn-yellow-bg);
        text-decoration: none;
    }

    .sm-nav-link:focus-visible {
        outline: 2px solid var(--btn-yellow-bg);
        outline-offset: 2px;
    }

    .sm-nav-link i {
        font-size: 14px;
        opacity: 0.7;
    }

    /* ============================================================
       SECTION CONTAINER
       ============================================================ */
    .sm-section {
        padding: 40px 16px;
        background: #0a0a0a;
        scroll-margin-top: 20px;
    }

    .sm-section-alt {
        background: rgba(255, 255, 255, 0.02);
    }

    .sm-section-inner {
        max-width: min(1080px, 100%);
        margin: 0 auto;
    }

    /* Section Headers */
    .sm-section-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sm-section-header i {
        font-size: 24px;
        color: var(--btn-yellow-bg);
    }

    .sm-section-header h2 {
        font: 700 clamp(22px, 4vw, 28px)/1.2 "Barlow Condensed", sans-serif;
        color: var(--btn-yellow-bg);
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    /* ============================================================
       CATEGORIES TOC - Table of Contents Style
       ============================================================ */
    .sm-categories-toc {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Category Card */
    .sm-category-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 20px;
        transition: all 0.2s ease;
    }

    .sm-category-card:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .sm-category-title {
        margin: 0 0 14px;
    }

    .sm-category-title a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font: 600 18px/1.3 "Jost", sans-serif;
        color: var(--white);
        text-decoration: none;
        transition: color 0.15s ease;
    }

    .sm-category-title a:hover {
        color: var(--btn-yellow-bg);
    }

    .sm-category-title a::after {
        content: "\f061";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 12px;
        opacity: 0;
        transform: translateX(-5px);
        transition: all 0.2s ease;
    }

    .sm-category-title a:hover::after {
        opacity: 0.7;
        transform: translateX(0);
    }

    /* Subcategory Links */
    .sm-subcategories {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sm-subcategory-link {
        display: inline-block;
        padding: 6px 12px;
        font: 400 13px/1.3 "Jost", sans-serif;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 6px;
        transition: all 0.15s ease;
    }

    .sm-subcategory-link:hover {
        color: var(--white);
        background: rgba(var(--sm-green-rgb), 0.2);
        text-decoration: none;
    }

    /* ============================================================
       AUTHORS SECTION - Alphabetical Grid
       ============================================================ */
    .sm-authors-intro {
        font: 400 15px/1.6 "Jost", sans-serif;
        color: rgba(255, 255, 255, 0.6);
        margin: 0 0 20px;
    }

    .sm-authors-intro a {
        color: var(--btn-yellow-bg);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .sm-authors-intro a:hover {
        color: var(--white);
    }

    .sm-authors-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 16px;
    }

    .sm-author-link {
        display: block;
        padding: 8px 0;
        font: 400 14px/1.4 "Jost", sans-serif;
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.15s ease;
    }

    .sm-author-link:hover {
        color: var(--white);
        padding-left: 6px;
        text-decoration: none;
    }

    /* View All Authors Link */
    .sm-view-all {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 24px;
        padding: 12px 24px;
        font: 500 14px/1 "Jost", sans-serif;
        color: var(--white);
        background: rgba(var(--sm-green-rgb), 0.2);
        border: 1px solid rgba(var(--sm-green-rgb), 0.3);
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .sm-view-all:hover {
        background: rgba(var(--sm-green-rgb), 0.3);
        border-color: var(--header-green);
        text-decoration: none;
    }

    .sm-view-all i {
        font-size: 12px;
    }

    /* ============================================================
       INFO LINKS - Help & Policies
       ============================================================ */
    .sm-info-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sm-info-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 18px;
        font: 500 15px/1.3 "Jost", sans-serif;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        transition: all 0.2s ease;
    }

    .sm-info-link:hover {
        color: var(--white);
        background: rgba(var(--sm-yellow-rgb), 0.08);
        border-color: rgba(var(--sm-yellow-rgb), 0.2);
        text-decoration: none;
    }

    .sm-info-link i {
        font-size: 18px;
        color: var(--btn-yellow-bg);
        opacity: 0.8;
        width: 24px;
        text-align: center;
    }

    .sm-info-link:hover i {
        opacity: 1;
    }

    /* ============================================================
       DISCOVER SECTION - Scout CTA
       ============================================================ */
    .sm-discover {
        padding: 50px 16px;
        background:
            radial-gradient(ellipse 60% 50% at 30% 50%, rgba(var(--sm-blue-rgb), 0.08) 0%, transparent 50%),
            radial-gradient(ellipse 50% 40% at 70% 30%, rgba(var(--sm-yellow-rgb), 0.06) 0%, transparent 50%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        text-align: center;
    }

    .sm-discover-inner {
        max-width: 600px;
        margin: 0 auto;
    }

    .sm-discover h2 {
        font: 700 clamp(22px, 4vw, 28px)/1.3 "Jost", sans-serif;
        color: var(--white);
        margin: 0 0 12px;
    }

    .sm-discover-text {
        font: 400 15px/1.6 "Jost", sans-serif;
        color: rgba(255, 255, 255, 0.6);
        margin: 0 0 24px;
    }

    .sm-discover-cta {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 28px;
        font: 600 15px/1 "Jost", sans-serif;
        color: #000;
        background: var(--btn-yellow-bg);
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .sm-discover-cta:hover {
        background: #fff;
        color: #000;
        text-decoration: none;
        transform: translateY(-2px);
    }

    .sm-discover-cta i {
        font-size: 16px;
    }

    /* ============================================================
       RESPONSIVE - TABLET (min-width: 600px)
       ============================================================ */
    @media (min-width: 600px) {
        .sm-hero {
            padding: 60px 24px 50px;
        }

        .sm-section {
            padding: 50px 24px;
        }

        .sm-categories-toc {
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

        .sm-authors-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 8px 24px;
        }

        .sm-info-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* ============================================================
       RESPONSIVE - DESKTOP (min-width: 900px)
       ============================================================ */
    @media (min-width: 900px) {
        .sm-hero {
            padding: 70px 24px 60px;
        }

        .sm-intro {
            font-size: 17px;
        }

        .sm-section {
            padding: 60px 24px;
        }

        .sm-categories-toc {
            grid-template-columns: repeat(3, 1fr);
        }

        .sm-category-card {
            padding: 24px;
        }

        .sm-category-title a {
            font-size: 20px;
        }

        .sm-subcategory-link {
            font-size: 14px;
            padding: 7px 14px;
        }

        .sm-authors-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 8px 30px;
        }

        .sm-discover {
            padding: 70px 24px;
        }
    }

    /* ============================================================
       RESPONSIVE - LARGE DESKTOP (min-width: 1100px)
       ============================================================ */
    @media (min-width: 1100px) {
        .sm-authors-grid {
            grid-template-columns: repeat(5, 1fr);
        }
    }

} /* end @layer pages */
