/* ================================
   Podcasts Page Styles
   ================================ */

/* Page Header */
.page-header {
  padding: var(--space-16) 0 var(--space-8);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  background: linear-gradient(135deg,
    var(--color-bg-secondary) 0%,
    var(--color-bg-primary) 50%,
    var(--color-bg-secondary) 100%
  );
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay-light);
  pointer-events: none;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  background: linear-gradient(90deg, #14B8A6, #0891B2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

/* Podcasts Listing Grid */
.podcasts-listing {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

/* Podcast Detail Card - Horizontal Layout */
.podcast-detail {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: var(--transition-all);
}

.podcast-detail:hover {
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-lg);
}

/* Podcast Header - Horizontal arrangement */
.podcast-header {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  align-items: flex-start;
}

/* Artwork - Smaller size for horizontal layout */
.podcast-artwork-large {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-tertiary);
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

/* Podcast Info */
.podcast-info {
  flex: 1;
  min-width: 0;
}

.podcast-info h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  position: relative;
}

/* Override global section hover - prevent both bars from animating together */
.section:hover .podcast-info h2::after {
  width: 60px; /* Keep original width when hovering section */
}

/* Only animate the bar when hovering its specific podcast card */
.podcast-detail:hover .podcast-info h2::after {
  width: 80px;
}

.podcast-hosts {
  font-size: var(--font-size-base);
  color: var(--color-text-tertiary);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.podcast-description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-base);
}

/* Podcast Links */
.podcast-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.podcast-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: var(--transition-all);
}

.podcast-link:hover {
  background-color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}

/* Recent Episodes Section */
.podcast-latest-episode-full {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.podcast-latest-episode-full h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-accent-primary);
}

/* Individual Episode Item */
.episode-item {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.episode-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.episode-title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-snug);
}

.episode-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.episode-title a:hover {
  color: var(--color-accent-primary);
}

.episode-date {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-xs);
  display: block;
  margin-bottom: var(--space-2);
}

.episode-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-top: var(--space-2);
}

/* Responsive - Mobile Friendly */
@media (max-width: 768px) {
  .page-header {
    padding: var(--space-12) 0 var(--space-6);
  }

  .page-header h1 {
    font-size: var(--font-size-4xl);
    letter-spacing: 0.02em;
  }

  .page-description {
    font-size: var(--font-size-base);
  }

  .podcasts-listing {
    gap: var(--space-8);
  }

  .podcast-detail {
    padding: var(--space-6);
  }

  /* Stack vertically on mobile */
  .podcast-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
  }

  .podcast-artwork-large {
    width: 180px;
    height: 180px;
  }

  .podcast-info h2 {
    font-size: var(--font-size-2xl);
  }

  .podcast-links {
    justify-content: center;
  }

  .episode-item {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
  }
}

@media (max-width: 640px) {
  .podcast-detail {
    padding: var(--space-5);
  }

  .podcast-header {
    gap: var(--space-4);
  }

  .podcast-artwork-large {
    width: 150px;
    height: 150px;
  }

  .podcast-info h2 {
    font-size: var(--font-size-xl);
  }

  .podcast-description {
    font-size: var(--font-size-sm);
  }

  .podcast-latest-episode-full h3 {
    font-size: var(--font-size-lg);
  }
}
