/* ==========================================
   WW2 OBSCURA — MAIN STYLESHEET
   Dark wartime aesthetic with aged parchment
   ========================================== */

:root {
    --ink:        #1a1208;
    --bg:         #0d0b08;
    --bg2:        #141009;
    --bg3:        #1c1510;
    --parchment:  #f2e8d0;
    --parchment2: #ede0c0;
    --gold:       #c9a84c;
    --gold2:      #e6c36a;
    --rust:       #8b2500;
    --rust2:      #b03000;
    --olive:      #4a5430;
    --olive2:     #6b7a40;
    --slate:      #2c3e50;
    --muted:      #7a6e5a;
    --muted2:     #9e9080;
    --border:     #2e2518;
    --border2:    #3d3020;
    --red-badge:  #7a1515;
    --ease-badge: #1a4a1a;
    --med-badge:  #4a3500;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans:  'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --shadow:     0 2px 12px rgba(0,0,0,0.5);
    --shadow-lg:  0 6px 32px rgba(0,0,0,0.6);
    --radius:     4px;
    --radius2:    8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--parchment);
    font-family: var(--font-sans);
    line-height: 1.6;
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(201,168,76,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(139,37,0,0.04) 0%, transparent 50%);
}

a { color: var(--gold2); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ──────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--parchment);
}
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── SITE HEADER ─────────────────────────── */
.site-header {
    background: linear-gradient(180deg, #0a0806 0%, var(--bg2) 100%);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 12px rgba(201,168,76,0.7);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--parchment);
    letter-spacing: 0.02em;
}

.logo-text em {
    color: var(--gold2);
    font-style: italic;
}

.header-brand { display: flex; flex-direction: column; gap: 0.2rem; }

.tagline {
    font-size: 0.7rem;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.header-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted2);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.header-nav a:hover {
    color: var(--gold2);
    border-bottom-color: var(--gold2);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 3px;
    overflow: hidden;
}

.header-search input {
    background: transparent;
    border: none;
    color: var(--parchment);
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    width: 200px;
    outline: none;
}

.header-search input::placeholder { color: var(--muted); }

.header-search button {
    background: var(--gold);
    border: none;
    color: var(--ink);
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.header-search button:hover { background: var(--gold2); }

/* ── CATEGORY NAV ────────────────────────── */
.category-nav {
    background: var(--bg3);
    border-top: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
}

.cat-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0;
    white-space: nowrap;
}

.cat-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-right: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.cat-nav-link:first-child { border-left: 1px solid var(--border); }

.cat-nav-link:hover {
    color: var(--gold2);
    background: rgba(201,168,76,0.07);
}

.cat-icon { font-size: 0.9em; }

/* ── MAIN LAYOUT ─────────────────────────── */
.site-main { min-height: 60vh; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

/* ── HERO SECTION ────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0f0c07 0%, #1a1208 40%, #0d0b08 100%);
    border-bottom: 1px solid var(--border2);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(201,168,76,0.015) 2px,
            rgba(201,168,76,0.015) 4px
        );
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--parchment);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero h1 em {
    color: var(--gold2);
    font-style: italic;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--muted2);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--gold);
    font-family: var(--font-serif);
    line-height: 1;
}

.hero-stat span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* ── SECTION HEADERS ─────────────────────── */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border2);
}

.section-header h2 { flex: 1; }

.section-link {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.section-link:hover { color: var(--gold2); }

/* ── CATEGORY GRID ───────────────────────── */
.categories-section { padding: 3rem 1.5rem; background: var(--bg2); }

.cat-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.cat-card {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: var(--radius2);
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.2s;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.cat-card:hover::before { opacity: 1; }

.cat-card-icon {
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
}

.cat-card h3 {
    font-size: 0.95rem;
    color: var(--parchment);
    margin: 0;
}

.cat-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}

.cat-count {
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: auto;
}

/* ── TRIVIA CARDS ────────────────────────── */
.trivia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.trivia-card {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius2);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.trivia-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border2);
}

