/* Podcast Header Container */
.podcast-header-container {
  width: 100%;
  margin-bottom: 32px;
}

.podcast-meta-info {
  margin-bottom: 15px;
}

.podcast-title {
  font-size: var(--bigFontMax);
  line-height: 1.25em;
  color: var(--flame);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.podcast-content {
  width: 90%;
}

/* Podcast Meta Header - Flipped Layout */
.podcast-meta-header {
  justify-content: flex-start !important;
}

.podcast-meta-header .resource-type-icon-wrapper {
  border-left: none !important;
  border-right: 1px solid var(--timberwolf, #d6d3d1) !important;
  padding: 20px !important;
  order: -1;
}

.podcast-meta-header > span {
  padding: 20px 0 20px 26px !important;
}

/* Podcast Tabs Styles */

.podcast-tabs {
  width: 100%;
  margin: 32px 0;
}

.tab-panel {
  display: contents;
}

.tab-link {
  padding: 20px 24px 20px 0;
  font-family: var(--bodyFont);
  font-size: var(--copyFontLarge);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-link:hover {
  color: var(--jasper, #cd5334);
}

.tab-link.active {
  color: var(--jasper, #cd5334);
  font-weight: 400;
  border-bottom: 3px solid var(--jasper, #cd5334);
}

.tab-arrow {
  width: 18px;
  height: 12px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.tab-link.active .tab-arrow {
  transform: rotate(270deg);
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 20px;
}

.tab-content.active,
.tab-content[style*="display: block"] {
  display: block;
}

.tab-content strong {
  font-weight: 600;
}

/* Guest Items */
.guest-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.guest-item:last-child {
  margin-bottom: 0;
}

.guest-item--photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.guest-item--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border-width: 1px;
  border-style: solid;
  border-color: #eb5e28;
  box-shadow: 0px 2px 18px 0px rgba(0, 0, 0, 0.15);
}

.guest-item--details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-item--name {
  font-family: var(--bodyFont);
  font-size: 24px;
  font-weight: 500;
  color: var(--black, #000);
  line-height: 1.3;
}

.guest-item--title {
  font-family: var(--bodyFont);
  font-size: 18px;
  font-weight: 300;
  color: var(--black, #000);
  line-height: 1.4;
}

/* ------ [ PODCAST MEDIA QUERIES ] ------ */

/* Desktop: Traditional tabs layout */
@media screen and (min-width: 768px) {
  .podcast-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .tab-panel {
    display: contents;
  }

  /* All tab links appear in a row at the top */
  .tab-link {
    display: inline-flex;
    margin-right: 16px;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
    order: 1;
  }

  /* Border line under tabs */
  .podcast-tabs::after {
    content: "";
    order: 2;
    width: 100%;
    height: 1px;
    background: var(--timberwolf, #ccc5b9);
    margin-bottom: 40px;
  }

  /* All content appears below the tab links */
  .tab-content {
    width: 100%;
    order: 3;
    display: none;
  }

  /* Show only active content on desktop */
  .tab-content.desktop-active {
    display: block;
  }

  /* Hide arrow on desktop */
  .tab-arrow {
    display: none;
  }

  .podcast-header-container .resource-tags-list {
    padding: 20px 0;
  }

  .resource-excerpt,
  #tab-transcript,
  #podcast-blurb {
    font-size: var(--copyFontLarge);
    line-height: 1.4em;
  }
}

/* Mobile: Accordion layout with reordering */
@media screen and (max-width: 767px) {
  .podcast-tabs {
    display: flex;
    flex-direction: column;
  }

  /* Each tab-panel displays as accordion item */
  .tab-panel {
    display: flex;
    flex-direction: column;
  }

  .tab-link {
    padding: 12px 16px;
    font-size: 18px;
    border-bottom: 1px solid var(--timberwolf, #ccc5b9);
    border-left: 3px solid transparent;
    margin-bottom: 0;
    display: flex;
  }

  .tab-link.active {
    border-bottom: 1px solid var(--timberwolf, #ccc5b9);
    border-left: 3px solid var(--jasper, #cd5334);
  }

  .tab-arrow {
    display: block;
  }

  /* Content appears directly below its tab */
  .tab-content {
    margin-bottom: 0;
  }

  /* Hide desktop-active content on mobile - all tabs start closed */
  .tab-content.desktop-active {
    display: none;
  }

  .podcast-title {
    font-size: var(--bigFontMin);
  }

  .podcast-header-container .resource-tags-list {
    padding: 10px 0;
    gap: 8px;
  }

  .resource-excerpt,
  #tab-transcript,
  #podcast-blurb {
    font-size: var(--copyFontSmall);
    line-height: 1.3em;
  }

  .guest-item {
    gap: 16px;
  }

  .guest-item--photo {
    width: 60px;
    height: 60px;
  }

  .guest-item--name {
    font-size: 20px;
  }

  .guest-item--title {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .guest-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Podcast Share Links */
.podcast-share-links-wrapper {
  margin: 20px 0;
}

.podcast-share-links-header {
  font-weight: 600;
  margin-bottom: 15px;
}

.podcast-share-links-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.podcast-share-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.podcast-share-link img {
  width: 36px;
  height: auto;
  object-fit: contain;
  display: block;
}

.podcast-share-link span {
  color: var(--jasper, #cd5334);
  font-family: Gibson, var(--bodyFont), sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px;
}

.podcast-share-links-container:hover .podcast-share-link {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.podcast-share-links-container:hover .podcast-share-link:hover {
  opacity: 1;
}
