/*
Theme Name: SoundStoryHub
Theme URI: https://soundstoryhub.com
Author: SoundStoryHub
Author URI: https://soundstoryhub.com
Description: A premium audiobook discovery theme. Curated reviews, narrator spotlights, and listening guides.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soundstoryhub
Tags: audiobooks, reviews, one-column, custom-menu, featured-images
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================
   CSS RESET & VARIABLES
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #14213D;
  --navy-light: #1b2d52;
  --navy-dark: #0d1628;
  --gold: #E9B44C;
  --gold-light: #f0c96f;
  --gold-dark: #d4a03a;
  --cream: #F8F3EA;
  --cream-dark: #efe8db;
  --gray: #D9D9D9;
  --gray-light: #EBEBEB;
  --white: #FFFFFF;
  --text-dark: #1a1a2e;
  --text-body: #3d3d56;
  --text-muted: #6b6b80;
  --font-heading: 'Georgia', 'Times New Roman', 'Palatino Linotype', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(20,33,61,0.06);
  --shadow-md: 0 4px 20px rgba(20,33,61,0.1);
  --shadow-lg: 0 8px 40px rgba(20,33,61,0.14);
  --shadow-gold: 0 4px 24px rgba(233,180,76,0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   ACCESSIBILITY: REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ========================================
   ACCESSIBILITY: SKIP LINK
   ======================================== */
.skip-link {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700; font-size: 0.9rem;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* ========================================
   ACCESSIBILITY: FOCUS STYLES
   ======================================== */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.narrators :focus-visible,
.newsletter :focus-visible,
.site-header :focus-visible {
  outline-color: var(--gold);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover, .btn-navy:focus-visible {
  background: var(--navy-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-label::before {
  content: ''; display: block;
  width: 28px; height: 2px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-icon {
  width: 20px; height: 20px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast-icon svg { width: 12px; height: 12px; }

/* ========================================
   1. HEADER / NAVIGATION
   ======================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(20,33,61,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 700;
  color: var(--white);
  display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a:not(.nav-cta) {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible {
  color: var(--white);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px; font-size: 0.85rem;
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  position: relative;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.4rem; color: var(--white);
  transition: color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible { color: var(--gold); }

/* ========================================
   STICKY BOTTOM CTA BAR
   ======================================== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem; font-weight: 500;
}
.sticky-cta-text strong {
  color: var(--white);
}
.sticky-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.sticky-cta.hide-at-newsletter {
  transform: translateY(100%) !important;
}

@media (max-width: 600px) {
  .sticky-cta-text { display: none; }
}

/* ========================================
   2. HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(233,180,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(233,180,76,0.05) 0%, transparent 50%);
}

.hero::after {
  content: ''; position: absolute; inset: 0;
  opacity: 0.03; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero > .container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  position: relative; z-index: 1;
}

.hero-content {
  max-width: 960px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(233,180,76,0.12);
  border: 1px solid rgba(233,180,76,0.2);
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--gold);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.hero-badge svg { width: 16px; height: 16px; }

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--gold); }

.hero-sub {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 44px;
  line-height: 1.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-buttons .btn { padding: 18px 36px; font-size: 1.05rem; }

/* ---- Hero Visual: "Now Playing" Player ---- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-playing {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(8px);
  position: relative;
}

.np-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.np-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.np-book { display: flex; gap: 20px; margin-bottom: 28px; }

.np-cover {
  width: 110px; height: 160px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.85rem; font-weight: 700;
  text-align: center;
  padding: 12px;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.np-cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: rgba(255,255,255,0.15);
}
.np-cover::after {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 55%, transparent 60%);
  transform: rotate(-15deg);
}

.np-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.np-title {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}
.np-author { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.np-narrator { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.np-narrator strong { color: rgba(255,255,255,0.55); }
.np-rating { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.np-rating-num { color: rgba(255,255,255,0.6); font-weight: 500; }

/* Waveform Visualizer */
.np-waveform { display: flex; align-items: center; gap: 2px; height: 40px; margin-bottom: 16px; }
.np-waveform span { flex: 1; border-radius: 2px; min-width: 2px; transition: height 0.3s ease; }

/* Progress bar */
.np-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.np-time { font-size: 0.72rem; color: rgba(255,255,255,0.35); font-variant-numeric: tabular-nums; flex-shrink: 0; width: 36px; }
.np-time-end { text-align: right; }
.np-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; position: relative; }
.np-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 35%; background: var(--gold); border-radius: 4px; }
.np-bar-dot { position: absolute; top: 50%; left: 35%; transform: translate(-50%, -50%); width: 12px; height: 12px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 8px rgba(233,180,76,0.5); }

/* Player controls */
.np-controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.np-ctrl { background: none; border: none; color: rgba(255,255,255,0.4); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all var(--transition); cursor: default; }
.np-ctrl:hover { color: rgba(255,255,255,0.7); }
.np-ctrl svg { width: 20px; height: 20px; }
.np-ctrl-play { width: 52px; height: 52px; background: var(--gold); color: var(--navy); border-radius: 50%; box-shadow: 0 4px 20px rgba(233,180,76,0.35); }
.np-ctrl-play:hover { background: var(--gold-light); transform: scale(1.05); }
.np-ctrl-play svg { width: 22px; height: 22px; }

/* Mini shelf */
.np-shelf { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 12px; }
.np-shelf-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); white-space: nowrap; }
.np-shelf-books { display: flex; gap: 6px; overflow: hidden; }
.np-shelf-book { width: 36px; height: 52px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.3); position: relative; overflow: hidden; }
.np-shelf-book::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,0.1); }

