/* ==========================================================================
   LEAME OFFICIAL PREMIUM DESIGN SYSTEM
   Theme: Midnight Metallic & Amber Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg-dark: #070708;
  --bg-card: #121316;
  --bg-card-hover: #1c1d22;
  --gold-primary: #D4AF37;
  --gold-secondary: #FFD700;
  --gold-glow: rgba(212, 175, 55, 0.15);
  
  --text-primary: #FFFFFF;
  --text-secondary: #A0A5B5;
  --text-muted: #626675;
  
  --glass-bg: rgba(18, 19, 22, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-focus: rgba(212, 175, 55, 0.3);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #252730;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

/* Background Glow Blobs */
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(7, 7, 8, 0) 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

.glow-1 { top: -150px; right: -100px; }
.glow-2 { top: 600px; left: -200px; }
.glow-3 { bottom: 100px; right: -100px; }

/* Sticky Premium Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 5%;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 12px 5%;
  background: rgba(7, 7, 8, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.logo-text span {
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-secondary), var(--gold-primary));
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  color: #000000;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-primary);
}

/* PlayStore Badge Button (Footer) */
.playstore-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
  cursor: pointer;
  margin-top: 15px;
}

.playstore-badge-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translateY(-2px);
}

.playstore-badge-btn i {
  font-size: 1.8rem;
  color: var(--gold-primary);
}

