/*
Theme Name: Telephone Gags
Theme URI: https://telephonegags.com
Author: Telephone Gags
Author URI: https://telephonegags.com
Description: Custom one-page theme for the Telephone Gags podcast — Apple Podcasts embed, latest-episode players, X link, and meme coin section. Links are editable under Appearance > Customize > Telephone Gags Links.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telephone-gags
*/

/* WordPress admin bar offset for the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}


:root {
  --bg: #12100e;
  --bg-alt: #1b1815;
  --card: #221e19;
  --card-border: #3a322a;
  --orange: #ff6b1a;
  --orange-dark: #e0500a;
  --yellow: #ffc93c;
  --cream: #fdf3e2;
  --muted: #b9ada0;
  --coin: #7cf29c;
  --twitter: #1d9bf0;
  --radius: 16px;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #2a2018 0%, var(--bg) 55%);
  color: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.headline-font {
  font-family: "Bangers", "Inter", sans-serif;
  letter-spacing: .5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,107,26,.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(255,107,26,.5); }

.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-coin {
  background: linear-gradient(135deg, var(--coin), #3fb96a);
  color: #0c1f12;
  box-shadow: 0 8px 20px rgba(124,242,156,.25);
}

.btn-twitter {
  background: #000;
  border-color: #2a2a2a;
  color: #fff;
}
.btn-twitter:hover { border-color: var(--twitter); color: var(--twitter); }

.btn-small { padding: 9px 18px; font-size: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18,16,14,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
}
.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid var(--card-border);
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a { color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--yellow); }
.nav-cta { display: flex; gap: 12px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
}
.hero-art {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--orange);
  box-shadow: var(--shadow);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 16px;
  color: var(--yellow);
  line-height: 1.05;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 24px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
}
.hero-meta strong { color: var(--cream); }

/* ---------- Section shells ---------- */
section { padding: 64px 0; }
.section-head { margin-bottom: 36px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 8px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 12px;
  color: var(--yellow);
}
.section-head p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  border: none;
  margin: 0;
}

/* ---------- Apple embed ---------- */
.embed-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  background: var(--card);
}
.embed-card iframe {
  width: 100%;
  height: 175px;
  border: none;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
}
@media (min-width: 640px) {
  .embed-card iframe { height: 450px; }
}

/* ---------- Episodes grid ---------- */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.episode-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.episode-card:hover { border-color: var(--orange); transform: translateY(-3px); }

.episode-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.episode-art {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--card-border);
}
.episode-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  margin: 0 0 6px;
}
.episode-meta {
  font-size: .8rem;
  color: var(--muted);
}
.episode-desc {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
}
.episode-card audio {
  width: 100%;
  height: 38px;
  filter: invert(92%) sepia(4%) saturate(400%) hue-rotate(345deg);
  border-radius: 8px;
}
.episode-card .ep-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
  align-self: flex-start;
}
.episode-card .ep-link:hover { color: var(--yellow); }

.episodes-more {
  text-align: center;
  margin-top: 36px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}
.about-grid p { color: var(--muted); font-size: 1.02rem; }
.stat-row {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat { }
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  display: block;
}
.stat .label {
  font-size: .82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.about-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-card h3 { margin-top: 0; color: var(--yellow); }
.about-card ul { padding-left: 20px; color: var(--muted); margin: 0; }
.about-card li { margin-bottom: 10px; }

/* ---------- Follow / subscribe strip ---------- */
.follow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.follow-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.follow-card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.follow-card h3 { margin: 0 0 8px; color: var(--cream); }
.follow-card p { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }

/* ---------- Meme coin ---------- */
.coin-section {
  background: linear-gradient(135deg, #0f2417, #16321f 60%, #0f2417);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.coin-card {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(124,242,156,.35);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.coin-card .coin-badge {
  display: inline-block;
  background: rgba(124,242,156,.15);
  color: var(--coin);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.coin-card h2 {
  color: var(--coin);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
}
.coin-card p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }
.coin-disclaimer {
  margin-top: 22px;
  font-size: .74rem;
  color: #7a8d7f;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--card-border);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand img {
  width: 32px; height: 32px; border-radius: 8px; object-fit: cover;
}
.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: .88rem;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--yellow); }
.footer-copy {
  margin-top: 24px;
  color: #5c5348;
  font-size: .78rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { max-width: 220px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--card-border);
  }
  .nav.open .nav-links,
  .nav.open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .nav.open .nav-cta .btn { width: 100%; justify-content: center; }
  .coin-card { padding: 32px 22px; }
}
