/* ==============================================
   GotQuestions.org Podcast - Custom Styles
   ============================================== */

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Listen On / Watch On Sections ---- */
.listen-on,
.watch-on {
  margin: 0.5rem 0 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1.25rem 1.5rem;
  animation: fadeInUp 0.5s ease both;
}

.watch-on {
  margin-top: 0.5rem;
  animation-delay: 0.05s;
}

.listen-on h3,
.watch-on h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin: 0 0 0.85rem;
  font-weight: 600;
  background: none;
  padding: 0;
}

.listen-on-buttons,
.watch-on-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.5rem;
  padding: 0;
  background: none;
  border: none;
}

.watch-on-buttons {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

/* Platform buttons (shared style) */
div.content .platform-btn,
.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

div.content .platform-btn:hover,
.platform-btn:hover {
  opacity: 0.8;
  text-decoration: none;
}

.platform-btn img {
  height: 44px;
  width: auto;
  display: block;
}

/* RSS icon - right-aligned above the Listen On card */
div.content .listen-on-rss,
.listen-on-rss {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: #E5601A;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  margin-left: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  width: fit-content;
  transition: opacity 0.2s ease;
}

div.content .listen-on-rss:hover,
.listen-on-rss:hover {
  opacity: 0.85;
  text-decoration: none;
}

.listen-on-rss svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

/* ---- Interviews Info Banner ---- */
.interviews-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(to right, rgba(9,98,144,0.1), rgba(75,94,149,0.1));
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin: 1rem 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  animation: fadeIn 0.5s ease 0.2s both;
}

.interviews-banner:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.interviews-banner svg {
  width: 20px;
  height: 20px;
  fill: #096290;
  flex-shrink: 0;
}

div.content .interviews-banner a,
.interviews-banner a {
  color: #185a83;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

div.content .interviews-banner a:hover,
.interviews-banner a:hover {
  color: #096290;
  text-decoration: underline;
}

/* ---- Episode Card Grid ---- */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.episode-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.episode-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.episode-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.episode-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.episode-card:hover img {
  transform: scale(1.03);
}

/* Staggered animation */
.episode-card:nth-child(1) { animation-delay: 0.0s; }
.episode-card:nth-child(2) { animation-delay: 0.05s; }
.episode-card:nth-child(3) { animation-delay: 0.1s; }
.episode-card:nth-child(4) { animation-delay: 0.15s; }
.episode-card:nth-child(5) { animation-delay: 0.2s; }
.episode-card:nth-child(6) { animation-delay: 0.25s; }
.episode-card:nth-child(7) { animation-delay: 0.3s; }
.episode-card:nth-child(8) { animation-delay: 0.35s; }
.episode-card:nth-child(9) { animation-delay: 0.4s; }

/* ---- Featured Episode Card (index.html) ---- */
.featured-episode {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 0;
  margin: 1.5rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.6s ease 0.15s both;
}

/* Hero thumbnail area */
.featured-episode-hero {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border-radius: 16px 16px 0 0;
}

.featured-episode-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.featured-episode-hero:hover .featured-episode-thumb {
  transform: scale(1.03);
  filter: brightness(0.85);
}

/* Play button overlay */
.featured-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 50px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.9;
  z-index: 2;
}

.featured-play-btn svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.featured-episode-hero:hover .featured-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

/* Episode body content */
.featured-episode-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.featured-episode-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #096290, #4B5E95);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.featured-episode h2 {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  line-height: 1.35;
  color: #073553;
}

.featured-episode-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 1rem;
  font-weight: 500;
}

.featured-episode .episode-description {
  color: #374151;
  line-height: 1.7;
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
}

.featured-episode .episode-links-card {
  background: #f0f7fc;
  border: 1px solid rgba(9,98,144,0.1);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 0 0 1.25rem;
}

.featured-episode .episode-links-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
  color: #073553;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-episode .episode-links-card h3 svg {
  width: 18px;
  height: 18px;
  fill: #096290;
  flex-shrink: 0;
}

.featured-episode .episode-media {
  margin: 0 0 1.25rem;
}

