/* ===== NAVIGATION BAR STYLES (MATCHED) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: url('../Images/Podcast/PodcastTampleCover.jpg') no-repeat center center fixed;
  background-size: cover;
}
/* Body Sections Glassmorphic Style */
/* Background image on the entire page */
body, html {
  height: fit-content;
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  color: whitesmoke;
}
/* === HERO SECTION === */
#hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px;
  background: rgba(18, 18, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  color: #f0f0f0;
  flex-wrap: wrap;
}

/* Podcast image floated left */
#hero img {
  margin: 10px;
  float: left;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(255, 214, 107, 0.5);
  flex-shrink: 0;
}

/* Title */
.pageTitle {
  width: 100%;
  text-align: center;
  margin: 40px auto 20px auto;
  padding: 20px;
  background: rgba(18, 18, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  max-width: 800px;
  user-select: none;
}

.pageTitle h2 {
  font-size: 2rem;
  color: white;
  text-shadow: 0 0 8px rgba(255, 214, 107, 0.3);
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Responsive Adjustment */
@media screen and (max-width: 768px) {
  .pageTitle {
    padding: 15px;
  }

  .pageTitle h2 {
    font-size: 1.5rem;
  }
}

#hero {
    max-width: 900px;

}
/* Text container */
.hero-text-container {
  flex: 1;
  display: flex;
  text-align: justify;
  flex-direction: column;
  gap: 20px;
  user-select: none;
}

/* Scrollable paragraph box */
.hero-scroll-box {
  max-height: 600px;
  overflow-y: auto;
  padding: 15px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: #eaeaea;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Custom Scrollbar */
.hero-scroll-box::-webkit-scrollbar {
  width: 8px;
}
.hero-scroll-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.hero-scroll-box::-webkit-scrollbar-thumb {
  background: #950101;
  border-radius: 10px;
}
.hero-scroll-box::-webkit-scrollbar-thumb:hover {
  background: #c41515;
}

/* Hero play button */
#hero button#playHero {
  display: block;
  margin: 30px auto;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 1.1rem;
  color: whitesmoke;
  background: rgba(255, 214, 107, 0.15);
  border: 1px solid rgba(255, 214, 107, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(255, 214, 107, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

#hero button#playHero:hover {
  background: rgba(255, 214, 107, 0.25);
  border-color: #c41515;
  color: white;
  transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #hero {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  #hero img {
    max-width: 100px;
    height: auto;
  }

  .hero-scroll-box {
    max-height: 200px;
    font-size: 0.95rem;
  }

  #hero button#playHero {
    width: 100%;
    margin-top: 20px;
  }
}

#player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  padding: 20px 30px;
  max-width: 700px;
  width: 90%;
  
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

  transition: all 0.3s ease;
}

#player-container:hover {
  box-shadow: 0 12px 30px rgba(255, 214, 107, 0.2);
  transform: scale(1.02);
}

#player {
  width: 100%;
  max-width: 600px;
  filter: drop-shadow(0 0 4px rgba(255, 214, 107, 0.3));
  border-radius: 12px;
}

@media (max-width: 600px) {
  #player-container {
    padding: 16px;
  }

  #player {
    max-width: 100%;
  }
}

/*episode title*/
.episodeTitle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto 20px auto;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  width: fit-content;
  max-width: 90%;
  text-align: center;
  user-select: none;
}

.episodeTitle h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .episodeTitle {
    padding: 10px 16px;
  }

  .episodeTitle h2 {
    font-size: 1.5rem;
  }
}

/* Episodes Grid */
/* Episodes Section Container */
#episodes {
  margin: 40px auto;
  padding: 20px;
  color: #e8e6e3;
  font-family: 'Lato', sans-serif;
  max-width: 1000px;
}

/* Scrollable horizontal wrapper for episode cards */
.episodes-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* flexible column size */
  gap: 20px;
  padding: 20px;
  background: rgba(18, 18, 18, 0.25);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  width: 100%;
  box-sizing: border-box; /* ensures padding doesn't cause overflow */
}

/* Scrollbar styles */
.episodes-wrapper::-webkit-scrollbar {
  height: 10px;
}

.episodes-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.episodes-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(255, 214, 107, 0.5);
  border-radius: 10px;
  border: 3px solid transparent;
}