/* ========================================
   3. FEATURED AUDIOBOOKS
   ======================================== */
.featured { padding: 100px 0; background: var(--white); }
.featured-header { text-align: center; margin-bottom: 56px; }
.featured-header .section-subtitle { margin: 0 auto; }

.audiobook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.audiobook-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
  position: relative;
}
.audiobook-card a { display: block; color: inherit; }
.audiobook-card:hover,
.audiobook-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.audiobook-cover { height: 200px; position: relative; overflow: hidden; }
.audiobook-cover-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.1rem; font-weight: 600;
  text-align: center;
  padding: 20px;
  line-height: 1.3;
}

.audiobook-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem; font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audiobook-body { padding: 24px; }
.audiobook-genre { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-dark); margin-bottom: 8px; }
.audiobook-title-text { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; font-family: var(--font-heading); color: var(--navy); }
.audiobook-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.audiobook-desc { font-size: 0.88rem; color: var(--text-body); line-height: 1.65; margin-bottom: 16px; }

.audiobook-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.audiobook-rating { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.stars { color: var(--gold); letter-spacing: 2px; }

.audiobook-read-btn {
  font-size: 0.8rem; font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: all var(--transition);
  white-space: nowrap;
}
.audiobook-read-btn:hover,
.audiobook-read-btn:focus-visible {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.featured-cta { text-align: center; margin-top: 56px; padding: 40px; background: var(--cream); border-radius: var(--radius-xl); }
.featured-cta p { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy); margin-bottom: 16px; }

/* ========================================
   4. BROWSE BY GENRE / MOOD
   ======================================== */
.genres { padding: 100px 0; background: var(--cream); }
.genres-header { text-align: center; margin-bottom: 48px; }
.genres-header .section-subtitle { margin: 0 auto; }

.genre-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }

.genre-chip {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.92rem; font-weight: 600;
  background: var(--white);
  color: var(--navy);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.genre-chip:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.genre-chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: var(--shadow-md); }

.genre-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  min-height: 80px;
  transition: opacity 0.3s ease;
}
.genre-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }

/* ========================================
   5. NARRATOR SPOTLIGHT
   ======================================== */
.narrators { padding: 100px 0; background: var(--navy); position: relative; overflow: hidden; }
.narrators::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 80% 30%, rgba(233,180,76,0.06) 0%, transparent 60%); }
.narrators-inner { position: relative; z-index: 1; }
.narrators-header { text-align: center; margin-bottom: 56px; }
.narrators-header .section-label { color: var(--gold); }
.narrators-header .section-title { color: var(--white); }
.narrators-header .section-subtitle { color: rgba(255,255,255,0.55); margin: 0 auto; }

.narrator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.narrator-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}
.narrator-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

.narrator-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.narrator-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.narrator-specialty { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 16px; }
.narrator-desc { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 20px; }
.narrator-titles { font-size: 0.78rem; color: rgba(255,255,255,0.35); font-style: italic; }

/* ========================================
   6. REVIEWS / LISTENING GUIDES
   ======================================== */
.guides { padding: 100px 0; background: var(--white); }
.guides-header { text-align: center; margin-bottom: 56px; }
.guides-header .section-subtitle { margin: 0 auto; }

.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.guide-card {
  display: flex;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.guide-card a { display: flex; color: inherit; width: 100%; }
.guide-card:hover,
.guide-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233,180,76,0.2);
}

.guide-accent { width: 6px; flex-shrink: 0; }
.guide-body { padding: 28px 28px 28px 24px; flex: 1; }
.guide-category { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.guide-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.guide-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }

.guide-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
}
.guide-link:hover { color: var(--gold-dark); }
.guide-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.guide-link:hover svg { transform: translateX(4px); }

/* ========================================
   7. WHY SOUNDSTORYHUB
   ======================================== */
