﻿:root {
    --bg: #080b12;
    --bg2: #0d1220;
    --surface: #111827;
    --surface2: #1a2540;
    --border: rgba(255,255,255,.07);
    --border2: rgba(255,255,255,.13);
    --border3: rgba(255,255,255,.22);
    --accent: #4f8dff;
    --accent2: #7c5cfc;
    --accent3: #00d4aa;
    --gold: #f5c842;
    --warn: #ff6b35;
    --red: #ff4757;
    --text: #f0f4ff;
    --text2: #8b9ab8;
    --text3: #4f5f7a;
    --hot: #ff6b35;
    --new-clr: #7c5cfc;
    --pass-low: #00d4aa;
    --pass-mid: #f5c842;
    --pass-high: #ff4757;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-lg: 0 12px 40px rgba(0,0,0,.45);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════
           RESET & BASE
        ═══════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════
           NAV
        ═══════════════════════════════════════════════ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8,11,18,.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(79,141,255,.7);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text2);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: color .18s;
}

    .nav-link:hover {
        color: var(--text);
    }

.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s;
}

    .nav-cta:hover {
        background: #3a7aef;
    }

/* ═══════════════════════════════════════════════
           HERO
        ═══════════════════════════════════════════════ */
.lib-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 5% 64px;
    background: var(--bg);
}

.lib-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at 75% 50%, rgba(79,141,255,.12) 0%, transparent 65%), radial-gradient(ellipse 45% 40% at 15% 75%, rgba(124,92,252,.10) 0%, transparent 60%);
}

.lib-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 75%);
}

.lib-hero-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.lib-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b9cf4;
    margin-bottom: 20px;
}

.eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.6);
    }
}

.lib-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 18px;
}

    .lib-h1 em {
        font-style: italic;
        color: var(--accent);
    }

.lib-sub {
    font-size: 1rem;
    color: var(--text2);
    max-width: 540px;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 32px;
}

/* Search bar */
.lib-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 10px 16px;
    max-width: 520px;
    backdrop-filter: blur(8px);
    transition: border-color .2s, background .2s;
    margin-bottom: 28px;
}

    .lib-search-wrap:focus-within {
        border-color: rgba(79,141,255,.5);
        background: rgba(255,255,255,.07);
    }

.lib-search-ico {
    color: var(--text3);
    flex-shrink: 0;
}

.lib-search-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: .92rem;
    color: var(--text);
}

    .lib-search-wrap input::placeholder {
        color: var(--text3);
    }

.lib-search-wrap kbd {
    font-family: var(--font-mono);
    font-size: .68rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border2);
    color: var(--text3);
    background: rgba(255,255,255,.04);
}

/* Hero category pills */
.lib-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.lib-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border2);
    color: var(--text2);
    font-size: .78rem;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

    .lib-meta-pill:hover {
        background: rgba(79,141,255,.12);
        border-color: rgba(79,141,255,.35);
        color: #93c5fd;
    }

.lmp-ico {
    font-size: .82rem;
}

.lmp-count {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--text3);
    margin-left: 2px;
}

/* ═══════════════════════════════════════════════
           AI BANNER
        ═══════════════════════════════════════════════ */
.ai-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px 5%;
    background: linear-gradient(135deg, rgba(79,141,255,.09) 0%, rgba(124,92,252,.09) 100%);
    border-top: 1px solid rgba(79,141,255,.15);
    border-bottom: 1px solid rgba(79,141,255,.15);
}

.ai-banner-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ai-banner-body {
    flex: 1;
    min-width: 200px;
}

    .ai-banner-body h2 {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 3px;
    }

    .ai-banner-body p {
        font-size: .83rem;
        color: var(--text2);
        line-height: 1.5;
    }

.ai-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
           STICKY CATEGORY NAV
        ═══════════════════════════════════════════════ */
.cat-nav {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(8,11,18,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
}

.cat-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
}

    .cat-nav-inner::-webkit-scrollbar {
        display: none;
    }

.cn-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid transparent;
    background: none;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 500;
    color: var(--text3);
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}

    .cn-btn:hover {
        background: rgba(255,255,255,.05);
        color: var(--text2);
    }

    .cn-btn.active {
        background: rgba(79,141,255,.15);
        border-color: rgba(79,141,255,.4);
        color: var(--accent);
    }

/* ═══════════════════════════════════════════════
           MAIN BODY
        ═══════════════════════════════════════════════ */
.lib-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 5% 0;
}

/* ═══════════════════════════════════════════════
           CATEGORY SECTION
        ═══════════════════════════════════════════════ */
.cat-section {
    margin-bottom: 60px;
    scroll-margin-top: 130px;
}

.cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(79,141,255,.1);
    border: 1px solid rgba(79,141,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cat-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.015em;
}

.cat-subtitle {
    font-size: .75rem;
    color: var(--text3);
    margin-top: 2px;
}

.cat-slug-link {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--accent);
    text-decoration: none;
}

    .cat-slug-link:hover {
        text-decoration: underline;
    }

.cat-view-all {
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}

    .cat-view-all:hover {
        color: #93c5fd;
    }

/* ═══════════════════════════════════════════════
           EXAM GRID & CARD
        ═══════════════════════════════════════════════ */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 12px;
}

.exam-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
    overflow: hidden;
}

    .exam-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        opacity: 0;
        background: linear-gradient(135deg, rgba(79,141,255,.06), transparent);
        transition: opacity .2s;
        pointer-events: none;
    }

    .exam-card:hover {
        border-color: rgba(79,141,255,.35);
        background: var(--surface2);
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

        .exam-card:hover::before {
            opacity: 1;
        }

    .exam-card.is-hot {
        border-top: 2px solid var(--hot);
    }

    .exam-card.is-new {
        border-top: 2px solid var(--new-clr);
    }

    .exam-card.search-hidden {
        display: none;
    }

.ec-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: .04em;
}