.playstore-badge-btn div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.playstore-badge-btn span {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.playstore-badge-btn strong {
  font-size: 0.95rem;
  font-weight: 700;
}

/* PlayStore Hero CTA */
.playstore-hero-cta {
  background: #000000;
  color: var(--text-primary);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.playstore-hero-cta:hover {
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  border-color: var(--gold-secondary);
}

.playstore-hero-cta i {
  color: var(--gold-primary);
}

/* Mobile Nav Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 180px 5% 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.5;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 7, 8, 0.45) 0%, rgba(7, 7, 8, 0.8) 100%);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-app-downloads {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-app-downloads .playstore-badge-btn {
  margin-top: 0;
}

/* Simulated App Mockup (Fantastic Visual) */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-container {
  width: 280px;
  height: 560px;
  border-radius: 40px;
  background: #000;
  border: 12px solid #1a1b20;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 
              0 0 0 1px rgba(255, 255, 255, 0.05),
              0 0 30px var(--gold-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-screen {
  flex: 1;
  background: var(--bg-dark);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 12px;
}

/* Mockup UI Inner Styling */
.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}
.mockup-title {
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--gold-primary);
}
.mockup-shelf {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mockup-carousel {
  height: 150px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%);
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-carousel::after {
  content: 'Leitura Recomendada';
  position: absolute;
  bottom: 8px;
  font-size: 9px;
  color: var(--gold-primary);
  font-weight: bold;
}
.mockup-list {
  display: flex;
  gap: 10px;
  overflow: hidden;
}
.mockup-book {
  width: 70px;
  height: 100px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-book::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-primary);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* Features Section */
.features {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-focus);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-secondary), var(--gold-primary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.5rem;
  margin-bottom: 28px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.feature-list li i {
  color: var(--gold-primary);
}

/* Books Dynamic Section */
.catalog-section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.search-container {
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 14px 24px 14px 50px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px var(--gold-glow);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--gold-primary);
  color: #000000;
  border-color: var(--gold-primary);
  font-weight: bold;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}

@media (min-width: 992px) {
  .books-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-focus);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.book-cover-container {
  aspect-ratio: 9 / 16;
  height: auto;
  overflow: hidden;
  position: relative;
  background: #18191c;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Purchase Ebook Form & Mercado Pago simulated checkout */
.purchase-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

.purchase-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.purchase-input-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.purchase-input {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  transition: var(--transition-fast) !important;
  width: 100%;
  box-sizing: border-box;
}

.purchase-input:focus {
  outline: none;
  border-color: var(--gold-primary) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.mp-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.mp-method-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.mp-method-btn:hover, .mp-method-btn.active {
  border-color: #009EE3;
  background: rgba(0, 158, 227, 0.05);
  box-shadow: 0 0 10px rgba(0, 158, 227, 0.2);
}

.mp-method-btn i {
  font-size: 1.5rem;
  color: #009EE3;
}

.pix-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  border: 1px dashed var(--glass-border);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.pix-qr-code {
  width: 130px;
  height: 130px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

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

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.book-card:hover .book-cover {
  transform: scale(1.05);
}

.book-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.book-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.book-author {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.book-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.book-price {
  font-weight: 700;
  color: var(--gold-secondary);
  font-size: 1.1rem;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-value {
  font-weight: 700;
  color: var(--gold-secondary);
  font-size: 1rem;
}

.price-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blurred-cover {
  filter: blur(18px) grayscale(0.2);
  transform: scale(1.15) !important;
}

.restricted-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.restricted-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
}

.book-actions button {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.book-actions button:hover {
  background: var(--gold-primary);
  color: #000;
}

/* Detail Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-focus);
  border-radius: 24px;
  width: 90%;
  max-width: 800px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-primary);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

.modal-cover {
  height: 100%;
  background: #0d0e12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-details {
  padding: 40px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-details h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-details h4 {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 20px;
}

/* Modal Price and Button Helpers */
.modal-price-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.modal-price-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-secondary);
}

.btn-mp {
  outline: none;
  border: none;
  background: #009EE3 !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(0, 158, 227, 0.3) !important;
}

.btn-mp:hover {
  background: #008cd1 !important;
  box-shadow: 0 6px 20px rgba(0, 158, 227, 0.45) !important;
}

.modal-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-meta-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.modal-meta-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.modal-meta-item strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Footer Section */
footer {
  background: #050506;
  border-top: 1px solid var(--glass-border);
  padding: 80px 5% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 50px;
}

.footer-about p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 20px;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content p {
    margin: 0 auto 40px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-mockup {
    order: -1;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Modal Rolagem Conjunta & Capa Completa */
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  
  .modal-cover {
    height: auto;
    background: transparent;
    padding: 30px 20px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .modal-cover img {
    max-width: 200px;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  }
  
  .modal-details {
    padding: 20px 24px;
    max-height: none;
    overflow-y: visible;
  }
  
  .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #070708;
    flex-direction: column;
    padding: 40px 24px;
    align-items: flex-start;
    gap: 24px;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  nav.active {
    left: 0;
  }
  
  .hero {
    padding: 120px 20px 60px;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile Adjustments for Price/Buy Button Stack and 2-Column Catalog */
@media (max-width: 768px) {
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }
  
  .modal-footer > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .modal-price-value {
    font-size: 1.25rem !important;
  }
  
  #btn-modal-action {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .book-card {
    border-radius: 12px;
  }
  
  .book-cover-container {
    aspect-ratio: 2 / 3 !important;
  }
  
  .book-info {
    padding: 12px;
  }
  
  .book-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .book-author {
    font-size: 0.75rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .book-badge {
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    font-size: 0.65rem;
    border-radius: 4px;
  }
  
  .book-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 8px;
  }
  
  .book-price {
    font-size: 0.85rem;
  }
  
  .book-actions {
    width: 100%;
  }
  
  .book-actions button {
    width: 100%;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* Premium Age Filters Styling */
.age-filters-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.age-filter-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 8px;
}

.age-filter-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.age-filter-chip:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.age-filter-chip.active {
  color: #000;
  font-weight: bold;
}

.age-filter-chip.active[data-age="all"] { background: var(--gold-primary); border-color: var(--gold-primary); }
.age-filter-chip.active[data-age="0"] { background: #2ecc71; border-color: #2ecc71; color: #fff; }
.age-filter-chip.active[data-age="10"] { background: #f1c40f; border-color: #f1c40f; color: #000; }
.age-filter-chip.active[data-age="12"] { background: #e67e22; border-color: #e67e22; color: #fff; }
.age-filter-chip.active[data-age="14"] { background: #d35400; border-color: #d35400; color: #fff; }
.age-filter-chip.active[data-age="16"] { background: #c0392b; border-color: #c0392b; color: #fff; }
.age-filter-chip.active[data-age="18"] { background: #e74c3c; border-color: #e74c3c; color: #fff; }

/* Language Switcher Dropdown Style */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin: 0 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  min-width: 130px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.lang-dropdown a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
}

.lang-dropdown a.active {
  color: var(--gold-primary);
  font-weight: bold;
}

/* ==========================================================================
   NEW MODERN WEBSITE DESIGN CLASSES
   ========================================================================== */

/* Shimmer Loader Effect */
.shimmer-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  height: 420px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.shimmer-cover {
  width: 100%;
  height: 60%;
  background: linear-gradient(90deg, #121316 25%, #1c1d22 50%, #121316 75%);
  background-size: 200% 100%;
  animation: shimmer-animation 1.5s infinite;
}
.shimmer-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shimmer-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #121316 25%, #1c1d22 50%, #121316 75%);
  background-size: 200% 100%;
  animation: shimmer-animation 1.5s infinite;
}
.shimmer-line.title { width: 85%; height: 18px; }
.shimmer-line.author { width: 55%; }
.shimmer-line.price { width: 40%; margin-top: auto; }
@keyframes shimmer-animation {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* App Store Navigation & Layout Helpers */
.store-nav-link {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition-smooth);
}
.store-nav-link:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}
.header-store-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Realistic Smartphone Frame Mockup with 3D Effect */
.phone-mockup-frame {
  width: 290px;
  height: 590px;
  border-radius: 44px;
  background: #000000;
  border: 12px solid #1c1d22;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              0 0 35px var(--gold-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  perspective: 1000px;
}
.phone-mockup-frame:hover {
  transform: translateY(-10px) rotateY(-8deg) rotateX(6deg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 
              0 0 45px rgba(212, 175, 55, 0.25);
}
.phone-mockup-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 45%);
  transform: translateX(-100%);
  transition: transform 0.7s ease-in-out;
  z-index: 10;
  pointer-events: none;
}
.phone-mockup-frame:hover::after {
  transform: translateX(50%);
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 22px;
  background: #1c1d22;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 15;
}
.phone-notch::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 7px;
  width: 40px;
  height: 4px;
  background: #0d0e12;
  border-radius: 2px;
}
.phone-notch::after {
  content: '';
  position: absolute;
  right: 28px;
  top: 5px;
  width: 8px;
  height: 8px;
  background: #252730;
  border-radius: 50%;
}
.phone-screen {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Dedicated Book Details Page CSS */
.book-details-page-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5% 80px;
}
.book-details-container {
  display: block;
  width: 100%;
}

/* Age Gate Custom Inline CSS */
.age-gate-container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.age-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border-focus);
  border-radius: 24px;
  padding: 45px 30px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  animation: fadeIn 0.4s ease;
}
.age-gate-icon {
  width: 68px;
  height: 68px;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #e74c3c;
  font-size: 1.6rem;
}
.age-gate-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 14px;
  color: #fff;
}
.age-gate-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.age-gate-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Horizontally scrollable filter chips */
.filter-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 5px 20px 5px;
  margin-bottom: 25px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}
.filter-tab {
  flex: 0 0 auto;
  padding: 10px 22px !important;
  font-size: 0.92rem !important;
  border-radius: 50px !important;
}

.age-filters-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 5px 5px 15px 5px;
  margin-bottom: 25px;
  scrollbar-width: none;
  align-items: center;
}
.age-filters-row::-webkit-scrollbar {
  display: none;
}
.age-filter-chip {
  flex: 0 0 auto;
  padding: 8px 18px !important;
  border-radius: 50px !important;
}

/* Verified Publisher Badge */
.verified-publisher-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 14px;
  padding: 12px 18px;
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
}
.verified-publisher-badge i {
  color: var(--gold-primary);
  font-size: 1.3rem;
}
.verified-publisher-badge div {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.verified-publisher-badge span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.verified-publisher-badge strong {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
  margin-top: 2px;
}

/* Author Profile Card in details */
.author-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 22px;
  margin-top: 35px;
  margin-bottom: 35px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}
.author-profile-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.author-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.author-profile-info {
  flex: 1;
}
.author-profile-info h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-profile-info h4 span.verified-badge {
  font-size: 0.7rem;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}
.author-profile-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-profile-card i.arrow-icon {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  margin-left: auto;
}
.author-profile-card:hover i.arrow-icon {
  color: var(--gold-primary);
  transform: translateX(4px);
}

/* Author Page Container styles */
.author-header-card {
  display: flex;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 45px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  margin-bottom: 50px;
  align-items: center;
  text-align: left;
}
.author-large-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.author-header-details {
  flex: 1;
}
.author-header-details h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: #fff;
  margin: 0 0 12px 0;
}
.author-header-details p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .book-details-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }
  .details-page-info h2 {
    font-size: 2rem;
    text-align: center;
  }
  .details-page-info h3 {
    text-align: center;
  }
  .details-page-cover img {
    max-width: 200px;
  }
  .author-header-card {
    flex-direction: column;
    text-align: center;
    padding: 35px 20px;
    gap: 20px;
  }
  .author-large-avatar {
    width: 100px;
    height: 100px;
  }
  .author-header-details h2 {
    font-size: 1.8rem;
  }
  .author-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }
  .author-profile-card i.arrow-icon {
    display: none;
  }
}

