/* ===================================================================
   story.fun — Premium Author & Book Showcase Styling
   Author: Arvind Sunil (amazon.com/author/arvindsunil)
   =================================================================== */

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

:root {
  --bg-primary: #080b11;
  --bg-secondary: #0f172a;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(28, 38, 64, 0.9);
  --bg-modal: #0d1322;
  
  --gold-primary: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --crimson-glow: rgba(220, 38, 38, 0.25);
  --emerald-glow: rgba(16, 185, 129, 0.25);
  
  --amazon-orange: #ff9900;
  --amazon-orange-hover: #e68a00;
  --gumroad-pink: #ff90e8;
  --gumroad-hover: #ff70e0;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  
  --font-serif: 'Playfair Display', 'Cinzel', serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hindi: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif;
  
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(220, 38, 38, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================================
   PROMO TICKER (Live Kindle Promotions Alert Bar)
   =================================================================== */
.promo-bar {
  background: linear-gradient(90deg, #b45309 0%, #dc2626 50%, #b45309 100%);
  background-size: 200% auto;
  animation: gradientShift 6s ease infinite;
  color: #ffffff;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 100;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.promo-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.promo-tag-pill {
  background: #000;
  color: #fbbf24;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.promo-cta-btn {
  background: #ffffff;
  color: #111827;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.promo-cta-btn:hover {
  background: #fbbf24;
  color: #000;
  transform: translateY(-1px);
}

/* ===================================================================
   NAVIGATION HEADER
   =================================================================== */
.main-header {
  position: sticky;
  top: 0;
  background: rgba(8, 11, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 90;
  transition: all 0.3s ease;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-symbol {
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: #000;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-title span {
  color: var(--gold-primary);
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.author-btn-pill {
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid rgba(255, 153, 0, 0.4);
  color: var(--amazon-orange);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.author-btn-pill:hover {
  background: var(--amazon-orange);
  color: #000;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
}

.lang-switch {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch:hover {
  border-color: var(--gold-primary);
}

/* ===================================================================
   HERO SPOTLIGHT SECTION (Flagship Book Feature)
   =================================================================== */
.hero-spotlight {
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-spotlight::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.15) 0%, rgba(220, 38, 38, 0.06) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* 3D Book Showcase Mockup */
.hero-book-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
}

.book-card-3d-wrap {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.book-card-3d-wrap:hover {
  transform: rotateY(-8deg) rotateX(4deg) translateY(-8px);
}

.book-3d-shadow {
  position: absolute;
  bottom: -25px;
  left: 5%;
  width: 90%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 75%);
  filter: blur(10px);
}

.hero-cover-img {
  width: 320px;
  height: auto;
  border-radius: 8px 14px 14px 8px;
  box-shadow: 
    -6px 6px 18px rgba(0, 0, 0, 0.6),
    0 20px 40px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
}

.hero-dual-covers-toggle {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  display: flex;
  gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  z-index: 5;
}

.cover-btn-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cover-btn-tab.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.series-badge {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #f87171;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #fbbf24;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.hero-subtitle {
  font-family: var(--font-hindi);
  font-size: 1.35rem;
  color: #fbbf24;
  font-weight: 600;
  line-height: 1.4;
}

.hero-synopsis {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Purchase Buttons */
.btn-kindle {
  background: var(--amazon-orange);
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 153, 0, 0.35);
  transition: all 0.25s ease;
}

.btn-kindle:hover {
  background: #ffaa1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 153, 0, 0.5);
}

.btn-gumroad {
  background: var(--gumroad-pink);
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 144, 232, 0.35);
  transition: all 0.25s ease;
}

.btn-gumroad:hover {
  background: #ffa8ed;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 144, 232, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.08);
}

/* ===================================================================
   FILTER & CATALOG SECTION
   =================================================================== */
.catalog-section {
  padding: 4.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-subtitle-tag {
  color: var(--gold-primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Filter Controls */
.filter-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.8rem;
  align-items: center;
}

.series-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.filter-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill:hover {
  color: #ffffff;
}

.filter-pill.active {
  background: var(--gold-gradient);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.search-and-toggles {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 580px;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  background: rgba(18, 26, 43, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--gold-primary);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
}

/* ===================================================================
   BOOK CARD GRID
   =================================================================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-card);
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.book-card-cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 135%; /* Aspect ratio ~ 1:1.35 */
  background: #050811;
  overflow: hidden;
  cursor: pointer;
}

.book-card-cover-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-card:hover .book-card-cover-wrap img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  z-index: 2;
  text-transform: uppercase;
}

.card-badge.upcoming {
  background: rgba(147, 51, 234, 0.85);
  color: #fff;
  border-color: rgba(147, 51, 234, 0.6);
}

.card-badge.promo {
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.6);
}

.book-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-series-tag {
  font-size: 0.74rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.card-book-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.card-book-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}

.card-pricing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.card-price-item {
  display: flex;
  flex-direction: column;
}

.card-price-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.card-price-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.card-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-card-kindle {
  background: var(--amazon-orange);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}

.btn-card-kindle:hover {
  background: #ffaa2b;
}

.btn-card-gumroad {
  background: var(--gumroad-pink);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}

.btn-card-gumroad:hover {
  background: #ffa8ed;
}

.btn-card-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-card-preview:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* ===================================================================
   AUTHOR SPOTLIGHT SECTION (Meet Arvind Sunil)
   =================================================================== */
.author-spotlight {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(15, 23, 42, 0.6) 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.author-card-panel {
  background: rgba(18, 26, 43, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.author-card-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.author-photo-wrap {
  text-align: center;
}

.author-photo-img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.3);
}

.author-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid rgba(255, 153, 0, 0.5);
  color: var(--amazon-orange);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.author-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.author-tag {
  color: var(--gold-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.author-title-sub {
  font-size: 1.1rem;
  color: #fbbf24;
  font-weight: 500;
}

.author-bio-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.author-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0.5rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.author-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================================================
   BOOK MODAL / SYNOPSIS DRAWER
   =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-modal);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--shadow-glow);
  padding: 2.5rem;
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.modal-close-btn:hover {
  background: rgba(220, 38, 38, 0.8);
}

.modal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
}

.modal-cover-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.modal-subtitle {
  font-size: 1rem;
  color: #fbbf24;
}

.modal-synopsis {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.modal-highlights li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-highlights li::before {
  content: '✦';
  color: var(--gold-primary);
}

.modal-cta-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.main-footer {
  background: #05070c;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* ===================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   =================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-spotlight::before {
    width: 100%;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badge-row {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .author-card-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-photo-wrap {
    margin-bottom: 1rem;
  }

  .author-info-wrap {
    align-items: center;
  }

  .author-stats-row {
    justify-content: center;
  }

  .author-actions-row {
    justify-content: center;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-cta-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