div.content .featured-episode .episode-links-card a,
.featured-episode .episode-links-card a {
  color: #185a83;
  text-decoration: none;
  transition: color 0.2s;
}

div.content .featured-episode .episode-links-card a:hover,
.featured-episode .episode-links-card a:hover {
  color: #096290;
  text-decoration: underline;
}

.featured-episode .episode-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featured-episode .episode-links li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(9,98,144,0.08);
}

.featured-episode .episode-links li:last-child {
  border-bottom: none;
}

.featured-episode .episode-disclaimer {
  margin: 0;
  background: #f9fafb;
  border-left-color: #d1d5db;
  color: #6b7280;
  border-radius: 0 8px 8px 0;
}

/* ---- Video Player Card (episode pages) ---- */
.video-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 1.5rem 0;
  transition: box-shadow 0.3s ease;
}

.video-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.video-card .youtube-player {
  border-radius: 0;
}

/* ---- Episode Content (episode pages) ---- */
.episode-description {
  line-height: 1.7;
  margin: 1.25rem 0;
  font-size: 1.05rem;
}

.episode-links-card {
  background: #f0f7fc;
  border: 1px solid rgba(9,98,144,0.1);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
  transition: background 0.2s ease;
}

.episode-links-card:hover {
  background: #e8f1f8;
}

.episode-links-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #073553;
}

.episode-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.episode-links li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: padding-left 0.2s ease;
}

.episode-links li:hover {
  padding-left: 0.3rem;
}

.episode-links li:last-child {
  border-bottom: none;
}

div.content .episode-links a,
.episode-links a {
  color: #185a83;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

div.content .episode-links a:hover,
.episode-links a:hover {
  color: #096290;
  text-decoration: underline;
}

/* ---- Media Buttons (Audio/Transcript) ---- */
.episode-media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

div.content .media-btn,
.media-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-decoration-color: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

div.content .media-btn:hover,
.media-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  text-decoration: none;
}

div.content .audio-btn,
.audio-btn {
  background: linear-gradient(135deg, #096290, #4B5E95);
  color: #fff;
}

div.content .audio-btn:hover,
.audio-btn:hover {
  filter: brightness(1.15);
  color: #fff;
}

.audio-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

div.content .transcript-btn,
.transcript-btn {
  background: transparent;
  color: #185a83;
  border: 2px solid #096290;
}

div.content .transcript-btn:hover,
.transcript-btn:hover {
  background: linear-gradient(135deg, #096290, #4B5E95);
  color: #fff;
  border-color: transparent;
}

.transcript-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---- Disclaimer ---- */
.episode-disclaimer {
  background: rgba(0,0,0,0.025);
  border-left: 3px solid #4B5E95;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

/* ---- Multi-part Episode Sections ---- */
.episode-part {
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.episode-part:first-of-type {
  border-top: none;
  padding-top: 0;
}

.episode-part h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #073553;
}

/* ---- Interviews Page ---- */
.article-card {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0;
  line-height: 1.7;
  animation: fadeInUp 0.5s ease both;
}

.article-card p {
  margin-bottom: 1rem;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.pull-quote {
  border-left: 4px solid #096290;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: #185a83;
}

/* ---- "More Previous Episodes" Button ---- */
div.content .more-episodes-btn,
.more-episodes-btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: linear-gradient(135deg, #096290, #4B5E95);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  text-decoration-color: transparent;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 3px 10px rgba(9,98,144,0.3);
  margin: 1rem 0;
}

div.content .more-episodes-btn:hover,
.more-episodes-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(9,98,144,0.4);
  filter: brightness(1.12);
  color: #fff;
  text-decoration: none;
}

/* ---- Section Headings ---- */
.section-heading {
  font-size: 1.5rem;
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #096290;
  display: inline-block;
  color: #073553;
}

/* ---- Dark Mode ---- */
[data-site-theme="dark"] .listen-on,
[data-site-theme="dark"] .watch-on {
  background: #0E2C3F;
  border-color: rgba(255,255,255,0.1);
}

[data-site-theme="dark"] .listen-on h3,
[data-site-theme="dark"] .watch-on h3 {
  color: #9CA3AF;
}


[data-site-theme="dark"] .listen-on-rss {
  background: #b34a15;
}

[data-site-theme="dark"] .interviews-banner {
  background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0.08));
  border-color: rgba(255,255,255,0.1);
}

[data-site-theme="dark"] div.content .interviews-banner a,
[data-site-theme="dark"] .interviews-banner a {
  color: #9CC3E4;
}

[data-site-theme="dark"] .interviews-banner svg {
  fill: #9CC3E4;
}

[data-site-theme="dark"] .episode-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-site-theme="dark"] .episode-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

