/**
 * Podcast Participants Styles
 * For displaying hosts and guests in the podcast sidebar
 */

/* Episode Participants Section */
.episode-participants {
  background-color: #fff;
  border-radius: 0.5em;
  box-shadow: 0 0.0625em 0.1875em rgba(0, 0, 0, 0.05);
  padding: 1.25em;
  max-width: 100%;
  margin: 1.875em 0 1.5625em;
  font-family: 'bliss-pro', sans-serif;
  position: relative;
}

/* Title Styling */
.episode-participants__title {
  color: #43455a;
  font-size: 1.375em;
  font-weight: 600;
  margin: 0 0 0.9375em 0;
  padding-bottom: 0.3125em;
  position: relative;
  font-family: 'bliss-pro-medium', sans-serif;
}

.episode-participants__title:after {
  content: '';
  display: block;
  width: 3em;
  height: 0.135em;
  background-color: #00b5e2;
  position: absolute;
  bottom: -.3em;
  left: 0;
}

/* Toggle All Button */
.episode-participants__toggle {
  text-align: right;
  position: absolute;
  top: 1.25em;
  right: 1.25em;
  color: #00b5e2;
  font-size: 0.875em;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.episode-participants__toggle:hover {
  color: #0092b9;
  text-decoration: underline;
}

/* Group Styling */
.participant-section {
  margin-bottom: 1.5625em;
}

.participant-section:last-child {
  margin-bottom: 0;
}

.participant-section__title {
  color: #00b5e2;
  font-size: 1.125em;
  font-weight: 600;
  margin: 0 0 0.4375em 0;
  padding-bottom: 0.5em;
  border-bottom: 0.0625em solid #eaeaea;
  font-family: 'bliss-pro-medium', sans-serif;
}

/* Individual Participant */
.participant {
  position: relative;
  padding-bottom: 1.25em;
  margin-bottom: 1.25em;
  border-bottom: 0.0625em solid #f5f5f5;
}

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

/* Participant role hidden/removed as requested */
.participant__role {
  display: none;
}

.participant__name {
  color: #43455a;
  font-size: 1em;
  font-weight: 600;
  margin: 1.1em 0 0.3125em 0;
  padding-right: 3.125em; /* Make room for bio toggle */
  font-family: 'bliss-pro-medium', sans-serif;
  line-height: 0.7;
}

.participant__title {
  color: #666;
  font-size: 0.825em;
  margin-bottom: 0.225em;
  line-height: 1.4;
}

/* Bio Toggle */
.participant__bio-toggle {
  position: absolute;
  top: -0.4em;
  right: 0;
  background: transparent;
  border: none;
  color: #00b5e2;
  font-size: 0.6875em;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25em 0.5em;
  display: flex;
  align-items: center;
  font-family: 'bliss-pro', sans-serif;
}

.participant__bio-toggle:hover {
  text-decoration: underline;
}

.participant__bio-toggle svg {
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.3125em;
  transition: transform 0.2s ease;
}

.participant__bio-toggle.is-open svg {
  transform: rotate(180deg);
}

/* Bio Content */
.participant__bio {
  background-color: #f9f9f9;
  border-left: 0.1875em solid #00b5e2;
  padding: 0.9375em;
  margin-top: 0.625em;
  border-radius: 0 0.25em 0.25em 0;
  display: none;
}

.participant__bio.is-visible {
  display: block;
}

.participant__bio p {
  color: #555;
  font-size: 0.875em;
  line-height: 1.5;
  margin: 0 0 0.625em 0;
}

.participant__bio p:last-child {
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 48em) { /* 768px */
  .episode-participants {
    padding: 0.9375em;
  }
  
  .episode-participants__title {
    font-size: 1.25em;
    padding-right: 5em; /* Make room for the toggle all button */
  }
  
  .episode-participants__toggle {
    top: 0.9375em;
    right: 0.9375em;
  }
  
  .participant-section__title {
    font-size: 1em;
  }
  
  .participant__name {
    font-size: 1em;
    padding-right: 2.8125em;
  }
}