/* Aloha Today — daily Hawaii podcast page (/podcast).
 * Scoped under .atp- to avoid collisions with site CSS.
 * Uses px font sizing per CLAUDE.md.
 *
 * Form-control reset is required because /podcast has an <input type="email">
 * and the global rules in 04-08-25-v1.css would otherwise override anything
 * we set here at lower specificity. Pattern matches stays-browser.html.
 */

/* ─── Form control reset (component scope) ──────────────── */
.atp-email-form input[type='email'],
.atp-email-form input[type='text'],
.atp-email-form button {
  height: auto;
  margin: 0;
  background: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  line-height: 1.4;
  box-shadow: none;
  width: auto;
}

/* ─── HERO ──────────────────────────────────────────────── */
.atp-hero {
  position: relative;
  background: linear-gradient(135deg, #0b3d2e 0%, #1d4d70 60%, #2a6f97 100%);
  color: #fff;
  border-radius: 24px;
  padding: 48px 32px 36px;
  margin: 24px 0 18px;
  overflow: hidden;
}
.atp-hero-back {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}
.atp-hero-back:hover { background: rgba(255,255,255,0.28); }
.atp-hero-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.atp-hero-cover {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  background: #1a1a1a;
  position: relative;
}
.atp-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atp-cover-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#F27A24,#c3232f);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  font-family: 'brother-1816-printed', system-ui, sans-serif;
}
.atp-hero-text { flex: 1 1 320px; }
/* The site's global stylesheet sets a dark default color for h1; we need to
 * explicitly assert white here so the heading stays legible on the dark
 * gradient background. Same fix the rest of the site's hero h1s use. */
.atp-hero-text h1 {
  font-size: 46px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.05;
  color: #fff;
}
.atp-tagline {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #fff;
  opacity: 0.92;
}
.atp-pitch {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  color: #fff;
  opacity: 0.85;
}

/* Vanity short URL pill — sits below the pitch in the hero. The redirect
 * `aloha-today.com → www.hawaii-guide.com/podcast` is set up in DNS, so
 * this is something readers can actually share verbally. */
.atp-shortlink {
  font-size: 15px;
  margin: 14px 0 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
}
.atp-shortlink-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.7;
}
.atp-shortlink a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.55);
}
.atp-shortlink a:hover {
  border-bottom-color: #fff;
}

@media (max-width: 720px) {
  .atp-hero { padding: 40px 20px 28px; }
  .atp-hero-cover { width: 140px; height: 140px; }
  .atp-hero-text h1 { font-size: 34px; }
  .atp-tagline { font-size: 18px; }
  .atp-pitch { font-size: 15px; }
  .atp-shortlink { font-size: 14px; }
}

/* ─── EPISODE CARDS ─────────────────────────────────────── */
.atp-latest, .atp-archive, .atp-subscribe, .atp-about, .atp-email {
  margin: 32px 0;
}
.atp-latest h2, .atp-archive h2, .atp-subscribe h2, .atp-about h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px;
}

.atp-episode-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.atp-episode-featured {
  border: 2px solid #1d4d70;
  background: #f8fbff;
  box-shadow: 0 4px 14px rgba(29,77,112,0.12);
}
.atp-episode-empty {
  background: #fafafa;
  text-align: center;
  padding: 32px 22px;
}
.atp-episode-empty p {
  font-size: 16px;
  color: #555;
  margin: 0 0 10px;
}

