/* ==========================================================================
   Press & Resources — Dark Editorial
   Matches the design-reference resources.html aesthetic
   ========================================================================== */

:root {
    --pr-gold: #FFD700;
    --pr-bg: #0A0A0A;
    --pr-card: #161B22;
    --pr-border: #30363D;
    --pr-white: #ffffff;
    --pr-muted: #8b949e;
    --pr-text: #c9d1d9;
    --pr-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Shell */
.press-shell {
    background: var(--pr-bg);
    color: var(--pr-text);
    font-family: var(--pr-sans);
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
}

.press-shell ::selection {
    background: var(--pr-gold);
    color: var(--pr-bg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.press-hero {
    padding: 100px 0 64px;
}

.press-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    max-width: 720px;
    margin-left: max(24px, calc((100% - 1200px) / 2 + 24px));
}

@media (max-width: 1024px) {
    .press-hero-inner { margin-left: auto; margin-right: auto; }
}

.pr-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pr-gold);
    margin-bottom: 24px;
}

.pr-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--pr-white);
    margin: 0 0 24px;
    line-height: 1.05;
}

.pr-title-gold {
    color: var(--pr-gold);
}

.pr-subtitle {
    font-size: 1.15rem;
    color: var(--pr-muted);
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

/* ==========================================================================
   Layout — Sidebar + Main
   ========================================================================== */

.press-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 96px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .press-layout {
        grid-template-columns: 240px 1fr;
        gap: 64px;
    }
}

/* ==========================================================================
   Sidebar — homepage-aligned tokens + topic filter
   ========================================================================== */

.press-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .press-sidebar { display: block; }
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #FFD700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #FFD700;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    gap: 16px;
}

.sidebar-link.active {
    color: #FFD700;
}

.sidebar-link .material-symbols-outlined {
    font-size: 18px;
    opacity: 0.75;
}

/* ---- Topic filter ---- */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 6px;
}

.sidebar-tag {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-family: 'Public Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.sidebar-tag:hover {
    border-color: rgba(255, 215, 0, 0.45);
    color: #FFD700;
    transform: translateY(-1px);
}

.sidebar-tag.active {
    background: #FFD700;
    border-color: #FFD700;
    color: #0A0A0A;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.2);
}

.sidebar-tag-count {
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.04em;
}

.sidebar-tag.active .sidebar-tag-count {
    color: rgba(0, 0, 0, 0.72);
}

/* Mobile filter bar — shown below hero on small screens */
.filter-bar-mobile {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 24px 8px;
    max-width: 1200px;
    margin: 0 auto 24px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.filter-bar-mobile::-webkit-scrollbar { display: none; }
.filter-bar-mobile .sidebar-tag { scroll-snap-align: start; flex-shrink: 0; }

@media (min-width: 1024px) {
    .filter-bar-mobile { display: none; }
}

/* Empty-state for filter with no matches */
.filter-empty {
    text-align: center;
    padding: 72px 24px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Public Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: transparent;
    display: none;
}

.filter-empty.show { display: block; }

.filter-empty strong {
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 900;
    display: block;
    margin-bottom: 8px;
}

/* Items hidden by active topic filter */
.press-row.is-hidden,
.resource-card.is-hidden {
    display: none;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.press-main > section {
    margin-bottom: 80px;
}

.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pr-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.section-title-bar {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pr-white);
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.title-accent-bar {
    display: block;
    width: 6px;
    height: 24px;
    background: var(--pr-gold);
    border-radius: 3px;
    flex-shrink: 0;
}

.section-count {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pr-muted);
}

/* ==========================================================================
   Press List grid wrapper and Resource grid
   Item styles live in listings.css (shared card language)
   ========================================================================== */

.resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 28px;
}

@media (min-width: 768px) {
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.pr-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--pr-muted);
}

.pr-empty .material-symbols-outlined {
    font-size: 48px;
    opacity: 0.15;
    margin-bottom: 12px;
}

.pr-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .press-hero { padding: 64px 0 40px; }

    .press-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .press-row-icon {
        width: 56px;
        height: 56px;
    }

    .press-row-arrow {
        align-self: flex-end;
    }
}
