/* Reset some basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #191B1C;
  color: #333;
  line-height: 1.6;
}

/* Header styling */
header {
  background: #262727;
  color: #fff;
  padding: 5px;
  text-align: center;
}

header img {
  width: 550px;
}

header h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
}

/* Search container */
.search-container {
  position: sticky;
  top: 0;
  background-color: #1F2122;
  padding: 10px 0;
  z-index: 1000;
  border-bottom: 1px solid #3E4446;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

#search {
  color: rgb(43, 43, 43);
  background-color: #121212;
  border-color: #4d4d4d;
  color: white;
}

input[type="text"] {
  padding: 10px;
  width: 80%;
  max-width: 400px;
  margin-right: 15px;
  border: 2px solid #313537;
  border-radius: 5px;
  font-size: 1rem;
}

/* Podcast grid */
#podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 30px;
}

.podcast-card {
  background-color: #1d1d1d;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  text-decoration: none;

  /* Added */
  border-bottom: 2px solid transparent;
  transition: transform 0.3s ease-in-out, border-color 0.3s ease;
}

.podcast-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 2px solid #35393B;
}

.podcast-card h2 {
  font-size: 1.3rem;
  padding: 10px;
  color: #ccc;
}

.podcast-card .tags {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.podcast-card .rating {
  font-weight: bold;
  color: #ccc;
}

.podcast-card:hover {
  transform: translateY(-5px);
  border-bottom-color: #4d4d4d; /* Changed from full border to just the color */
}


.podcast-detail {
  max-width: 900px;
  margin: 30px auto;
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
  color: #ccc;
}

.podcast-header {
  text-align: center;
}

.podcast-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cover {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.summary-item {
  font-size: 1.2rem;
  margin: 10px 0;
}

.rating-item {
  font-size: 1.2rem;
  margin: 5px 0;
}

.quote {
  font-size: 1.4rem;
  font-style: italic;
  margin: 20px 0;
  border-left: 5px solid #7A1A2F;
  padding-left: 20px;
}

.summary-text h3 {
  font-size: 1.8rem;
  margin-top: 20px;
}



.episode-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.episode-info span {
  flex-grow: 1;  /* Makes the text grow and take available space */
}

.cta {
  margin-left: 10px;  /* Space between the episode details and the button */
}


.podcast-detail a.back {
  display: inline-block;
  margin-bottom: 30px;
  color: #ccc;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #4d4d4d;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.episodes {
  margin-top: 30px;
}

.season-selector {
  margin-bottom: 15px;
}

#season-select {
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
}

.episode-list ul {
  list-style-type: none;
  padding: 0;
}

.episode-list li {
  font-size: 1.2rem;
  margin: 8px 0;
  padding: 0px;
  background-color: #1f1f1f;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: white;
}

.episode-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  transition: transform 0.4s ease-in-out
}

.episode-logo {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 5px;
}

.episode-list a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
}

.episode-list a:hover {
  color: #979797;
  
}

.episode-list li span {
  font-size: 1em;
}



.episode-list li:hover {
  transform: translateY(-5px);

}

.episode-list li[style="display: none;"] {
  display: none;
}


/* Tags styling */
.tag {
  display: inline-block;
  background-color: #313537;
  color: #ccc;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 20px;
  margin: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background-color: #535353;
  transform: scale(1.05);
}

.tag:active {
  transform: scale(1);
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 20px;
  padding: 10px 15px;
  font-size: 1rem;
  background-color: #47474790;
  color: #fff;
  border: none;
  border-radius: 5px;
  display: none;
  cursor: pointer;
  z-index: 1000;
}

/* Footer styling */
footer {
  background-color: #151515;
  color: white;
  padding: 10px;
  position: relative;
  bottom: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
}

.left-content {
  display: flex;
  align-items: center;
  justify-content: start;
}

.left-content img {
  height: 50px;
  width: 50px;
  margin-right: 10px;
}

.center-content {
  flex-grow: 1;
  text-align: center;
}

footer a {
  color: #007bff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('your-hero-image.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
}

.hero-text .logo {
  width: 150px;
  margin: 20px 0;
}

