/* ============================================================
   WWII Trivia - Main Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f5f0e8;
    --bg-dark: #2c2418;
    --bg-card: #fffdf7;
    --text: #2a1f14;
    --text-muted: #6b5d4e;
    --text-light: #9a8c7e;
    --accent: #8b4513;
    --accent-light: #c69a5b;
    --accent-dark: #5a2d0e;
    --gold: #d4a847;
    --deep-cut: #c0392b;
    --border: #e0d5c5;

    --nav-bg: #2c2418;
    --nav-text: #e8dcc8;
    --nav-active: #c69a5b;

    --hero-bg: linear-gradient(135deg, #2c2418 0%, #4a3728 50%, #2c2418 100%);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;

    --radius: 6px;
    --shadow: 0 2px 8px rgba(44, 36, 24, 0.08);
    --shadow-lg: 0 4px 20px rgba(44, 36, 24, 0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

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

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

.mt-2 { margin-top: 1rem; }

/* --- Navbar --- */
.navbar {
    background: var(--nav-bg);
    border-bottom: 2px solid var(--accent-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nav-text);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}
.logo:hover { color: var(--gold); }
.logo-icon { color: var(--gold); font-size: 1.2rem; }
.logo-sub { color: var(--accent-light); font-weight: 400; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--nav-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}
.nav-link:hover {
    background: rgba(198, 154, 91, 0.15);
    color: var(--gold);
}
.nav-link.active {
    background: rgba(198, 154, 91, 0.2);
    color: var(--nav-active);
}

.random-link {
    color: var(--gold) !important;
}

.search-toggle {
    background: rgba(198, 154, 91, 0.15);
    border: 1px solid var(--accent-light);
    color: var(--nav-text);
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    cursor: pointer;
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 36, 24, 0.95);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}
.search-overlay.active { display: flex; }

.search-inner {
    position: relative;
    width: 100%;
    max-width: 700px;
}

.search-form-full { display: flex; gap: 0.5rem; }

.search-form-full input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--accent-light);
    border-radius: var(--radius);
    background: var(--bg);
    font-family: var(--font-body);
}

.search-form-full button {
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 2rem;
    cursor: pointer;
}

.live-search {
    margin-top: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    max-height: 50vh;
    overflow-y: auto;
    display: none;
}
.live-search.active { display: block; }

/* --- Hero Section --- */
.hero-section {
    background: var(--hero-bg);
    color: var(--nav-text);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-dark);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-section h1 em { color: var(--gold); font-style: italic; }

.hero-subtitle {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--accent-light);
    line-height: 1.7;
}

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

