/* ===== PodCouple — estilos globais ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg: #0d0b0a;
  --bg-elevated: #171310;
  --surface: #1e1815;
  --border: #33291f;
  --burgundy: #8c1f28;
  --burgundy-light: #b8323d;
  --gold: #c9a24a;
  --gold-light: #e3c67a;
  --cream: #f2e8d5;
  --muted: #b3a596;
  --radius: 14px;
  --max-width: 1100px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--gold-light);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; color: var(--cream); }

p { color: var(--muted); }

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  background: var(--gold);
  color: #171310;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 11, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
}

.brand img {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.brand strong { color: var(--gold-light); }

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--cream);
  border-bottom-color: var(--burgundy-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 1.4rem;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 780px) {
  nav.main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: calc(100vh - 68px);
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 30;
  }
  nav.main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  nav.main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover { background: var(--gold); color: #171310; transform: translateY(-1px); }

.btn.primary {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

.btn.primary:hover { background: var(--burgundy-light); color: #fff; }

/* ---- Brand buttons (Spotify / Apple Podcasts) ---- */

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.85rem;
  color: #fff;
  border: none;
  transition: filter 0.2s, transform 0.15s;
}

.btn-brand:hover { filter: brightness(1.12); color: #fff; transform: translateY(-1px); }

.btn-brand img { width: 16px; height: 16px; flex-shrink: 0; }

.btn-spotify { background: #1DB954; }
.btn-apple { background: linear-gradient(135deg, #F452FF 0%, #832BC1 100%); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---- Hero ---- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(140, 31, 40, 0.22), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero img.hero-logo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.hero p.tagline {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.hero .btn-row { justify-content: center; }

/* ---- Sections ---- */

section { padding: 64px 0; }
section.alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* ---- Featured episode callout ---- */

.featured-episode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.featured-episode-text { flex: 1; min-width: 240px; }

.featured-episode-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.featured-episode h2 { margin-bottom: 8px; }
.featured-episode p { margin: 0; }

/* ---- Cards ---- */

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card-title h3 { margin-bottom: 0; }

.card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin-bottom: 8px; }

/* ---- Episode cards ---- */

.ep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-card .ep-number {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ep-card h3 { margin-bottom: 2px; }

.ep-card .ep-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.ep-card p.ep-desc {
  font-size: 0.92rem;
  margin: 4px 0 8px;
}

.ep-links { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 8px; }
.ep-links-top { display: flex; gap: 14px; flex-wrap: wrap; }
.ep-links-top a { font-size: 0.88rem; }

.ep-links-brands { display: flex; gap: 8px; flex-wrap: nowrap; }
.ep-links-brands .btn-brand {
  flex: 1 1 0;
  justify-content: center;
  padding: 8px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ep-search,
#glossary-search {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 36px;
  display: block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

#ep-search:focus,
#glossary-search:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

#ep-count,
#glossary-count { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

/* ---- Referências a episódios ---- */

.ep-refs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -0.6em 0 1.4em;
}

.ep-refs a { color: var(--gold-light); }

.glossary dd .ep-refs {
  margin: 4px 0 0;
  font-size: 0.8rem;
}

/* ---- Embed players ---- */

.players-heading {
  text-align: center;
  margin-bottom: 20px;
}

.players {
  max-width: 480px;
  margin: 0 auto 48px;
}

.players iframe {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---- Platform links ---- */

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.platform-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  font-size: 0.95rem;
}

.platform-list a:hover { border-color: var(--gold); color: var(--gold-light); }

.brand-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- Glossary ---- */

.glossary-section { margin-bottom: 44px; padding: 0; }
.glossary-section:last-child { margin-bottom: 0; }

.glossary-section h2 {
  display: inline-block;
  font-size: 1.4rem;
  padding-bottom: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gold);
}

.glossary dl {
  display: grid;
  gap: 22px;
}

.glossary dt {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.1rem;
}

.glossary dd {
  margin: 4px 0 0;
  color: var(--muted);
}

/* ---- Article / long-form text pages ---- */

.article h2 { margin-top: 1.6em; }
.article h3 { color: var(--gold-light); margin-top: 1.3em; }
.article ul, .article ol { color: var(--muted); padding-left: 1.3em; }
.article li { margin-bottom: 0.4em; }
.article blockquote {
  border-left: 3px solid var(--burgundy);
  margin: 1.5em 0;
  padding: 0.4em 1.2em;
  color: var(--cream);
  font-style: italic;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 24px 0;
}

/* ---- Footer ---- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site-footer .platform-list { margin-bottom: 20px; }

footer.site-footer .disclaimer {
  max-width: 640px;
  margin: 0 auto 16px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---- Age gate ---- */

#age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 5, 4, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#age-gate.hidden { display: none; }

#age-gate .gate-box {
  max-width: 440px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}

#age-gate img { width: 84px; margin: 0 auto 18px; border-radius: 14px; }

#age-gate .gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ---- Contact page ---- */

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
