/* css/styles.css */
body {
  font-family: 'Inter', sans-serif;
}

/* Ensure page starts at top */
html, body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Card hover effect */
.book-card, .podcast-card, .movie-card, .video-game-card, .music-card, .timeline-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover, .podcast-card:hover, .movie-card:hover, .video-game-card:hover, .music-card:hover, .timeline-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Image styling for all sections */
.book-card img, .podcast-card img, .movie-card img, .video-game-card img, .music-card img {
  width: 100%;
  height: 192px;
  max-width: 300px;
  object-fit: contain;
  border: 2px solid #facc15;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Sort Order of Interviews drop down */
#sortOrder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23facc15' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1.25rem center;
  background-repeat: no-repeat;
  background-size: 1.25em;
  padding-right: 3rem;
}

/* Timeline styling for interviews */
.timeline-item {
  position: relative;
  border-left: 4px solid #facc15;
  padding-left: 20px;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  background: #facc15;
  border-radius: 50%;
}

/* Proof links styling */
.proof-links {
  margin-top: 1rem;
}

.proof-links li {
  margin-bottom: 0.5rem;
}

.proof-links a {
  color: #facc15;
  text-decoration: underline;
}

.proof-links a:hover {
  color: #fde047;
}


/* Miscellaneous-book-links styling */
.misc-link {
  color: #facc15; /* Gold for luxurious aesthetic */
  text-decoration: underline;
  font-size: 1rem; /* 16px, matches body text */
  transition: color 0.3s ease;
}

.misc-link:hover {
  color: #fde047; /* Lighter gold on hover */
}

/* Optional: subtle hover effect on the row */
#misc-book-links-list li:hover {
  background-color: rgba(250, 204, 21, 0.05);
  border-radius: 4px;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

/* Tag styling */
.tag {
  display: inline-block;
  background: #facc15;
  color: #1f2937;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

/* Book Subtitle styling- changed this and this " ${item.subtitle ? `<p class="text-base italic text-white">${item.subtitle}</p>` : ""} "  and " ${book.subtitle ? `<p class="text-base italic text-white">${book.subtitle}</p>` : ""}"  to  " ${item.subtitle ? `<p class="subtitle ">${item.subtitle}</p>` : ""} " and " ${book.subtitle ? `<p class="subtitle ">${book.subtitle}</p>` : ""} " in book.js */
/* for reference: book bold tittle = 20px; and author = 14px according to Grok"*/
.subtitle {
  font-size: 16px; /* Matches text-base (16px) */
  font-style: italic; /* change to italic or normal or ? */
  color: #ffffff; /* White for contrast, luxurious feel */
  margin-bottom: 0.5rem; /* Space before author */
  line-height: 1.2; /* Tight line height for elegance */
  word-wrap: break-word; /* Prevent overflow */
}

/* Hide tags class */
.tags-hidden .tag {
  display: none;
}

/* Toggle switch styling */
.toggle-tags-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-tags-container label {
  color: #facc15;
  font-size: 14px !important; /* Fixed size, non-responsive */
  line-height: 1; /* Prevent scaling */
  font-family: 'Inter', sans-serif !important; /* Explicit font */
}

/* Ensure label doesn't inherit responsive styles */
#books-controls .toggle-tags-container label {
  font-size: 14px !important; /* Higher specificity */
}

.toggle-tags-switch {
  position: relative;
  display: inline-block;
  width: 2.5rem; /* Default for desktop */
  height: 1.25rem;
}

.toggle-tags-switch input {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Cover full toggle area */
  height: 100%;
  z-index: 2; /* Ensure input is clickable */
  cursor: pointer;
}

.toggle-tags-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #4b5563;
  border-radius: 1.25rem;
  transition: background 0.3s ease;
  z-index: 1; /* Below input */
}

.toggle-tags-slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 0.125rem;
  bottom: 0.125rem;
  background: #facc15;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-tags-switch input:checked + .toggle-tags-slider {
  background: #facc15;
}

.toggle-tags-switch input:checked + .toggle-tags-slider:before {
  transform: translateX(1.25rem);
  background: #1f2937;
}

/* Responsive toggle switch */
@media (max-width: 1024px) {
  .toggle-tags-switch {
    width: 2.2rem; /* Tablet and smaller laptops */
    height: 1.1rem;
  }
  .toggle-tags-slider {
    border-radius: 1.1rem;
  }
  .toggle-tags-slider:before {
    height: 0.9rem;
    width: 0.9rem;
    left: 0.1rem;
    bottom: 0.1rem;
  }
  .toggle-tags-switch input:checked + .toggle-tags-slider:before {
    transform: translateX(1.1rem);
  }
}

@media (max-width: 768px) {
  .toggle-tags-switch {
    width: 2rem; /* Tablets */
    height: 1rem;
  }
  .toggle-tags-slider {
    border-radius: 1rem;
  }
  .toggle-tags-slider:before {
    height: 0.8rem;
    width: 0.8rem;
    left: 0.1rem;
    bottom: 0.1rem;
  }
  .toggle-tags-switch input:checked + .toggle-tags-slider:before {
    transform: translateX(1rem);
  }
}

@media (max-width: 480px) {
  .toggle-tags-switch {
    width: 1.6rem; /* Mobile */
    height: 0.8rem;
  }
  .toggle-tags-slider {
    border-radius: 0.8rem;
  }
  .toggle-tags-slider:before {
    height: 0.6rem;
    width: 0.6rem;
    left: 0.1rem;
    bottom: 0.1rem;
  }
  .toggle-tags-switch input:checked + .toggle-tags-slider:before {
    transform: translateX(0.8rem);
  }
}

/* Modal styling */
#series-modal {
  transition: opacity 0.3s ease;
}

#series-modal .modal-book-card {
  background: #1f2937;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #facc15;
}


/* Playfair Display for headings */
/*.font-playfair {
  font-family: 'Playfair Display', serif;
}*/