/**
 * Single Post/Episode Styles
 * 
 * Modern elegant layout for individual podcast episode pages
 */

.single-podcast-episode {
  background-color: #f8f9fa;
}

/* Fix for Elementor videos and images in content */
.entry-content iframe,
.entry-content .elementor-video {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.entry-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.entry-content .wp-post-image,
.entry-content .aligncenter {
  margin: 0 auto;
}

/* Fix Elementor container overflow */
.entry-content .elementor-element,
.entry-content .e-con-inner {
  max-width: 100%;
  overflow: hidden;
}

/* ==========================================================================
   Modern Episode Hero - Compact Design
   ========================================================================== */

.single-episode-hero-modern {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: #1a1a2e !important;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a2e;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle at 25% 25%,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

/* Hero Content Grid */
.hero-content-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 40px;
}

/* Hero Feature Card - Episode Number Display */
.hero-feature-card {
  position: relative;
}

.episode-number-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(26, 188, 156, 0.3);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.episode-number-card:hover {
  transform: translateY(-10px);
  border-color: rgba(26, 188, 156, 0.6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.episode-number-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.ep-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #1abc9c;
  text-transform: uppercase;
}

.ep-number {
  font-family: "Poppins", sans-serif;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(26, 188, 156, 0.5);
}

.podcast-icon-display {
  padding: 40px 0;
}

.podcast-icon-display i {
  font-size: 180px;
  color: #1abc9c;
  opacity: 0.9;
}

.industry-badge-card {
  margin-top: 30px;
  background: rgba(26, 188, 156, 0.95);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(26, 188, 156, 0.4);
}

.industry-badge-card i {
  margin-right: 8px;
}

/* Hero Episode Info */
.hero-episode-info {
  color: #ffffff;
}

/* Hero Top Section */
.hero-top-section {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.hero-meta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.episode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 188, 156, 0.2);
  border: 2px solid #1abc9c;
  color: #1abc9c;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.industry-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.episode-title {
  font-family: "Poppins", sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.episode-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  font-weight: 300;
}

.episode-meta-info {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 15px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  color: #1abc9c;
  width: 20px;
}

.meta-item strong {
  color: #1abc9c;
  font-weight: 600;
}

.meta-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* Hero Bottom Section - Description & Thumbnail */
.hero-bottom-section {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.episode-description {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.episode-thumbnail-compact {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
}

.episode-thumbnail-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.episode-thumbnail-compact img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.play-overlay-compact {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(26, 188, 156, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.play-overlay-compact i {
  color: #ffffff;
  font-size: 24px;
  margin-left: 3px;
}

.episode-thumbnail-compact:hover .play-overlay-compact {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   Episode Content Section
   ========================================================================== */

.single-episode-content {
  padding: 60px 0 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.main-content {
  background: #ffffff;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Audio Player Section
   ========================================================================== */

.episode-audio-player {
  background: linear-gradient(
    135deg,
    var(--podcast-primary) 0%,
    var(--podcast-secondary) 100%
  );
  padding: 30px;
  margin-bottom: 0;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
}

.player-header i {
  font-size: 24px;
  color: var(--podcast-accent);
}

.episode-audio-player audio {
  width: 100%;
  height: 50px;
  border-radius: 8px;
}

/* ==========================================================================
   Tabbed Content
   ========================================================================== */

.episode-content-tabs {
  background: #ffffff;
}

.tabs-navigation {
  display: flex;
  gap: 0;
  background: #f8f9fa;
  padding: 8px;
  border-bottom: 2px solid #e8e8e8;
  border-radius: 12px 12px 0 0;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: transparent !important;
  border: none !important;
  color: #666 !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
  color: inherit !important;
}

.tab-btn:hover {
  background: rgba(52, 152, 219, 0.1) !important;
  color: #3498db !important;
}

.tab-btn:hover i {
  transform: scale(1.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2) !important;
}

.tab-btn.active i {
  color: #1abc9c !important;
}

.tabs-content {
  padding: 40px;
  min-height: 300px;
}

.tab-pane {
  display: none !important;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Entry Content Styles
   ========================================================================== */

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3 {
  color: var(--podcast-primary);
  margin-top: 35px;
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
}

.entry-content h2 {
  font-size: 32px;
}

.entry-content h3 {
  font-size: 26px;
}

.entry-content ul,
.entry-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.entry-content li {
  margin-bottom: 10px;
}

/* Read More Section */
.read-more-section {
  max-height: 2000px;
  overflow: hidden;
  transition: all 0.5s ease;
}

.read-more-section.collapsed {
  max-height: 0;
  opacity: 0;
}

.read-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px auto 0;
  padding: 14px 35px;
  background: linear-gradient(135deg, #3498db 0%, #1abc9c 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.read-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

/* Transcript & Show Notes Content */
.transcript-content,
.show-notes-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  color: #ddd;
}

.empty-state p {
  font-size: 18px;
  color: #999;
}

/* ==========================================================================
   Episode Footer Section - Tags & Share
   ========================================================================== */

.episode-footer-section {
  padding: 30px 40px 40px;
  background: #f8f9fa;
  border-top: 2px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.episode-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.episode-tags strong {
  color: #2c3e50;
  font-size: 15px;
  white-space: nowrap;
}

.episode-tags strong i {
  color: #1abc9c;
  margin-right: 6px;
}

.episode-tags a {
  display: inline-block;
  background-color: #ffffff;
  color: var(--podcast-primary);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #e8e8e8;
}

.episode-tags a:hover {
  background-color: var(--podcast-secondary);
  color: #ffffff;
  border-color: var(--podcast-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.episode-share-compact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.episode-share-compact strong {
  color: #2c3e50;
  font-size: 15px;
  white-space: nowrap;
}

.episode-share-compact strong i {
  color: #1abc9c;
  margin-right: 6px;
}

.share-buttons-compact {
  display: flex;
  gap: 10px;
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.share-icon.facebook {
  background-color: #1877f2;
}

.share-icon.twitter {
  background-color: #1da1f2;
}

.share-icon.linkedin {
  background-color: #0a66c2;
}

.share-icon.email {
  background-color: #666;
}

.share-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */

.episode-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--podcast-primary);
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
}

.widget-title i {
  color: var(--podcast-secondary);
}

/* Episode Details List */
.episode-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.episode-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}

.episode-details-list li:last-child {
  border-bottom: none;
}

.episode-details-list i {
  color: var(--podcast-accent);
  margin-top: 3px;
  width: 16px;
}

.episode-details-list strong {
  color: var(--podcast-primary);
}

.episode-details-list a {
  color: var(--podcast-secondary);
  text-decoration: none;
}

.episode-details-list a:hover {
  text-decoration: underline;
}

/* Subscribe Widget */
.subscribe-widget p {
  color: #666;
  margin-bottom: 20px;
}

.subscribe-platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  color: var(--podcast-primary);
}

.platform-btn:hover {
  background-color: var(--podcast-secondary);
  color: #ffffff;
  transform: translateX(5px);
}

.platform-btn i {
  font-size: 18px;
}

/* ==========================================================================
   Related Episodes Section
   ========================================================================== */

.related-episodes {
  background-color: #ffffff;
  padding: 60px 0;
}

.related-episodes .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 36px;
  font-weight: 700;
  color: var(--podcast-primary);
  margin-bottom: 40px;
  font-family: "Poppins", sans-serif;
}

.section-title i {
  color: var(--podcast-secondary);
}

.related-episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-episode-card {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.related-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-episode-card:hover .related-thumbnail img {
  transform: scale(1.1);
}

.related-content {
  padding: 20px;
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.related-title a {
  color: var(--podcast-primary);
  text-decoration: none;
}

.related-title a:hover {
  color: var(--podcast-secondary);
}

.related-date {
  font-size: 14px;
  color: #888;
}

.related-date i {
  margin-right: 6px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet & Below */
@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 350px 1fr;
    gap: 40px;
  }

  .episode-number-card {
    padding: 50px 30px;
  }

  .ep-number {
    font-size: 100px;
  }

  .podcast-icon-display i {
    font-size: 150px;
  }

  .episode-title {
    font-size: 40px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    padding: 0 30px;
  }

  .episode-sidebar {
    order: -1;
  }

  .related-episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-episodes .container {
    padding: 0 30px;
  }

  .episode-footer-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .single-episode-hero-modern {
    padding: 60px 0 40px;
  }

  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-feature-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .episode-number-card {
    padding: 40px 30px;
  }

  .ep-number {
    font-size: 80px;
  }

  .podcast-icon-display i {
    font-size: 120px;
  }

  .episode-title {
    font-size: 32px;
  }

  .episode-meta-info {
    gap: 10px;
  }

  .tabs-navigation {
    flex-direction: column;
    gap: 8px;
  }

  .tab-btn {
    padding: 14px 20px;
  }

  .tabs-content {
    padding: 30px 25px;
  }

  .content-grid {
    padding: 0 20px;
  }

  .episode-footer-section {
    padding: 25px 25px 30px;
  }

  .related-episodes-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .related-episodes .container {
    padding: 0 20px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .single-episode-hero-modern {
    padding: 40px 0 30px;
  }

  .episode-title {
    font-size: 28px;
  }

  .episode-badge,
  .industry-badge-hero {
    font-size: 11px;
    padding: 8px 20px;
  }

  .episode-description {
    font-size: 16px;
  }

  .episode-thumbnail-compact {
    max-width: 160px;
  }

  .play-overlay-compact {
    width: 50px;
    height: 50px;
  }

  .play-overlay-compact i {
    font-size: 20px;
  }

  .tabs-content {
    padding: 25px 20px;
  }

  .entry-content {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .episode-footer-section {
    padding: 20px;
  }

  .episode-tags,
  .episode-share-compact {
    width: 100%;
  }
}
