/* ===========================================================
   The Good News Show With Andy — shared styles
   Pop-art / comic-book brand system
=========================================================== */

:root {
  --purple-900: #14102E;
  --purple-700: #3A1D9E;
  --purple-600: #4B2AC9;
  --purple-tint: #6B4FE0;
  --yellow: #F6E14A;
  --pink: #EF2F86;
  --pink-dark: #C41C6B;
  --orange: #FDB515;
  --sky: #4FC3E8;
  --ink: #14102E;
  --page-bg: #F4EFFF;
  --text-body: #3A2E6B;
  --text-muted: #5B4E96;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  margin: 0;
}

p { margin: 0; }

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); }

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

.halftone {
  background-color: var(--purple-700);
  background-image: radial-gradient(circle, rgba(20, 16, 46, 0.4) 1.4px, transparent 1.6px);
  background-size: 16px 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 3px solid var(--ink);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:hover { color: var(--ink); transform: translate(1px, 1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-secondary { background: var(--white); color: var(--ink); box-shadow: 5px 5px 0 var(--pink); }
.btn-secondary:hover { color: var(--ink); transform: translate(1px, 1px); box-shadow: 4px 4px 0 var(--pink); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--purple-700);
  border-bottom: 4px solid var(--ink);
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-title {
  font-family: 'Bangers', cursive;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
}
.brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-top: 2px;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #EFE9FF;
  border: 2.5px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 2.5px solid var(--yellow);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--yellow);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 3.5px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--purple-700);
    border-bottom: 4px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    display: none;
    gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { text-align: left; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); padding: 48px 32px 28px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; max-width: 320px; }
.footer-brand-title { font-family: 'Bangers', cursive; font-size: 18px; color: var(--white); }
.footer-brand-sub { font-size: 13px; color: #B7A9F2; }
.footer-cols { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.footer-col a { color: #EFE9FF; font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex; width: 34px; height: 34px; border-radius: 8px;
  background: var(--purple-700); border: 2px solid var(--yellow);
  align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 2px solid var(--purple-700);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 13px;
  color: #8C7FC7;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 32px 88px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
}
.hero-bubble {
  background: var(--yellow);
  border: 5px solid var(--ink);
  border-radius: 34px 40px 36px 44px / 44px 34px 40px 36px;
  box-shadow: 11px 11px 0 var(--ink);
  padding: 38px 40px 44px;
  transform: rotate(-1.2deg);
  max-width: 560px;
}
.hero-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-dark); }
.hero-title { font-size: 48px; line-height: 1.03; color: var(--ink); margin-top: 10px; }
.hero-tagline { font-size: 16px; line-height: 1.5; color: #2A1F55; margin-top: 14px; font-weight: 600; }
.hero-sticker {
  align-self: flex-start;
  margin: -14px 0 0 36px;
  background: var(--pink);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--orange);
  padding: 9px 22px;
  transform: rotate(-3deg);
  display: inline-block;
}
.hero-sticker span { font-family: 'Bangers', cursive; font-size: 20px; color: var(--white); }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-photo-wrap { position: relative; flex: 0 0 auto; transform: rotate(2.5deg); }
.hero-photo-frame {
  background: var(--white); border: 6px solid var(--ink); border-radius: 18px;
  box-shadow: 12px 12px 0 var(--sky); padding: 10px;
}
.hero-photo-frame img { width: 280px; height: 280px; object-fit: cover; border-radius: 10px; }
.hero-badge {
  position: absolute; bottom: -16px; left: -22px;
  background: var(--orange); border: 4px solid var(--ink); border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink); padding: 8px 16px; transform: rotate(-4deg);
}
.hero-badge span { font-family: 'Bangers', cursive; font-size: 16px; color: var(--ink); }
.hero-sparkle { position: absolute; }

