/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Body ---------- */
body {
  font-family: 'Merriweather', serif;
  background-color: #0c1829;
  color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

/* ---------- Header ---------- */

/* ---------- Navbar + Search ---------- */

/* ---------- Logo ---------- */

/* ---------- Hero & Sections ---------- */
body > .hero,
body > section {
  padding-top: 100px;
}

/* ---------- Genre Slider ---------- */
.genre-slider {
  margin: 60px auto;
  width: 95%;
}

.genre-slider h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 18px;
  text-align: left;
}

.slider-container {
  position: relative;
  overflow: hidden;
  padding: 0 16px;
}

.slider-track {
  display: flex;
  transition: transform 0.45s ease;
}

/* ---------- Card Style ---------- */
.genre-card {
  position: relative;
  flex: 0 0 18%;
  margin: 0 12px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #162235;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.genre-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Title Overlay */
.genre-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 15px 15px;
  background: linear-gradient(to top, rgba(10, 18, 32, 0.95) 0%, rgba(10, 18, 32, 0.7) 60%, transparent 100%);
  color: #e2e8f0;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  transition: color 0.3s ease, padding 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Hover Effects */
.genre-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(244, 208, 63, 0.15);
  border-color: rgba(244, 208, 63, 0.3);
}

.genre-card:hover img {
  transform: scale(1.08);
}

.genre-card:hover h3 {
  color: #f4d03f;
  padding-bottom: 20px;
}

/* ---------- Slider Buttons ---------- */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 27, 45, 0.8);
  color: #f4d03f;
  border: 1px solid rgba(244, 208, 63, 0.3);
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 20;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  visibility: visible;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.slider-container:hover .prev-btn,
.slider-container:hover .next-btn {
  opacity: 1;
  visibility: visible;
}

.prev-btn { left: 5px; }
.next-btn { right: 5px; }

.prev-btn:hover, .next-btn:hover {
  background: #f4d03f;
  color: #0f1b2d;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(244, 208, 63, 0.4);
}

/* ---------- Main spacing (fix navbar overlap) ---------- */
main {
  margin-top: 85px;
}

/* ---------- Footer (now controlled by shared-footer.css) ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .genre-card { flex: 0 0 30%; }
}
@media (max-width: 768px) {
  .genre-card { flex: 0 0 48%; }
  .prev-btn { left: 8px; }
  .next-btn { right: 8px; }
}
@media (max-width: 480px) {
  .genre-card { flex: 0 0 calc(100% - 10px); }
  .slider-container { padding: 0 6px; }
}

/* ---------- PURE MOBILE RESPONSIVE FIX (<=517px) ---------- */
@media (max-width: 517px) {

  /* ---------- HEADER ---------- */

  /* Hide "Books & Memories" text on mobile */

  /* Navbar and search alignment */

  main {
    margin-top: 60px;
  }

  /* ---------- GENRE CARD + BUTTON FIX ---------- */
  .slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 10px;
  }

  .slider-track {
    display: flex;
    transition: transform 0.4s ease;
  }

  .genre-card {
    flex: 0 0 calc(100% - 10px);
    margin: 0 5px;
    position: relative;
  }

  .genre-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
  }

  .genre-card h3 {
    font-size: 0.9rem;
    padding: 15px 10px 10px;
  }

  /* Left & Right buttons */
  .prev-btn,
  .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    transition: 0.3s;
  }

  /* Move buttons fully inside the card image area to look intentional */
  .prev-btn { left: 20px; right: auto; }
  .next-btn { right: 20px; left: auto; }

  .prev-btn:hover,
  .next-btn:hover {
    background: #f4d03f;
    color: #000;
  }


}

/* ============================================================
   ANIMATION STYLES - Genres Page
   ============================================================ */

/* Scroll-Reveal for Slider Sections */
.genre-slider {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.genre-slider.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated Search Bar Expansion */

/* Genre Heading accent line */
.genre-slider h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.genre-slider h2::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: #f4d03f;
  border-radius: 2px;
  margin-top: 6px;
  transition: width 0.6s ease;
}
.genre-slider.visible h2::after {
  width: 60px;
}

/* ============================================================
   MOBILE MENU OVERRIDE
   ============================================================ */

@media (max-width: 768px) {
}

/* ========================================================
   ULTRA-PREMIUM LUXURY UPGRADES
   ======================================================== */

/* 1. Cinematic Film Grain Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Shimmering Gold Gradient Typography */
h1, h2, .logo span, .fiction-section h2, .genre-slider h2, .about-container h1, .contact-section h1 {
  background: linear-gradient(135deg, #f4d03f 0%, #ffe993 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3. Luxury Buttons & Glass Deep Glow */
.btn-primary, button[type="submit"], .page {
  background: linear-gradient(135deg, #f4d03f 0%, #e0bb30 100%) !important;
  color: #0a1220 !important;
  box-shadow: 0 4px 15px rgba(244, 208, 63, 0.2), inset 0 2px 4px rgba(255,255,255,0.4) !important;
  border: none !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover, button[type="submit"]:hover, .page:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(244, 208, 63, 0.4), inset 0 2px 4px rgba(255,255,255,0.6) !important;
}

/* 4. Custom Cursor CSS */

@media (max-width: 768px) {
  body { cursor: auto; }
  .custom-cursor { display: none !important; }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: #f4d03f;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(244, 208, 63, 0.6);
  mix-blend-mode: screen;
}

.custom-cursor.hover {
  width: 45px;
  height: 45px;
  background-color: rgba(244, 208, 63, 0.15);
  border: 1px solid #f4d03f;
  box-shadow: 0 0 20px rgba(244, 208, 63, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}