.badge-hot {
    background: rgba(255,107,53,.12);
    color: var(--warn);
    border: 1px solid rgba(255,107,53,.3);
}

.badge-new {
    background: rgba(124,92,252,.12);
    color: var(--new-clr);
    border: 1px solid rgba(124,92,252,.3);
}

.ec-top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ec-emoji {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(79,141,255,.08);
    border: 1px solid rgba(79,141,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ec-short {
    font-family: var(--font-display);
    font-size: .98rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.ec-vendor {
    font-size: .72rem;
    color: var(--text3);
    margin-top: 2px;
}

.ec-fullname {
    font-size: .8rem;
    color: var(--text2);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Difficulty */
.ec-diff {
    display: flex;
    align-items: center;
    gap: 3px;
}

.diff-pip {
    display: inline-block;
    width: 12px;
    height: 3px;
    border-radius: 2px;
    background: var(--border2);
}

.pip-on {
    background: var(--accent);
}

.diff-label {
    font-size: .68rem;
    font-weight: 600;
    color: var(--text3);
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* Stats */
.ec-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ec-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: var(--text2);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px 9px;
}

.ecs-ico {
    font-size: .68rem;
}

.ec-stat.pass-low {
    color: var(--pass-low);
    background: rgba(0,212,170,.07);
    border-color: rgba(0,212,170,.2);
}

.ec-stat.pass-mid {
    color: var(--pass-mid);
    background: rgba(245,200,66,.07);
    border-color: rgba(245,200,66,.2);
}

.ec-stat.pass-high {
    color: var(--pass-high);
    background: rgba(255,71,87,.07);
    border-color: rgba(255,71,87,.2);
}

/* Tags */
.ec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ec-tag {
    font-size: .67rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(79,141,255,.08);
    color: #6b9cf4;
    border: 1px solid rgba(79,141,255,.18);
}

/* Card footer */
.ec-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.ec-cta {
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
    transition: color .15s;
}

.exam-card:hover .ec-cta {
    color: #93c5fd;
}

/* ═══════════════════════════════════════════════
           EMPTY STATE
        ═══════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    max-width: 400px;
    margin: 0 auto;
}

.es-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
    opacity: .5;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: .87rem;
    color: var(--text3);
}

.empty-state a {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════
           BOTTOM CTA
        ═══════════════════════════════════════════════ */
.lib-cta {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    margin-top: 72px;
    padding: 64px 5% 56px;
}

.lib-cta-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.lib-cta-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.025em;
    margin-bottom: 10px;
}

.lib-cta-text p {
    color: var(--text2);
    max-width: 400px;
    line-height: 1.65;
    font-size: .92rem;
}

.lib-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
           FOOTER CATEGORY DIRECTORY
        ═══════════════════════════════════════════════ */
.footer-cat-nav {
    max-width: 1280px;
    margin: 36px auto 0;
}

.fcn-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fcn-label {
    font-family: var(--font-mono);
    font-size: .67rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text3);
}

.fcn-all {
    font-size: .78rem;
    color: var(--accent);
    text-decoration: none;
    transition: color .15s;
}

    .fcn-all:hover {
        color: #93c5fd;
    }

.fcn-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px 8px;
}

.fcn-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .15s;
}

    .fcn-link:hover {
        background: rgba(255,255,255,.05);
    }

.fcn-ico {
    font-size: .88rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.fcn-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fcn-name {
    font-size: .78rem;
    font-weight: 500;
    color: var(--text2);
    line-height: 1.2;
    transition: color .15s;
}

.fcn-link:hover .fcn-name {
    color: var(--text);
}

.fcn-count {
    font-size: .67rem;
    color: var(--text3);
}

/* ═══════════════════════════════════════════════
           SHARED BUTTONS
        ═══════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: .87rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

    .btn-primary:hover {
        background: #3a7aef;
        transform: translateY(-1px);
    }

    .btn-primary.btn-lg {
        padding: 13px 28px;
        font-size: .92rem;
    }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text2);
    font-family: var(--font-body);
    font-size: .87rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border2);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

    .btn-ghost:hover {
        border-color: var(--border3);
        color: var(--text);
    }

    .btn-ghost.btn-lg {
        padding: 13px 28px;
        font-size: .92rem;
    }

/* ═══════════════════════════════════════════════
           SITE FOOTER
        ═══════════════════════════════════════════════ */
.site-footer {
    padding: 28px 5%;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: var(--bg);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .footer-links a {
        font-size: .76rem;
        color: var(--text3);
        text-decoration: none;
        transition: color .15s;
    }

        .footer-links a:hover {
            color: var(--text2);
        }

.footer-copy {
    font-size: .73rem;
    color: var(--text3);
}

/* ═══════════════════════════════════════════════
           RESPONSIVE
        ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .fcn-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lib-cta-inner {
        flex-direction: column;
        gap: 24px;
    }

    .lib-search-wrap kbd {
        display: none;
    }

    .exam-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .fcn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lib-hero {
        padding: 52px 5% 44px;
    }

    .lib-body {
        padding: 32px 5% 0;
    }

    .lib-meta-row {
        display: none;
    }

    .exam-grid {
        grid-template-columns: 1fr;
    }

    .nav-links .nav-link {
        display: none;
    }
}