/* Individual Episode Card */
.episode-card {
  position: relative;
  z-index: 1; /* Lower than the popup */
  background: rgba(18, 18, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  padding: 15px;
  color: #f0f0f0;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  max-width: 250px;
}

/* Hover effect on episode card */
.episode-card:hover {
  box-shadow: 0 0 50px #c41515;
  transform: scale(1.05);
}

/* Episode image */
.episode-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(255, 214, 107, 0.3);
}

/* Info section inside episode card */
.episode-card .info {
  text-align: center;
}

.episode-card .info h3 {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #FFD66B;
}

.episode-card .info p {
  font-size: 0.9rem;
  color: #d4d4d4;
  margin-bottom: 10px;
}

/* Like button styling */
.like-button {
  background: transparent;
  border: 1.5px solid #FFD66B;
  border-radius: 20px;
  padding: 6px 14px;
  color: #FFD66B;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.like-button:hover {
  background-color: #FFD66B;
  color: #1b1b1b;
}

.like-button .like-count {
  font-weight: normal;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .episodes-wrapper {
    padding: 10px;
  }

  .episode-card {
    flex: 0 0 200px;
    padding: 10px;
  }
}

.share-button {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 1.5px solid #FFD66B;
  border-radius: 20px;
  padding: 6px 14px;
  color: #FFD66B;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.share-button:hover {
  background-color: #FFD66B;
  color: #1b1b1b;
}

/* Share popup */
.share-popup {
   background: #1c1c1c;
  border: 1px solid #FFD66B;
  border-radius: 10px;
  padding: 10px;
  z-index: 9999;
  width: max-content;
  max-width: 90vw;
  font-size: 0.85rem;
  box-shadow: 0 0 12px rgba(255, 214, 107, 0.5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: absolute; /* Ensure it's absolutely positioned */
}

.share-icons {
display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-icons a {
  color: #FFD66B;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 4px;
  transition: transform 0.2s;
}

.share-icons a:hover {
  color: white;
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .share-popup {
    left: 10px !important;
    right: 10px;
    max-width: calc(100vw - 20px);
  }


  .share-icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .share-icons a {
    margin: 4px;
    font-size: 1.4rem;
  }
}


.share-popup a:hover {
  color: white;
}

/* Hidden class */
.hidden {
  display: none;
}

@media (max-width: 400px) {
  .share-popup {
    width: 90vw; /* almost full width on small screens */
    left: 5vw !important; /* slight left margin */
  }
  .share-icons {
    flex-wrap: wrap;
    justify-content: center;
  }
  .share-icons a {
    margin: 5px;
  }
}

/* ========== SCROLLABLE EPISODE CONTAINER ========== */

.episode-scroll-container {
  max-height: 600px;
  overflow-y: auto;
  position: relative;
  padding-right: 10px;
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

.back-to-top {
display: none; /* Hidden by default */
  position: sticky;
  bottom: 15px;
  margin: 20px auto 10px auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 20px;
  color: #ffd66b;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  display: block;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* === ABOUT & SUBSCRIBE SECTION STYLES === */
.about-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px 40px;
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  color: #f0f0f0;
  text-align: center;
}

/* ABOUT: Host Container */
.host-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 20px;
}

.host-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 214, 107, 0.4);
  border: 2px solid #FFD66B;
}

.host-bio {
  flex: 1;
  max-width: 600px;
  text-align: justify;
  font-size: 1rem;
  color: #eaeaea;
  line-height: 1.6;
}

/* HEADINGS */
.about-section h2 {
  font-size: 2rem;
  color: white;
  text-shadow: 0 0 8px rgba(255, 214, 107, 0.3);
  user-select: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .about-section {
    padding: 20px;
    margin: 40px 15px;
  }

  .host-photo {
    width: 120px;
    height: 120px;
    float: left;
  }

  .host-bio {
    font-size: 0.95rem;
  }
}
.learn-more-link {
  text-decoration: none;
  color: #e74c3c;
  font-weight: 600;
  position: relative;
}

.learn-more-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #ff6f61;
  transition: width 0.3s ease;
}

.learn-more-link:hover::after {
  width: 100%;
}

.learn-more-link:hover {
  filter: brightness(1.3);
}