/* ---------- Where to hear it ---------- */
.station-strip {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 20px 32px; background: var(--ink); border-bottom: 4px solid var(--yellow);
}
.station-strip-inner { max-width: 1180px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.station-label { display: flex; align-items: center; gap: 10px; color: var(--yellow); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.station-item { font-size: 14px; color: #EFE9FF; font-weight: 500; }

/* ---------- Section shells ---------- */
.section { padding: 64px 32px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-title { font-size: 30px; color: var(--ink); }
.section-title--light { color: var(--white); text-shadow: 2px 2px 0 var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.section-head a { font-weight: 700; font-size: 14px; }

/* ---------- Comic card (episode / generic sticker card) ---------- */
.comic-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 4px solid var(--ink); border-radius: 16px; padding: 16px;
}
.comic-thumb {
  height: 150px; border-radius: 10px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-tint);
}
.comic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.comic-thumb .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 16, 46, 0.15);
}
.comic-card h3 { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.35; }
.comic-desc { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); font-weight: 500; }
.comic-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; gap: 10px; }
.comic-meta span { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.comic-listen-btn { font-weight: 800; font-size: 13.5px; background: none; border: none; cursor: pointer; color: var(--pink); padding: 0; font-family: inherit; }
.comic-listen-btn:hover { color: var(--pink-dark); }
.comic-audio { width: 100%; margin-top: 4px; }
.audio-slot:not(:empty) { margin-top: 4px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Featured episode ---------- */
.featured {
  display: flex; gap: 44px; align-items: center; flex-wrap: wrap;
}
.featured-art {
  flex: 1 1 340px; max-width: 340px; background: var(--white); border: 6px solid var(--ink); border-radius: 18px;
  box-shadow: 12px 12px 0 var(--pink); padding: 10px; transform: rotate(-1.5deg);
}
.featured-art img { border-radius: 10px; }
.featured-body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 280px; }
.featured-body h2 { font-size: 30px; line-height: 1.15; }

/* ---------- Meet Andy teaser ---------- */
.teaser { display: flex; align-items: center; gap: 44px; padding: 64px 32px; background: var(--white); flex-wrap: wrap; }
.teaser-photo { width: 180px; height: 180px; border-radius: 999px; border: 6px solid var(--ink); box-shadow: 9px 9px 0 var(--orange); overflow: hidden; }
.teaser-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Banner (newsletter / CTA) ---------- */
.banner {
  padding: 48px 40px; border-radius: 22px; border: 5px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.banner-pink { background: var(--pink); box-shadow: 12px 12px 0 var(--sky); }
.banner h2 { font-size: 26px; color: var(--white); }
.banner p { font-size: 15px; color: #FFE3F1; font-weight: 500; }
/* ---------- Page header ---------- */
.page-header { padding: 56px 32px 32px; }
.page-header-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.page-header h1 { font-size: 40px; }
.page-header p { font-size: 16px; line-height: 1.5; font-weight: 500; }

/* ---------- Episode toolbar (search) ---------- */
.episode-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 32px 40px;
}
.episode-toolbar-inner { max-width: 1180px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search-field {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 3px solid var(--ink);
  border-radius: 10px; padding: 11px 20px; flex: 1 1 320px; max-width: 320px;
}
.search-field input {
  border: none; outline: none; font-size: 14px; color: var(--ink); font-family: inherit; width: 100%; background: transparent;
}
.search-field input::placeholder { color: var(--text-muted); }
.episode-count { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.state-msg { text-align: center; padding: 48px 32px; color: var(--text-muted); font-weight: 600; }
.state-msg a { font-weight: 700; }

.load-more-wrap { display: flex; justify-content: center; padding: 8px 32px 64px; }

/* ---------- About page ---------- */
.about-hero { display: flex; align-items: center; gap: 48px; padding: 72px 32px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; }
.about-photo { flex: 0 0 auto; background: var(--white); border: 6px solid var(--ink); border-radius: 20px; box-shadow: 12px 12px 0 var(--sky); padding: 10px; transform: rotate(-1.5deg); }
.about-photo img { width: 260px; height: 260px; object-fit: cover; border-radius: 12px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding: 16px 32px 72px; max-width: 1180px; margin: 0 auto; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.quote-card { background: var(--yellow); border: 5px solid var(--ink); border-radius: 20px; box-shadow: 9px 9px 0 var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 14px; transform: rotate(1deg); }
.quote-card p { font-size: 17px; line-height: 1.6; font-weight: 600; color: var(--ink); }
.story-block { padding: 0 32px 72px; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 32px 32px 56px; max-width: 1180px; margin: 0 auto; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 5px solid var(--ink); border-radius: 20px; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.contact-card--yellow { background: var(--yellow); box-shadow: 10px 10px 0 var(--ink); transform: rotate(-0.8deg); }
.contact-card--white { background: var(--white); box-shadow: 10px 10px 0 var(--sky); transform: rotate(0.6deg); }
.social-row { padding: 8px 32px 48px; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.social-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.social-chip {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 10px 18px 10px 12px; font-weight: 700; font-size: 14px; color: var(--ink);
}
.social-chip .icon-circle { width: 32px; height: 32px; border-radius: 999px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.sponsor-row { padding: 8px 32px 56px; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.sponsor-chips { display: flex; gap: 20px; flex-wrap: wrap; }
.sponsor-chip {
  width: 150px; height: 64px; border-radius: 10px; background: var(--white); border: 2.5px dashed #8C7FC7;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); text-align: center; font-weight: 600;
}
