﻿:root {
    --bg: #080b12;
    --bg2: #0d1220;
    --surface: #141c2e;
    --surface2: #1a2540;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.13);
    --border3: rgba(255,255,255,0.22);
    --accent: #4f8dff;
    --accent2: #7c5cfc;
    --accent3: #00d4aa;
    --gold: #f5c842;
    --warn: #ff6b35;
    --text: #f0f4ff;
    --text2: #8b9ab8;
    --text3: #4f5f7a;
    --font-display: "Fraunces",serif;
    --font-body: "Plus Jakarta Sans",sans-serif;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6
}

a {
    color: inherit;
    text-decoration: none
}

.wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 5%
}

/* ===== NAV ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 64px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8,11,18,.94);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border)
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px
}

.nav-link {
    color: var(--text2);
    font-size: .83rem;
    font-weight: 500
}

    .nav-link:hover {
        color: var(--text)
    }

.nav-cta {
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-size: .83rem;
    font-weight: 700;
    background: linear-gradient(135deg,var(--accent),var(--accent2))
}

/* ===== COMPACT HEADER ===== */
.catalog-header {
    padding: 32px 0 20px;
    border-bottom: 1px solid var(--border)
}

.ch-eyebrow {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px
}

    .ch-eyebrow .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent3);
        box-shadow: 0 0 8px var(--accent3)
    }

.catalog-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem,3vw,2.3rem);
    font-weight: 900;
    letter-spacing: -.02em
}

    .catalog-header h1 em {
        font-style: italic;
        color: var(--accent3)
    }

.ch-sub {
    font-size: .88rem;
    color: var(--text2);
    margin-top: 8px;
    max-width: 600px
}

.search-wrap {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--r-sm);
    padding: 12px 16px
}

    .search-wrap svg {
        color: var(--text3);
        flex-shrink: 0
    }

    .search-wrap input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        color: var(--text);
        font-family: var(--font-body);
        font-size: .88rem
    }

        .search-wrap input::placeholder {
            color: var(--text3)
        }

    .search-wrap kbd {
        font-size: .68rem;
        color: var(--text3);
        border: 1px solid var(--border2);
        border-radius: 5px;
        padding: 2px 6px
    }

.proof-strip {
    display: flex;
    gap: 22px;
    margin-top: 16px;
    flex-wrap: wrap
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    color: var(--text2)
}

.proof-ico {
    color: var(--accent3)
}

/* ===== LAYOUT ===== */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 28px 0 60px;
    align-items: start
}

/* ---- SIDEBAR ---- */
.filter-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 26px
}

.filter-group {
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px
}

    .filter-group:last-child {
        border-bottom: none
    }

.filter-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text);
    margin-bottom: 12px
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: .83rem;
    color: var(--text2)
}

    .filter-option:hover {
        color: var(--text)
    }

    .filter-option input[type=checkbox] {
        accent-color: var(--accent);
        width: 15px;
        height: 15px;
        flex-shrink: 0
    }

.filter-option-label {
    display: flex;
    align-items: center;
    gap: 9px
}

.filter-count {
    font-size: .72rem;
    color: var(--text3)
}

.filter-clear {
    font-size: .76rem;
    color: var(--accent);
    font-weight: 600;
    align-self: flex-start;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body)
}

/* ---- RESULTS HEADER ---- */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px
}

.results-count {
    font-size: .85rem;
    color: var(--text2)
}

    .results-count b {
        color: var(--text)
    }

.sort-select {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--r-sm);
    color: var(--text);
    padding: 8px 12px;
    font-size: .82rem;
    font-family: var(--font-body)
}

.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.active-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(79,141,255,.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: .76rem;
    font-weight: 600
}

    .active-chip button {
        background: none;
        border: none;
        color: inherit;
        cursor: pointer;
        font-size: .9rem;
        line-height: 1
    }

/* ---- RESULT ROW ---- */
.result-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.exam-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--r-lg);
    padding: 20px;
    transition: .15s
}

    .exam-row:hover {
        border-color: var(--border3);
        background: var(--surface2)
    }

    .exam-row.is-hidden {
        display: none
    }

.er-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0
}

.exam-row:hover .er-icon {
    background: var(--surface)
}

.er-main {
    min-width: 0
}

.er-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px
}

.er-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.02rem
}

.er-badge {
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(255,107,53,.12);
    border: 1px solid rgba(255,107,53,.3);
    color: var(--warn)
}

    .er-badge.new {
        background: rgba(124,92,252,.12);
        border-color: rgba(124,92,252,.35);
        color: var(--accent2)
    }

.er-vendor {
    font-size: .76rem;
    color: var(--text3);
    margin-bottom: 8px
}

.er-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px
}

.er-diff {
    display: flex;
    align-items: center;
    gap: 3px
}

.diff-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border2)
}

    .diff-pip.pip-on {
        background: var(--gold)
    }

.diff-label {
    font-size: .72rem;
    color: var(--text3);
    margin-left: 5px
}

.er-meta-item {
    font-size: .76rem;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 5px
}

    .er-meta-item.pass {
        font-weight: 600
    }

        .er-meta-item.pass.good {
            color: var(--accent3)
        }

        .er-meta-item.pass.warn {
            color: var(--gold)
        }

.er-path {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px
}

.er-path-step {
    display: flex;
    align-items: center;
    gap: 5px
}

.er-path-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border2)
}

.er-path-label {
    font-size: .66rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .03em
}

.er-path-sep {
    width: 14px;
    height: 1px;
    background: var(--border2)
}

.er-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.er-tag {
    font-size: .68rem;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border2);
    color: var(--text2)
}

.er-cta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right
}

.er-guarantee {
    font-size: .7rem;
    color: var(--accent3);
    font-weight: 600;
    white-space: nowrap
}

.er-view-btn {
    padding: 9px 18px;
    border-radius: var(--r-sm);
    background: rgba(79,141,255,.12);
    border: 1px solid rgba(79,141,255,.3);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap
}

.exam-row:hover .er-view-btn {
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    color: #fff;
    border-color: transparent
}

@media(max-width:980px) {
    .catalog-layout {
        grid-template-columns: 1fr
    }

    .filter-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        overflow-x: auto
    }

    .filter-group {
        border-bottom: none;
        padding-bottom: 0;
        flex-shrink: 0
    }
}

@media(max-width:720px) {
    .exam-row {
        grid-template-columns: 44px 1fr;
        grid-template-areas: "icon main" "cta cta"
    }

    .er-icon {
        grid-area: icon;
        width: 44px;
        height: 44px
    }

    .er-main {
        grid-area: main
    }

    .er-cta-col {
        grid-area: cta;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border)
    }
}

.empty-state {
    display: none;
    text-align: center;
    padding: 70px 0
}

    .empty-state.show {
        display: block
    }

.es-icon {
    font-size: 2rem;
    margin-bottom: 12px
}

.empty-state h3 {
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 6px
}

.empty-state p {
    color: var(--text3);
    font-size: .85rem;
    margin-bottom: 18px
}

.btn-primary {
    display: inline-flex;
    padding: 11px 22px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    color: #fff;
    font-weight: 700;
    font-size: .85rem
}

.site-footer {
    padding: 28px 5%;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text3);
    font-size: .75rem
}

.search-focus {
    animation: pulse 1.5s ease;
    border: 2px solid var(--accent)
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.01)
    }

    100% {
        transform: scale(1)
    }
}
