/*
Theme Name: Ghosthound
Theme URI: https://ghosthound.com
Author: Ghosthound.com
Author URI: https://ghosthound.com
Description: Dark gothic paranormal investigation theme for Ghosthound.com. Features auto-updating RSS news feed, Eventbrite event calendar, X/Twitter and Instagram social feeds, light/dark mode toggle, and full page templates for articles, stories, video, photos, EVPs, and links.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://ghosthound.com
Text Domain: ghosthound
Tags: paranormal, dark, gothic, custom-menu, featured-images, wide-blocks, full-width-template
*/

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Dark mode (default) */
  --blood: #8B0000;
  --blood-bright: #C41E3A;
  --rust: #5C1010;
  --ash: #0A0A0A;
  --smoke: #141414;
  --coal: #1C1C1C;
  --bone: #E8E0D0;
  --parchment: #C9BDA8;
  --fog: #8A8070;
  --mist: #4A4438;
  --glow: rgba(196,30,58,0.12);
  --bg-primary: #0A0A0A;
  --bg-secondary: #141414;
  --bg-card: #1C1C1C;
  --text-primary: #E8E0D0;
  --text-secondary: #C9BDA8;
  --text-muted: #8A8070;
  --border-color: #2A2420;
  --border-accent: #5C1010;
  --card-shadow: 0 4px 30px rgba(0,0,0,0.5);
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
}

[data-theme="light"] {
  --ash: #F5F0E8;
  --smoke: #EDE7DA;
  --coal: #E0D8CC;
  --bone: #1A1410;
  --parchment: #3A2E24;
  --fog: #6A5E54;
  --mist: #C0B8AC;
  --rust: #C4A882;
  --bg-primary: #F5F0E8;
  --bg-secondary: #EDE7DA;
  --bg-card: #E8E0D0;
  --text-primary: #1A1410;
  --text-secondary: #3A2E24;
  --text-muted: #6A5E54;
  --border-color: #C8C0B0;
  --border-accent: #8B0000;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.1);
  --glow: rgba(139,0,0,0.06);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

[data-theme="light"] body::before { opacity: 0.15; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blood-bright); transition: color 0.2s; }
a:hover { color: var(--blood-bright); opacity: 0.8; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* === UTILITY CLASSES === */
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === HEADER === */
#site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-accent);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 40px rgba(139,0,0,0.25);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  gap: 1rem;
}

.site-branding { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }

.brand-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 44px; height: 44px; display: block; }

.brand-text { line-height: 1.1; }
.site-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.12em; color: var(--text-primary); text-transform: uppercase; display: block; }
.site-tagline { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-top: 2px; }

/* === PRIMARY NAV === */
#primary-nav { display: flex; align-items: center; }
#primary-nav ul { display: flex; list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border-color); }
#primary-nav ul li { border-right: 1px solid var(--border-color); }
#primary-nav ul li a {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  display: block;
  transition: color 0.2s;
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a { color: var(--blood-bright); }

/* === HEADER ACTIONS === */
.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.social-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  background: none;
}
.social-btn:hover { color: var(--blood-bright); border-color: var(--blood); }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 24px;
  background: var(--mist);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--blood-bright);
  border-radius: 50%;
  transition: transform 0.3s;
}
[data-theme="light"] .theme-toggle { background: var(--blood); }
[data-theme="light"] .theme-toggle::after { transform: translateX(20px); background: var(--ash); }

.theme-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px; height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center; justify-content: center;
}

/* === HERO === */
.site-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 50% 85%, rgba(139,0,0,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 110%, rgba(92,16,16,0.35) 0%, transparent 60%);
}

[data-theme="light"] .hero-bg {
  background: radial-gradient(ellipse 55% 55% at 50% 85%, rgba(139,0,0,0.08) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 2.5rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--blood-bright);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; height: 1px; width: 36px; background: var(--blood-bright); opacity: 0.55; }

.hero-title { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: 0.05em; color: var(--text-primary); text-transform: uppercase; line-height: 0.95; margin-bottom: 1.25rem; }
.hero-title span { color: var(--blood-bright); }
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); max-width: 500px; font-style: italic; margin-bottom: 1.5rem; font-weight: 300; }