.hero-text .cta-button {
  background-color: #888888;
  color: white;
  padding: 10px 20px;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 5px;
}

.hero-text .cta-button:hover {
  background-color: #ff0000;
}
/* Basic styles for the filter container */
.filter-container {
  position: relative;
  display: inline-block;
  margin-left: 15px; /* Optional: To space it out from other elements */
  margin-right: 15px;
}

/* Initially hide the dropdown */
#filterDropdown.hidden {
  display: none;
}

/* Dropdown container styles */
#filterDropdown {
  position: absolute;
  top: 110%; /* Adjusted for spacing */
  left: 0;
  background-color: #181A1B;
  border: 1px solid #3A3E41;
  padding: 15px;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: 200px; /* Adjust the width to your preference */
  max-height: 300px; /* Add a max height for better scrolling behavior */
  overflow-y: auto; /* Enable scrolling if needed */
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

/* Optionally, style for the toggle button */
#filterToggle {
  padding: 8px 12px;
  font-size: 14px;
  background-color: #1F2122;
  border: 1px solid #3E4446;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover effect for the filter button */
#filterToggle:hover {
  background-color: #2A2D2F;
}

/* Checkbox styling inside the dropdown */
#filterDropdown input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #646464; /* Custom checkbox color */
}

/* Checkbox label style */
#filterDropdown label {
  display: block;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s ease;
  color: #ccc;
}

/* Hover effect on the labels */
#filterDropdown label:hover {
  color: #909090; /* Highlight on hover */
}

/* Basic styling for tags */
#filterDropdown .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#filterDropdown .tags .tag {
  background-color: #f0f0f0;
  border-radius: 15px;
  padding: 5px 12px;
  font-size: 12px;
  color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover effect on tags */
#filterDropdown .tags .tag:hover {
  background-color: #ddd;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  /* Adjusting filter button */
  #filterToggle {
    padding: 10px;
    font-size: 16px;
  }

  /* Adjust the dropdown width and padding for mobile */
  #filterDropdown {
    width: 100%; /* Take full width */
    padding: 10px;
  }

  /* Stack the checkboxes on mobile */
  #filterDropdown label {
    padding: 8px 0;
  }
}

footer .right-content img {
  max-width: 50px;  /* Adjust this value based on what looks best */
  height: auto;     /* Keeps the aspect ratio of the images intact */
  margin-right: 10px; /* Adds some space between the images */
}


.similar-to img {
  width: 100px;
}
.similar-to {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}



#chat-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 500px;
  display: none;
  flex-direction: column;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: 'Segoe UI', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#chatLog {
  flex: 1;
  max-height: 300px;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start; 
  min-height: 300px; 
}

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  word-wrap: break-word;
  white-space: pre-wrap;
  transition: background 0.3s ease;
}

.message.user {
  align-self: flex-end;
  background: #e9e9e9;
  color: black;
}

.message.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4e4e4e, #2c2c2c);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#chat-toggle:hover {
  background: linear-gradient(135deg, #666, #444);
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}


/* Chat Input Area */
.chat-input-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.chat-input-area input {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  border: none;
  border-radius: 6px;
  outline: none;
}

.chat-input-area input:focus {
  background: rgba(255, 255, 255, 0.1);
}

.chat-input-area button {
  padding: 8px 16px;
  font-size: 14px;
  background: #444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-input-area button:hover {
  background: #666;
}



.loader {
  display: flex;
  align-items: center;
}

.bar {
  display: inline-block;
  width: 3px;
  height: 20px;
  background-color: rgba(255, 255, 255, .5);
  border-radius: 10px;
  animation: scale-up4 1s linear infinite;
}

.bar:nth-child(2) {
  height: 35px;
  margin: 0 5px;
  animation-delay: .25s;
}

.bar:nth-child(3) {
  animation-delay: .5s;
}

@keyframes scale-up4 {
  20% {
    background-color: #ffff;
    transform: scaleY(1.5);
  }

  40% {
    transform: scaleY(1);
  }
}
#chat-toggle img {
  width: 30px;
}