.trivia-card-header {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.trivia-cat-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    padding: 0.2em 0.6em;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 2px;
    white-space: nowrap;
}

.trivia-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trivia-question {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--parchment);
}

.trivia-reveal {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-left: 3px solid var(--gold);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    display: none;
}

.trivia-reveal.active { display: block; }

.trivia-answer {
    font-size: 0.9rem;
    color: var(--gold2);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trivia-fact {
    font-size: 0.82rem;
    color: var(--muted2);
    line-height: 1.5;
}

.trivia-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn-reveal {
    background: var(--rust);
    color: var(--parchment);
    border: none;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s;
    font-family: var(--font-sans);
}

.btn-reveal:hover { background: var(--rust2); }

.btn-link {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-link:hover { color: var(--gold); }

/* ── BADGES ──────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2em 0.6em;
    border-radius: 2px;
    font-weight: 600;
}

.badge-easy  { background: var(--ease-badge); color: #7ec87e; border: 1px solid #2a6a2a; }
.badge-medium { background: var(--med-badge); color: #d4a843; border: 1px solid #6a5000; }
.badge-hard  { background: var(--red-badge); color: #e07070; border: 1px solid #6a2020; }

/* ── STORY CARDS ─────────────────────────── */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.story-card {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius2);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.story-card-banner {
    height: 6px;
    background: linear-gradient(90deg, var(--rust), var(--gold));
}

.story-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.story-card h3 {
    font-size: 1.05rem;
    color: var(--parchment);
    line-height: 1.35;
    transition: color 0.2s;
}

.story-card:hover h3 { color: var(--gold2); }

.story-card p {
    font-size: 0.85rem;
    color: var(--muted2);
    line-height: 1.55;
    flex: 1;
    margin: 0;
}

.story-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.story-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tag {
    font-size: 0.65rem;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--gold);
    padding: 0.15em 0.5em;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── INDIVIDUAL TRIVIA PAGE ──────────────── */
.trivia-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.trivia-breadcrumb {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trivia-breadcrumb a { color: var(--gold); }
.trivia-breadcrumb span { color: var(--muted); }

.trivia-single-card {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius2);
    overflow: hidden;
    margin-bottom: 2rem;
}

.trivia-single-header {
    padding: 1.5rem;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trivia-single-body { padding: 2rem; }

.trivia-single-question {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--parchment);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border2);
}

.answer-box {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius2) var(--radius2) 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.answer-box h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.answer-text {
    font-size: 1.15rem;
    color: var(--parchment);
    font-weight: 600;
    font-family: var(--font-serif);
}

.funfact-box {
    background: rgba(139,37,0,0.1);
    border: 1px solid rgba(139,37,0,0.3);
    border-radius: var(--radius2);
    padding: 1.5rem;
}

.funfact-box h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--rust2);
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.funfact-box p {
    font-size: 0.95rem;
    color: var(--muted2);
    line-height: 1.65;
}

/* ── STORY SINGLE PAGE ───────────────────── */
.story-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.story-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border2);
}

.story-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--muted);
}

.story-summary {
    font-size: 1.05rem;
    color: var(--muted2);
    line-height: 1.7;
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--gold);
    background: rgba(201,168,76,0.04);
}

.story-content {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--parchment2);
}

.story-content p { margin-bottom: 1.4em; }

.story-content p:first-child::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.7;
    margin-right: 0.1em;
    margin-top: 0.15em;
    color: var(--gold);
    font-family: var(--font-serif);
}

/* ── CATEGORY PAGE ───────────────────────── */
.category-hero {
    padding: 3rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
    border-bottom: 1px solid var(--border2);
}

.category-hero .cat-bg-icon {
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    display: block;
    margin-bottom: 0.5rem;
}

.category-hero h1 { margin-bottom: 0.5rem; }

.category-hero p {
    color: var(--muted2);
    max-width: 600px;
    margin: 0 auto;
}