[data-site-theme="dark"] .featured-episode {
  background: #0E2C3F;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-site-theme="dark"] .featured-episode-badge {
  background: linear-gradient(135deg, #024066, #2b3b5e);
}

[data-site-theme="dark"] .featured-episode h2 {
  color: #C4E3FE;
}

[data-site-theme="dark"] .featured-episode-subtitle {
  color: #7ba8c4;
}

[data-site-theme="dark"] .featured-episode .episode-description {
  color: #9CC3E4;
}

[data-site-theme="dark"] .featured-episode .episode-links-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

[data-site-theme="dark"] .featured-episode .episode-links-card h3 {
  color: #9CC3E4;
}

[data-site-theme="dark"] .featured-episode .episode-links-card h3 svg {
  fill: #9CC3E4;
}

[data-site-theme="dark"] div.content .featured-episode .episode-links-card a,
[data-site-theme="dark"] .featured-episode .episode-links-card a {
  color: #9CC3E4;
}

[data-site-theme="dark"] .featured-episode .episode-links li {
  border-bottom-color: rgba(255,255,255,0.06);
}

[data-site-theme="dark"] .featured-episode .episode-disclaimer {
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(255,255,255,0.15);
  color: #8899aa;
}

[data-site-theme="dark"] .article-card {
  background: #0E2C3F;
  border-color: rgba(255,255,255,0.1);
}

[data-site-theme="dark"] .episode-links-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

[data-site-theme="dark"] .episode-links-card h3 {
  color: #9CC3E4;
}

[data-site-theme="dark"] div.content .episode-links a,
[data-site-theme="dark"] .episode-links a {
  color: #9CC3E4;
}

[data-site-theme="dark"] div.content .episode-links a:hover,
[data-site-theme="dark"] .episode-links a:hover {
  color: #C4E3FE;
}

[data-site-theme="dark"] .episode-disclaimer {
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(255,255,255,0.2);
  color: #aaa;
}

[data-site-theme="dark"] div.content .transcript-btn,
[data-site-theme="dark"] .transcript-btn {
  color: #9CC3E4;
  border-color: #9CC3E4;
}

[data-site-theme="dark"] div.content .transcript-btn:hover,
[data-site-theme="dark"] .transcript-btn:hover {
  background: linear-gradient(135deg, #024066, #2b3b5e);
  color: #fff;
  border-color: transparent;
}

[data-site-theme="dark"] .section-heading {
  border-bottom-color: #9CC3E4;
  color: #9CC3E4;
}

[data-site-theme="dark"] .pull-quote {
  color: #9CC3E4;
  border-left-color: #9CC3E4;
}

[data-site-theme="dark"] .episode-part h2 {
  color: #9CC3E4;
}

[data-site-theme="dark"] .video-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-site-theme="dark"] .more-episodes-btn {
  background: linear-gradient(135deg, #024066, #2b3b5e);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .featured-episode {
    border-radius: 12px;
  }

  .featured-episode-hero {
    border-radius: 12px 12px 0 0;
  }

  .featured-episode-body {
    padding: 1.25rem;
  }

  .featured-episode h2 {
    font-size: 1.15rem;
  }

  .featured-play-btn {
    width: 60px;
    height: 42px;
  }
}

@media (max-width: 600px) {
  .episode-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .listen-on-buttons,
  .watch-on-buttons {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.4rem;
  }

  .listen-on,
  .watch-on {
    padding: 1rem 1.15rem;
  }

  .article-card {
    padding: 1.25rem;
  }
}