.atp-episode-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
  margin: 0 0 8px;
}
.atp-episode-date { font-weight: 700; color: #1d4d70; }
.atp-episode-dur { color: #888; }
.atp-episode-story-flag {
  font-size: 13px;
  color: #c3232f;
  font-weight: 600;
}
.atp-episode-story-flag a { color: #c3232f; text-decoration: underline; }

.atp-episode-title {
  font-size: 19px;
  font-weight: 700;
  margin: 4px 0 8px;
  color: #222;
}
.atp-episode-featured .atp-episode-title { font-size: 22px; }
.atp-episode-summary {
  font-size: 15px;
  line-height: 1.55;
  color: #444;
  margin: 0 0 14px;
}
.atp-audio {
  width: 100%;
  margin: 6px 0 0;
}

/* ─── SUBSCRIBE BUTTONS ─────────────────────────────────── */
.atp-subscribe-intro {
  font-size: 15px;
  color: #555;
  margin: 0 0 14px;
}
.atp-subscribe-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.atp-sub-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  text-decoration: none;
  color: #222;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.atp-sub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}
.atp-sub-icon { font-size: 24px; flex-shrink: 0; }
.atp-sub-label { display: flex; flex-direction: column; line-height: 1.25; }
.atp-sub-label strong { font-size: 15px; font-weight: 700; }
.atp-sub-hint { font-size: 12px; color: #888; margin-top: 2px; }

.atp-sub-apple { border-color: #b48cff; }
.atp-sub-spotify { border-color: #1DB954; }
.atp-sub-rss { border-color: #ff7e2c; }
.atp-sub-email { border-color: #1d4d70; }

/* ─── ABOUT GRID ────────────────────────────────────────── */
.atp-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.atp-about-block {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
}
.atp-about-block h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #1d4d70;
}
.atp-about-block p, .atp-about-block ul {
  font-size: 15px;
  line-height: 1.55;
  color: #444;
  margin: 0;
}
.atp-about-block ul {
  padding-left: 18px;
}
.atp-about-block li {
  margin: 0 0 6px;
}

/* ─── EMAIL CAPTURE ─────────────────────────────────────── */
.atp-email-form {
  background: #fff7ed;
  border: 1px solid #ffd9a8;
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  gap: 14px;
}
.atp-email-text strong {
  font-size: 17px;
  display: block;
  margin: 0 0 4px;
  color: #c3232f;
}
.atp-email-text p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
.atp-email-inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.atp-email-form input[type='email'] {
  flex: 1 1 240px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}
.atp-email-form input[type='email']:focus {
  outline: 2px solid #c3232f;
  border-color: #c3232f;
}
.atp-email-form button.atp-email-submit {
  padding: 13px 28px;
  background: #c3232f;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(195, 35, 47, 0.25);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.atp-email-form button.atp-email-submit:hover {
  background: #a71b27;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(195, 35, 47, 0.35);
}
.atp-email-form button.atp-email-submit:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(195, 35, 47, 0.25);
}
.atp-email-form button.atp-email-submit:focus-visible {
  outline: 3px solid #ffd9a8;
  outline-offset: 2px;
}
.atp-email-form button.atp-email-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.atp-email-status {
  font-size: 14px;
  margin: 0;
  min-height: 18px;
}
.atp-email-status.is-ok { color: #1D9771; font-weight: 600; }
.atp-email-status.is-err { color: #c3232f; font-weight: 600; }

/* ─── TRANSCRIPT (collapsible <details>) ──────────────── */
.atp-transcript-toggle {
  margin: 14px 0 0;
  padding: 0;
  font-size: 14px;
  border-top: 1px solid #e8e8e8;
}
.atp-transcript-toggle summary {
  cursor: pointer;
  font-weight: 700;
  color: #1d4d70;
  padding: 12px 0 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.atp-transcript-toggle summary::-webkit-details-marker { display: none; }
.atp-transcript-toggle summary::before {
  content: "▸";
  display: inline-block;
  font-size: 12px;
  color: #888;
  transition: transform 0.15s ease;
}
.atp-transcript-toggle[open] summary::before { transform: rotate(90deg); }
.atp-transcript-toggle summary:hover { color: #c3232f; }

.atp-transcript {
  padding: 14px 0 4px;
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}
.atp-transcript p {
  margin: 0 0 12px;
}
.atp-transcript p:last-child {
  margin-bottom: 0;
}

/* Print: always show transcripts when readers print the page */
@media print {
  .atp-transcript-toggle[open] .atp-transcript,
  .atp-transcript-toggle .atp-transcript {
    display: block !important;
  }
  .atp-transcript-toggle summary::before { display: none; }
}

/* ─── MENTIONED ARTICLES + EVENTS ──────────────────────── */
/* Renders linked cards for posts and events Mele referenced in the
 * episode. Posts are linked (each entry comes from the site feed);
 * events are unlinked text rows (Ticketmaster/NPS events don't have
 * a single canonical URL we can hand to a reader). Both blocks sit
 * between the audio player and the transcript toggle. */
.atp-mentioned {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #f4f8fb;
  border: 1px solid #d9e4ed;
  border-radius: 10px;
}
.atp-mentioned + .atp-mentioned {
  margin-top: 10px;
}
.atp-mentioned-label {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1d4d70;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.atp-mentioned-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.atp-mentioned-list li {
  font-size: 15px;
  line-height: 1.45;
  color: #333;
}
.atp-mentioned-posts a {
  color: #1d4d70;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29, 77, 112, 0.35);
  text-underline-offset: 2px;
}
.atp-mentioned-posts a:hover {
  color: #c3232f;
  text-decoration-color: #c3232f;
}
.atp-mentioned-events strong {
  font-weight: 600;
  color: #222;
}
.atp-mentioned-meta {
  color: #666;
  font-size: 14px;
}
.atp-mentioned-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #555;
}
.atp-mentioned-hint a {
  color: #1d4d70;
  text-decoration: underline;
}