.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--blood-bright); line-height: 1; }
.hero-stat-label { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.25rem; }

/* === NEWS TICKER === */
.ticker-wrap { background: var(--blood); overflow: hidden; border-bottom: 1px solid var(--rust); padding: 0.45rem 0; }
.ticker-inner { display: flex; gap: 2.5rem; animation: ticker 50s linear infinite; white-space: nowrap; }
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(232,224,208,0.9); display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.ticker-item::before { content: '◆'; color: rgba(232,224,208,0.4); font-size: 0.45rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* === SECTION LABELS === */
.section-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blood-bright);
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.25rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-accent), transparent); }

/* === MAIN LAYOUT === */
.main-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

/* === NEWS CARDS === */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--blood);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
  text-decoration: none; color: inherit;
}
.news-card:hover { border-color: var(--blood-bright); box-shadow: 0 0 25px rgba(139,0,0,0.15); }
.news-card.featured { grid-column: 1 / -1; flex-direction: row; gap: 1.5rem; align-items: flex-start; border-top-width: 3px; }
.news-card.featured .card-img { width: 220px; flex-shrink: 0; height: 150px; }

.card-img { width: 100%; height: 130px; background: var(--bg-secondary); overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; filter: grayscale(15%); transition: opacity 0.3s, transform 0.3s; }
.news-card:hover .card-img img { opacity: 1; transform: scale(1.03); }
.card-img-placeholder { width: 100%; height: 100%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--blood); opacity: 0.45; }

.card-source { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blood-bright); }
.card-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; letter-spacing: 0.02em; }
.card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; font-weight: 300; flex: 1; }
.card-meta { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: auto; padding-top: 0.65rem; border-top: 1px solid var(--border-color); }

/* === SKELETON LOADERS === */
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--border-color) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; position: sticky; top: 80px; }

.sidebar-card { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 3px solid var(--blood); padding: 1.25rem; transition: background 0.3s; }

/* === EVENTS === */
.events-list { display: flex; flex-direction: column; }
.event-item { display: flex; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border-color); align-items: flex-start; text-decoration: none; color: inherit; }
.event-item:last-child { border-bottom: none; }
.event-item:hover .event-title { color: var(--blood-bright); }

.event-date { text-align: center; min-width: 44px; flex-shrink: 0; }
.event-month { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blood-bright); display: block; }
.event-day { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-primary); line-height: 1; display: block; }
.event-info { flex: 1; }
.event-title { font-family: var(--font-display); font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 0.04em; margin-bottom: 0.2rem; transition: color 0.2s; }
.event-loc { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.08em; }
.event-tag { font-family: var(--font-mono); font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 5px; border: 1px solid var(--border-accent); color: var(--blood-bright); display: inline-block; margin-top: 0.2rem; }

/* === SOCIAL EMBEDS === */
.embed-tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 1rem; }
.embed-tab { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.45rem 0.9rem; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; transition: color 0.2s; background: none; border-top: none; border-left: none; border-right: none; }
.embed-tab.active { color: var(--blood-bright); border-bottom-color: var(--blood-bright); }
.embed-panel { display: none; }
.embed-panel.active { display: block; }

.twitter-wrap { background: var(--bg-secondary); border: 1px solid var(--border-color); max-height: 400px; overflow-y: auto; }
.instagram-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.ig-thumb { aspect-ratio: 1; background: var(--bg-secondary); overflow: hidden; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; }
.ig-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(25%); transition: filter 0.2s, transform 0.3s; }
.ig-thumb:hover img { filter: grayscale(0); transform: scale(1.05); }
.ig-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; font-size: 1.2rem; color: #fff; }
.ig-thumb:hover .ig-overlay { opacity: 1; }

/* === POPULAR POSTS === */
.popular-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border-color); cursor: pointer; }
.popular-item:last-child { border-bottom: none; }
.popular-num { font-family: var(--font-display); font-size: 1.4rem; color: var(--blood); opacity: 0.55; min-width: 28px; line-height: 1; }
.popular-title { font-family: var(--font-display); font-size: 0.72rem; color: var(--text-secondary); letter-spacing: 0.04em; line-height: 1.4; transition: color 0.2s; }
.popular-item:hover .popular-title { color: var(--blood-bright); }