.why { padding: 100px 0; background: var(--cream); }
.why-header { text-align: center; margin-bottom: 60px; }
.why-header .section-subtitle { margin: 0 auto; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.why-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.why-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.why-icon svg { width: 26px; height: 26px; fill: var(--navy); }
.why-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.why-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ========================================
   8. NEWSLETTER SIGNUP
   ======================================== */
.newsletter { padding: 100px 0; background: var(--navy); position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(233,180,76,0.06) 0%, transparent 70%); }

.newsletter-inner { position: relative; z-index: 1; text-align: center; max-width: 600px; margin: 0 auto; }
.newsletter .section-label { color: var(--gold); justify-content: center; }
.newsletter .section-title { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; }
.newsletter-sub { color: rgba(255,255,255,0.55); font-size: 1rem; margin-bottom: 36px; line-height: 1.7; }

.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto 16px; }
.newsletter-input {
  flex: 1; padding: 16px 22px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--white); font-size: 0.95rem;
  font-family: var(--font-body); outline: none;
  transition: border-color var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { border-color: var(--gold); }

.newsletter-success {
  display: none; padding: 16px 24px;
  background: rgba(45,106,90,0.2);
  border: 1px solid rgba(45,106,90,0.3);
  border-radius: var(--radius-md);
  color: #7ee0c0; font-weight: 600; font-size: 0.95rem;
  max-width: 480px; margin: 0 auto 16px;
}
.newsletter-success.show { display: block; }
.newsletter-error {
  display: none; padding: 16px 24px;
  background: rgba(180,60,60,0.15);
  border: 1px solid rgba(180,60,60,0.25);
  border-radius: var(--radius-md);
  color: #f08080; font-weight: 600; font-size: 0.95rem;
  max-width: 480px; margin: 0 auto 16px;
}
.newsletter-note { font-size: 0.8rem; color: rgba(255,255,255,0.65); }

/* ========================================
   9. FOOTER
   ======================================== */
.site-footer { background: var(--navy-dark); padding: 64px 0 0; color: rgba(255,255,255,0.5); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand-desc { font-size: 0.88rem; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-heading { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 20px; text-align: center; }

.footer-links a,
.footer-links button {
  display: block;
  width: 100%;
  font-size: 0.88rem;
  margin-bottom: 12px;
  transition: color var(--transition);
  background: none; border: none;
  color: inherit; cursor: pointer;
  font-family: inherit; padding: 0;
  text-align: center;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--gold); }

.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a,
.footer-socials button,
.footer-socials span {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  border: none; color: inherit;
}
.footer-socials a,
.footer-socials button { cursor: pointer; }
.footer-socials a:hover,
.footer-socials button:hover { background: var(--gold); color: var(--navy); }
.footer-socials span { cursor: default; opacity: 0.5; }
.footer-socials span:hover { opacity: 0.7; }
.footer-socials svg { width: 18px; height: 18px; }

.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.82rem; }

/* ========================================
   SINGLE POST TEMPLATES
   ======================================== */
.single-hero {
  padding: 120px 0 60px;
  background: var(--navy);
}
.single-hero .container { max-width: 800px; }
.single-hero .section-label { color: var(--gold); }
.single-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.single-hero .audiobook-meta,
.single-hero .guide-meta-line { color: rgba(255,255,255,0.5); font-size: 0.95rem; }

.single-content {
  padding: 60px 0 100px;
  background: var(--white);
}
.single-content .container { max-width: 720px; }
.single-content h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.single-content h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.single-content p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }
.single-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
}

.audiobook-detail-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  margin: 32px 0;
}
.detail-item-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 2px;
}
.detail-item-value { font-weight: 600; color: var(--navy); }

.single-cta {
  text-align: center;
  padding: 40px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  margin-top: 48px;
}
.single-cta p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 1024px) {
  .audiobook-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
  .hero-sub { font-size: 1.1rem; }
  .hero-buttons .btn { padding: 14px 28px; font-size: 0.95rem; }

  .audiobook-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .narrator-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .guides-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand-desc { margin: 16px auto 0; }
  .footer-socials { justify-content: center; }
  .footer-links a,
  .footer-links button { text-align: center; }

  .newsletter-form { flex-direction: column; }

  .audiobook-detail-box { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; }
  .btn { padding: 12px 22px; font-size: 0.88rem; }
  .section-title { font-size: 1.6rem; }
}

/* ========================================
   WORDPRESS CORE OVERRIDES
   Prevents wp-block-library and global-styles
   from breaking theme layout/centering.
   ======================================== */
.wp-site-blocks > * + * { margin-block-start: 0; }
body .is-layout-flow > * { margin-block-start: 0; margin-block-end: 0; }
body .is-layout-constrained > * { margin-block-start: 0; margin-block-end: 0; }
.hero, .hero * { text-align: center; }
.hero .hero-content { margin-left: auto !important; margin-right: auto !important; }
.hero .hero-sub { margin-left: auto !important; margin-right: auto !important; }
