/* changelog-podcast.css — styles for the changelog podcast page */

.podcast-episode-card {
  background: var(--card);
  border: 2px solid var(--slime-dark);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.podcast-episode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 90, 212, 0.15);
}

.podcast-episode-card.featured {
  border-color: var(--slime);
  box-shadow: 0 0 32px rgba(139, 90, 212, 0.2);
}

.podcast-episode-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.podcast-episode-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--slime);
  background: rgba(139, 90, 212, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.podcast-episode-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.podcast-episode-season {
  font-size: 11px;
  font-weight: 600;
  color: var(--slime-dark);
  background: rgba(139, 90, 212, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.podcast-episode-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 12px;
  line-height: 1.3;
}

.podcast-episode-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.podcast-episode-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}

.podcast-episode-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.podcast-episode-duration::before {
  content: "⏱️";
}
.podcast-episode-guests::before {
  content: "👥";
}
.podcast-episode-tags::before {
  content: "🏷️";
}

.podcast-episode-tags {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podcast-episode-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.podcast-btn {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.podcast-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.podcast-btn.primary {
  background: var(--slime);
  border-color: var(--slime);
  color: var(--bg);
}

.podcast-btn.primary:hover {
  background: var(--slime-dark);
  border-color: var(--slime-dark);
}

.podcast-btn.chapter {
  background: rgba(139, 90, 212, 0.1);
  border-color: var(--slime-dark);
  color: var(--slime-dark);
  font-size: 11px;
  padding: 4px 10px;
}

.podcast-btn.chapter:hover {
  background: var(--slime-dark);
  color: var(--bg);
}

.podcast-chapters {
  border-top: 1px solid var(--slime-dark);
  padding-top: 16px;
  margin-top: 16px;
}

.podcast-chapters h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--slime);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.podcast-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.podcast-chapter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(139, 90, 212, 0.05);
  border-radius: 8px;
  font-size: 13px;
  transition: background 0.15s ease;
}

.podcast-chapter-item:hover {
  background: rgba(139, 90, 212, 0.1);
}

.podcast-chapter-time {
  font-family: monospace;
  font-weight: 600;
  color: var(--slime);
  min-width: 60px;
  text-align: right;
}

.podcast-chapter-title {
  flex: 1;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-chapter-jump {
  background: none;
  border: none;
  color: var(--slime);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.podcast-chapter-jump:hover {
  background: rgba(139, 90, 212, 0.1);
}

.podcast-transcript {
  border-top: 1px solid var(--slime-dark);
  padding-top: 16px;
  margin-top: 16px;
}

.podcast-transcript h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--slime);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.podcast-transcript-content {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: monospace;
  white-space: pre-wrap;
}

.podcast-transcript-content .speaker {
  color: var(--slime);
  font-weight: 700;
}

.podcast-transcript-content .timestamp {
  color: var(--slime-dark);
  opacity: 0.7;
}

.podcast-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (max-width: 640px) {
  .podcast-list {
    grid-template-columns: 1fr;
  }
}

.podcast-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.podcast-stat-card {
  background: var(--card);
  border: 2px solid var(--slime-dark);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.podcast-stat-card:hover {
  transform: translateY(-2px);
}

.podcast-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slime);
  line-height: 1;
  margin-bottom: 4px;
}

.podcast-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.podcast-filters {
  margin-bottom: 20px;
}

.filters__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filters__select {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}

.filters__search {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}

.podcast-count {
  font-size: 13px;
  color: var(--muted);
}

.podcast-rss__text {
  margin-bottom: 12px;
}

.podcast-rss__link {
  color: var(--slime);
  font-weight: 600;
  text-decoration: none;
}

.podcast-rss__link:hover {
  text-decoration: underline;
}

.podcast-rss__note {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}

.podcast-rss__platforms {
  font-size: 13px;
  color: var(--muted);
}

.podcast-rss__platforms a {
  color: var(--slime);
  text-decoration: none;
}

.podcast-rss__platforms a:hover {
  text-decoration: underline;
}

.podcast-episode-card .podcast-chapters,
.podcast-episode-card .podcast-transcript {
  display: none;
}

.podcast-episode-card.expanded .podcast-chapters,
.podcast-episode-card.expanded .podcast-transcript {
  display: block;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 2px solid var(--slime);
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(139, 90, 212, 0.3);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.podcast-listened-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--slime);
  background: rgba(139, 90, 212, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.podcast-btn.listen-btn {
  background: var(--slime);
  border-color: var(--slime);
  color: var(--bg);
}

.podcast-btn.listen-btn:hover:not(:disabled) {
  background: var(--slime-dark);
  border-color: var(--slime-dark);
}

.podcast-btn.listen-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.podcast-btn.share-btn {
  background: rgba(139, 90, 212, 0.1);
  border-color: var(--slime-dark);
  color: var(--slime-dark);
}

.podcast-btn.share-btn:hover {
  background: var(--slime-dark);
  color: var(--bg);
}

.podcast-category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.podcast-category-btn {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.podcast-category-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.podcast-category-btn.active {
  background: var(--slime);
  border-color: var(--slime);
  color: var(--bg);
}

.podcast-progress-bar {
  width: 100%;
  height: 16px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.podcast-progress-bar::before {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--slime), var(--slime-dark));
  transition: width 0.3s ease;
}

.podcast-progress-bar[data-progress]::before {
  width: calc(var(--progress) * 100%);
}

.podcast-episode-card.highlight {
  animation: highlight-pulse 2s ease;
}

@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 90, 212, 0.4); }
  50% { box-shadow: 0 0 24px 4px rgba(139, 90, 212, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(139, 90, 212, 0.4); }
}

/* Rating stars */
.podcast-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.podcast-star {
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  transition: color 0.1s ease, transform 0.1s ease;
  user-select: none;
}

.podcast-star.filled {
  color: #ffd700;
}

.podcast-star:hover {
  transform: scale(1.2);
}

.podcast-star.filled:hover {
  color: #ffed4e;
}

.podcast-rating-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--slime);
  margin-left: 4px;
}

/* Rating summary card */
.podcast-rating-card {
  background: var(--card);
  border: 2px solid var(--slime-dark);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.podcast-rating-card:hover {
  transform: translateY(-2px);
}

.podcast-rating-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slime);
  line-height: 1;
  margin-bottom: 4px;
}

.podcast-rating-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (prefers-reduced-motion: reduce) {
  .podcast-episode-card,
  .podcast-stat-card,
  .podcast-rating-card,
  .toast,
  .podcast-progress-bar::before {
    transition: none;
  }
  .podcast-episode-card.highlight {
    animation: none;
  }
  .podcast-star {
    transition: none;
  }
}