/* === NEWSLETTER === */
.newsletter-form { display: flex; gap: 0; margin-top: 0.9rem; }
.newsletter-form input { flex: 1; background: var(--bg-secondary); border: 1px solid var(--border-color); border-right: none; color: var(--text-primary); font-family: var(--font-mono); font-size: 0.7rem; padding: 0.55rem 0.7rem; outline: none; letter-spacing: 0.05em; transition: border-color 0.2s; }
.newsletter-form input:focus { border-color: var(--blood); }
.newsletter-form button { background: var(--blood); border: 1px solid var(--blood); color: var(--bone); font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.55rem 0.9rem; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.newsletter-form button:hover { background: var(--blood-bright); border-color: var(--blood-bright); }

/* === LIVE INDICATOR === */
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--blood-bright); border-radius: 50%; animation: pulse-dot 2s infinite; vertical-align: middle; margin-right: 5px; }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }

/* === DIVIDER === */
.divider { display: flex; align-items: center; gap: 1rem; margin: 2rem 0; color: var(--text-muted); font-size: 0.65rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

/* === RRS STATUS BAR === */
.rss-status { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--text-muted); margin-top: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.refresh-btn { background: none; border: 1px solid var(--border-color); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; cursor: pointer; transition: all 0.2s; }
.refresh-btn:hover { border-color: var(--blood-bright); color: var(--blood-bright); }

/* === PAGE HEADER (sub-pages) === */
.page-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-accent);
  padding: 2.5rem 2rem 2rem;
}
.page-header-inner { max-width: 1300px; margin: 0 auto; }
.page-header-eyebrow { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blood-bright); margin-bottom: 0.5rem; }
.page-header-title { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.8rem); color: var(--text-primary); text-transform: uppercase; }
.page-header-desc { font-size: 1rem; color: var(--text-secondary); font-style: italic; font-weight: 300; margin-top: 0.5rem; max-width: 580px; }

/* === CONTENT GRID (archive pages) === */
.content-wrapper { max-width: 1300px; margin: 0 auto; padding: 2.5rem 2rem; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

/* === SINGLE POST === */
.single-wrapper { max-width: 1300px; margin: 0 auto; padding: 2.5rem 2rem; display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.single-content { min-width: 0; }
.single-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.75rem; }

.post-meta { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.post-meta span { display: flex; align-items: center; gap: 0.4rem; }

.post-body { font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); }
.post-body h2 { font-size: 1.4rem; color: var(--text-primary); margin: 2rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.post-body h3 { font-size: 1.15rem; color: var(--text-primary); margin: 1.5rem 0 0.5rem; }
.post-body p { margin-bottom: 1.25rem; }
.post-body blockquote { border-left: 3px solid var(--blood); padding: 1rem 1.25rem; margin: 1.5rem 0; font-style: italic; color: var(--text-secondary); background: var(--bg-secondary); }
.post-body img { border: 1px solid var(--border-color); margin: 1.5rem 0; }
.post-body a { color: var(--blood-bright); }

/* === MEDIA GRIDS === */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.video-card { background: var(--bg-card); border: 1px solid var(--border-color); border-top: 2px solid var(--blood); overflow: hidden; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-info { padding: 1rem; }
.video-title { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-primary); letter-spacing: 0.03em; margin-bottom: 0.35rem; }
.video-meta { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.1em; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.photo-item { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-secondary); cursor: pointer; position: relative; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter 0.3s, transform 0.4s; }
.photo-item:hover img { filter: grayscale(0); transform: scale(1.08); }
.photo-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,0.7)); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 0.75rem; }
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-caption { font-family: var(--font-mono); font-size: 0.6rem; color: rgba(232,224,208,0.9); letter-spacing: 0.08em; text-transform: uppercase; }