/* Recommendation Badge on cover */
.recommendation-badge {
  position: absolute;
  top: 52px;
  right: 16px;
  background: rgba(212, 175, 55, 0.95);
  color: #000;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.recommendation-badge i {
  font-size: 0.75rem;
}

/* Fallback letter-based avatar circles */
.author-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.author-avatar-placeholder-large {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  flex-shrink: 0;
  font-family: var(--font-sans);
}

/* Verified Publishers Section in catalog */
.verified-publishers-section {
  margin-bottom: 45px;
  width: 100%;
}
.publishers-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 5px 20px 5px;
}
.publishers-scroll-container::-webkit-scrollbar {
  display: none;
}
.publisher-card {
  flex: 0 0 220px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.publisher-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}
.publisher-logo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  border: 1px solid var(--gold-primary);
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.publisher-card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}
.publisher-card-info strong {
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.publisher-card-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Filter Drawer Overlay and Panel */
.filter-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.filter-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: rgba(18, 19, 22, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-drawer-overlay.active .filter-drawer {
  transform: translateX(0);
}

.filter-drawer-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-drawer-header h3 i {
  color: var(--gold-primary);
}
.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.close-drawer-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.filter-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-group label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
#drawer-categories-grid, #drawer-sort-grid {
  grid-template-columns: repeat(2, 1fr);
}
.filter-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}
.filter-option-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.filter-option-btn.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 600;
}

