/* ============================================
   Podcasts page - custom styles
   Designed to work with hugo-theme-stack

   Shares the same design language as the
   conferences and publications pages.
   ============================================ */

/* ---- Base font ---- */
.main-article {
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
}

/* ---- Page-level padding ---- */
.main-article > * {
  padding-left: var(--card-padding);
  padding-right: var(--card-padding);
}

/* Stats banner uses margin instead of padding */
.main-article > .pod-stats {
  padding-left: 0;
  padding-right: 0;
  margin-left: var(--card-padding);
  margin-right: var(--card-padding);
}

.main-article > .article-footer {
  padding-left: 0;
  padding-right: 0;
}

/* ---- Full-width layout (no right sidebar) ---- */
.podcasts-page .container.extended {
  --right-sidebar-max-width: 0;
}

/* ---- Hide hr in footer ---- */
.podcasts-page .main-article .article-footer hr {
  display: none !important;
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* ---- Header ---- */
.pod-header {
  margin-bottom: 2.5rem;
}

.pod-header h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.pod-subtitle {
  font-size: 1.7rem;
  color: var(--card-text-color-secondary);
  line-height: var(--article-line-height);
}

/* ---- Stats Banner ---- */
.pod-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 3rem;
  background: var(--card-background);
  border-radius: var(--card-border-radius, 10px);
  box-shadow: var(--shadow-l2);
  overflow: hidden;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0.75rem;
  position: relative;
}

/* Vertical dividers between stat cards */
.stat-card + .stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--card-separator-color);
}

.stat-number {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-color);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--card-text-color-tertiary);
}

/* ---- Section ---- */
.pod-section {
  margin-bottom: 3.5rem;
}

/* ---- Podcast Cards List ---- */
.pod-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pod-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: var(--shadow-l1);
  transition: box-shadow 0.15s, transform 0.15s;
}

.pod-card:hover {
  box-shadow: var(--shadow-l2);
  transform: translateX(3px);
}

.pod-card-type {
  flex-shrink: 0;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  white-space: nowrap;
  min-width: 5rem;
  text-align: center;
}

.type-podcast {
  background: #ede9fe;
  color: #6d28d9;
}

.type-live {
  background: #fce7f3;
  color: #be185d;
}

.type-interview {
  background: #e0f2fe;
  color: #0369a1;
}

/* Dark mode badge adjustments */
[data-scheme="dark"] .type-podcast {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

[data-scheme="dark"] .type-live {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
}

[data-scheme="dark"] .type-interview {
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
}

.pod-card-content {
  min-width: 0;
}

.pod-card-title {
  font-size: 1.5rem;
  color: var(--card-text-color-main);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}

.pod-card-title:hover {
  color: var(--accent-color);
}

.pod-card-note {
  font-size: 1.3rem;
  color: var(--card-text-color-tertiary);
  font-style: italic;
  margin: 0.2rem 0 0 0;
}

.pod-card-date {
  flex-shrink: 0;
}

.pod-date {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--card-text-color-tertiary);
  background: var(--body-background);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---- Footer ---- */
.main-article > .article-footer {
  font-size: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .pod-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(3)::before {
    display: none;
  }

  .pod-card {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .pod-card-date {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: 1.25rem 0.5rem;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .stat-label {
    font-size: 1.1rem;
  }
}