/* === EVP PLAYER === */
.evp-grid { display: flex; flex-direction: column; gap: 1rem; }
.evp-card { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 3px solid var(--blood); padding: 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.evp-icon { width: 44px; height: 44px; border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--blood-bright); flex-shrink: 0; }
.evp-info { flex: 1; min-width: 0; }
.evp-title { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-primary); letter-spacing: 0.04em; margin-bottom: 0.3rem; }
.evp-meta { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.1em; }
.evp-card audio { width: 100%; max-width: 220px; height: 32px; accent-color: var(--blood-bright); }

/* === LINKS PAGE === */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.link-card { background: var(--bg-card); border: 1px solid var(--border-color); border-top: 2px solid var(--blood); padding: 1.25rem; text-decoration: none; color: inherit; display: block; transition: border-color 0.2s, box-shadow 0.2s; }
.link-card:hover { border-color: var(--blood-bright); box-shadow: 0 0 20px rgba(139,0,0,0.12); }
.link-card-title { font-family: var(--font-display); font-size: 0.9rem; color: var(--text-primary); letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.link-card-desc { font-size: 0.85rem; color: var(--text-secondary); font-weight: 300; line-height: 1.5; }
.link-card-url { font-family: var(--font-mono); font-size: 0.55rem; color: var(--blood-bright); letter-spacing: 0.08em; margin-top: 0.75rem; display: block; }
.link-cat-header { font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blood-bright); padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-accent); margin: 2rem 0 1rem; }

/* === STORIES === */
.story-card { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 3px solid var(--blood); padding: 1.5rem; text-decoration: none; color: inherit; display: block; transition: all 0.2s; }
.story-card:hover { box-shadow: 0 0 20px rgba(139,0,0,0.1); border-left-color: var(--blood-bright); }
.story-eyebrow { font-family: var(--font-mono); font-size: 0.55rem; color: var(--blood-bright); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.5rem; }
.story-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.story-excerpt { font-size: 0.95rem; color: var(--text-secondary); font-style: italic; font-weight: 300; line-height: 1.6; }
.story-meta { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 0.9rem; padding-top: 0.65rem; border-top: 1px solid var(--border-color); }

/* === PAGINATION === */
.pagination { display: flex; gap: 0.5rem; align-items: center; margin-top: 2rem; }
.page-btn { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); font-family: var(--font-display); font-size: 0.7rem; padding: 0.4rem 0.8rem; cursor: pointer; text-decoration: none; transition: all 0.2s; letter-spacing: 0.05em; }
.page-btn:hover, .page-btn.active { background: var(--blood); border-color: var(--blood); color: var(--bone); }

/* === FOOTER === */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-accent);
  margin-top: 4rem;
  padding: 3rem 2rem 1.5rem;
  transition: background 0.3s;
}
.footer-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.footer-brand-name { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 0.65rem; }
.footer-brand-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; font-weight: 300; }
.footer-col-title { font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blood-bright); margin-bottom: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.45rem; list-style: none; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; letter-spacing: 0.03em; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-bottom { max-width: 1300px; margin: 1.25rem auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-copy { font-family: var(--font-mono); font-size: 0.55rem; color: var(--border-accent); letter-spacing: 0.1em; text-transform: uppercase; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr 300px; gap: 1.75rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-grid, .single-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .single-sidebar { position: static; }
  .news-card.featured { flex-direction: column; }
  .news-card.featured .card-img { width: 100%; height: 200px; }
  #primary-nav { display: none; }
  #primary-nav.open { display: flex; position: fixed; inset: 0; top: 70px; background: var(--bg-secondary); flex-direction: column; z-index: 190; padding: 2rem; }
  #primary-nav.open ul { flex-direction: column; border-left: 3px solid var(--blood); }
  #primary-nav.open ul li { border-right: none; border-bottom: 1px solid var(--border-color); }
  #primary-nav.open ul li a { font-size: 0.9rem; padding: 0.75rem 1.25rem; }
  .mobile-menu-btn { display: flex; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0.65rem 1rem; }
  .main-grid, .content-wrapper, .single-wrapper { padding: 1.5rem 1rem; }
  .hero-content { padding: 2rem 1rem 1.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .theme-toggle-label { display: none; }
}