.filter-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
  background: rgba(13, 14, 18, 0.5);
}
.filter-drawer-footer button {
  padding: 12px;
  font-size: 0.95rem;
}

/* ==========================================================================
   RATING WIDGET & SLIDER COMPONENT STYLE
   ========================================================================== */

/* Heart slider inside filter drawer */
.heart-slider-container {
  position: relative;
  width: 100%;
  height: 28px;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.heart-slider-gradient {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #8F9BB3 0%, #00E096 33.3%, #FF9F1C 66.6%, #FF3D71 100%);
  pointer-events: none;
  z-index: 1;
}

.heart-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  outline: none;
  position: relative;
  z-index: 2;
  margin: 0;
}

/* Chrome, Safari, Opera, Edge */
.heart-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0F0E13;
  border: 2px solid var(--thumb-color, rgb(143,155,179));
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease;
}

.heart-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
}

/* Firefox */
.heart-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0F0E13;
  border: 2px solid var(--thumb-color, rgb(143,155,179));
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease;
}

.heart-slider::-moz-range-thumb:active {
  transform: scale(1.15);
}

/* Details page elements */
.details-blur-bg {
  pointer-events: none;
  user-select: none;
}

/* Hover scales for rating bar thumb */
.book-rating-bar:hover div:last-child {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.book-rating-bar div:last-child {
  transition: transform 0.2s ease, left 0.3s ease;
}




