/* 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;
}

@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; }
}

/* ─── 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-submit {
  padding: 12px 22px;
  background: #c3232f;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.atp-email-submit:hover { background: #a71b27; }
.atp-email-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.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; }