.stat-chip {
    background: rgba(198, 154, 91, 0.15);
    border: 1px solid rgba(198, 154, 91, 0.3);
    color: var(--accent-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.stat-chip:hover {
    background: rgba(198, 154, 91, 0.3);
    color: var(--gold);
}
.stat-count {
    background: var(--accent);
    color: white;
    border-radius: 10px;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--nav-text);
    border-color: var(--accent-light);
}
.btn-secondary:hover {
    background: rgba(198, 154, 91, 0.15);
    color: var(--gold);
}

.btn-outline {
    background: transparent;
    color: var(--accent-light);
    border-color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* --- Sections --- */
.section { padding: 3rem 1.5rem; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.accent { color: var(--accent); font-style: italic; }

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2rem;
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.trivia-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.trivia-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.trivia-card.deep-cut {
    border-left: 3px solid var(--deep-cut);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-category.normandy { background: #2980b9; }
.card-category.heroes { background: #c0392b; }
.card-category.strange { background: #8e44ad; }
.card-category.resistance { background: #27ae60; }
.card-category.pacific { background: #2c3e50; }
.card-category.women { background: #e67e22; }
.card-category.intelligence { background: #7f8c8d; }
.card-category.unusual { background: #16a085; }
.card-category.holocaust { background: #8b0000; }
.card-category.eastern-front { background: #5d4e37; }
.card-category.odd-stories { background: #6c3483; }
.card-category.asian-theater { background: #1c6f4f; }

.difficulty-badge {
    background: var(--deep-cut);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

.card-location { }
.card-year {
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Story Grid --- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.story-card:hover {
    box-shadow: var(--shadow-lg);
}

.story-type {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: var(--accent);
    color: white;
}
.story-type.courage { background: #c0392b; }
.story-type.rescue { background: #27ae60; }
.story-type.intelligence { background: #7f8c8d; }
.story-type.medical { background: #2980b9; }
.story-type.heartfelt { background: #8e44ad; }
.story-type.cultural { background: #d35400; }
.story-type.animal-hero { background: #16a085; }

.story-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.story-card h3 a { color: var(--text); }
.story-card h3 a:hover { color: var(--accent); }
.story-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.story-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- Blockquote --- */
.section-quote {
    background: var(--bg-dark);
    color: var(--nav-text);
    text-align: center;
}

.quote-container blockquote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
.quote-container blockquote cite {
    display: block;
    font-size: 0.9rem;
    font-style: normal;
    margin-top: 1rem;
    color: var(--accent-light);
}

/* --- Daily Section --- */
.section-daily { text-align: center; }
.daily-container h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* --- Page Header --- */
.page-header {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.page-header h1 em { color: var(--gold); font-style: italic; }
.page-subtitle { color: var(--accent-light); font-size: 1.05rem; }

.page-header-stories {
    background: linear-gradient(135deg, #1a100a 0%, #3a2a1a 100%);
}
.page-header-images {
    background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 100%);
}
.page-header-daily {
    background: linear-gradient(135deg, #2c1810 0%, #4a2a1a 100%);
}

/* --- Content Layout --- */
.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Sidebar --- */
.sidebar {
    align-self: flex-start;
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--accent-dark);
}

.filter-list { list-style: none; }
.filter-list li { margin-bottom: 0.25rem; }
.filter-list a {
    display: block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.15s;
}
.filter-list a:hover {
    background: rgba(139, 69, 19, 0.08);
    color: var(--accent);
}
.filter-list a.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

/* --- Trivia List --- */
.trivia-list { display: flex; flex-direction: column; gap: 1.5rem; }

.trivia-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.trivia-list-item.deep-cut { border-left: 3px solid var(--deep-cut); }

.item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.item-year {
    font-weight: 600;
    color: var(--text-muted);
}

.trivia-list-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.trivia-list-item h3 a { color: var(--text); }
.trivia-list-item h3 a:hover { color: var(--accent); }

.item-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.meta-loc {}

.read-more {
    font-weight: 600;
    font-size: 0.85rem;
}
.read-more:hover { color: var(--accent); }

/* --- Stories Full List --- */
.stories-full-list { display: flex; flex-direction: column; gap: 1.5rem; }

.story-full-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.story-full-item h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0.75rem 0 0.5rem;
}
.story-full-item h2 a { color: var(--text); }
.story-full-item h2 a:hover { color: var(--accent); }

.story-full-item > p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.story-full-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Image Gallery --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-image {
    height: 200px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-fallback {
    font-size: 3rem;
    opacity: 0.3;
}

.gallery-caption {
    padding: 1rem;
}
.gallery-caption h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.gallery-caption p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.gallery-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    gap: 1rem;
}

/* --- Detail Page --- */
.detail-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.back-link {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.back-link:hover { color: var(--accent); }

.related-count {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 1rem;
}

.detail-content { padding: 2rem 0 3rem; }
.detail-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.detail-deep {
    background: var(--deep-cut);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
}
.detail-year {
    background: var(--border);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.story-type-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--accent);
    color: white;
}
.story-type-badge.courage { background: #c0392b; }
.story-type-badge.rescue { background: #27ae60; }
.story-type-badge.intelligence { background: #7f8c8d; }
.story-type-badge.medical { background: #2980b9; }
.story-type-badge.heartfelt { background: #8e44ad; }
.story-type-badge.cultural { background: #d35400; }
.story-type-badge.animal-hero { background: #16a085; }

.detail-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.detail-location, .detail-people {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.detail-body {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}
.story-body {
    max-width: 750px;
}

.detail-sources {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.detail-sources h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}
.detail-sources p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag {
    display: inline-block;
    background: var(--border);
    color: var(--text-muted);
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    transition: all 0.15s;
}
.tag:hover {
    background: var(--accent);
    color: white;
}

.related-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}
.related-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-card);
}
.page-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.page-link.current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
}
.page-ellipsis {
    padding: 0.5rem;
    color: var(--text-light);
}

/* --- Search Results --- */
.search-section { margin-bottom: 2.5rem; }
.search-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.search-result-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.search-result-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}
.search-result-item h3 a { color: var(--text); }
.search-result-item h3 a:hover { color: var(--accent); }

.result-snippet {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}
.result-snippet mark {
    background: rgba(212, 168, 71, 0.3);
    color: inherit;
    padding: 0 2px;
}

.result-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.search-suggestion { text-align: center; padding: 2rem; }
.search-suggestion h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.search-suggestion p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.inline-search {
    display: inline-flex;
    gap: 0.5rem;
    max-width: 500px;
    width: 100%;
}
.inline-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-card);
    font-family: var(--font-body);
}
.inline-search input:focus {
    border-color: var(--accent);
    outline: none;
}
.inline-search button {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.empty-state h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

/* --- Categories --- */
.category-section { margin-bottom: 2.5rem; }
.category-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    flex-shrink: 0;
}

.cat-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    color: var(--text);
}

.cat-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-dark);
    color: var(--nav-text);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2.5rem 1.5rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-section p {
    color: var(--accent-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
}
.footer-section li { margin-bottom: 0.3rem; }
.footer-section a {
    color: var(--accent-light);
    font-size: 0.9rem;
}
.footer-section a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(198, 154, 91, 0.2);
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 800px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .sidebar-widget {
        min-width: 200px;
        flex-shrink: 0;
    }
    .hero-section h1 { font-size: 2rem; }
    .detail-title { font-size: 1.6rem; }
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }
    .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .container { padding: 0 1rem; }
    .hero-section h1 { font-size: 1.6rem; }
    .page-header h1 { font-size: 1.6rem; }
    .detail-title { font-size: 1.3rem; }
}