/* ── SEARCH PAGE ─────────────────────────── */
.search-hero {
    background: var(--bg2);
    border-bottom: 1px solid var(--border2);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.search-form-large {
    display: flex;
    max-width: 600px;
    margin: 1.5rem auto 0;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg3);
}

.search-form-large input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--parchment);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-sans);
}

.search-form-large button {
    background: var(--gold);
    color: var(--ink);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-sans);
}

.search-form-large button:hover { background: var(--gold2); }

.search-results-header {
    font-size: 0.85rem;
    color: var(--muted2);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.search-results-header strong { color: var(--gold2); }

.search-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.no-results h3 {
    color: var(--muted2);
    margin-bottom: 0.5rem;
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius2);
    overflow: hidden;
}

.widget-header {
    background: var(--bg3);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-header h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
}

.widget-body { padding: 1rem; }

.widget-list { list-style: none; }

.widget-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.widget-list li:last-child { border-bottom: none; }

.widget-list a {
    color: var(--parchment2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.widget-list a:hover { color: var(--gold2); }

.widget-count {
    font-size: 0.72rem;
    color: var(--muted);
    background: var(--bg3);
    padding: 0.1em 0.4em;
    border-radius: 2px;
    flex-shrink: 0;
}

.fact-of-day {
    padding: 1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--muted2);
    font-style: italic;
    font-family: var(--font-serif);
}

.fact-of-day strong {
    display: block;
    color: var(--gold2);
    font-style: normal;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-sans);
}

/* ── PAGINATION ──────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--parchment2);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.pagination a:hover {
    background: var(--bg3);
    border-color: var(--gold);
    color: var(--gold2);
}

.pagination span.current {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    font-weight: 700;
}

/* ── FOOTER ──────────────────────────────── */
.site-footer {
    background: var(--bg2);
    border-top: 2px solid var(--gold);
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand .logo-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.footer-brand strong { color: var(--parchment); }

.footer-links h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { font-size: 0.85rem; color: var(--muted2); }
.footer-links a:hover { color: var(--gold2); }

.footer-bottom {
    background: rgba(0,0,0,0.3);
    text-align: center;
    padding: 1rem;
    font-size: 0.78rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* ── DIVIDER ─────────────────────────────── */
.section-divider {
    border: none;
    border-top: 1px solid var(--border2);
    margin: 2.5rem 0;
    position: relative;
}

.section-divider::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    color: var(--gold);
    padding: 0 0.75rem;
    font-size: 0.9rem;
}

/* ── ALERT / NOTICE ─────────────────────── */
.notice {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--parchment2);
    margin-bottom: 1.5rem;
}

/* ── RELATED TRIVIA ──────────────────────── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.related-card {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 1rem;
    display: block;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.related-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.related-card p {
    font-size: 0.85rem;
    color: var(--parchment2);
    line-height: 1.45;
    margin: 0;
    font-family: var(--font-serif);
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
    .page-grid { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .header-inner { padding: 0.6rem 1rem; gap: 0.75rem; }
    .header-search input { width: 130px; }
    .hero { padding: 2.5rem 1rem; }
    .hero-stats { gap: 1.25rem; }
    .categories-section { padding: 2rem 1rem; }
    .container { padding: 1.5rem 1rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .trivia-grid, .stories-grid, .related-grid { grid-template-columns: 1fr; }
    .header-nav { display: none; }
}

/* ── JS TOGGLE ANIMATION ─────────────────── */
.trivia-reveal {
    animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── QUOTE BLOCK ─────────────────────────── */
blockquote {
    border-left: 4px solid var(--gold);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(201,168,76,0.05);
    font-style: italic;
    color: var(--parchment2);
    border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote cite {
    display: block;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* ── BACK BUTTON ─────────────────────────── */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.82rem;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.btn-back:hover { color: var(--gold2); }

/* ── VIEWS COUNTER ───────────────────────── */
.views-badge {
    font-size: 0.72rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}
