/* ==========================================
   1. ROOT VARIABLES & GLOBAL RESET
   ========================================== */
:root {
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-yellow: #facc15;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark-accent: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-light: #e2e8f0;
  --shadow-smooth: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Base Wrapper & Layouts */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow {
  max-width: 850px;
}

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

.margin-top-40 {
  margin-top: 40px;
}

/* ==========================================
   2. TOP BAR & HERO SECTION
   ========================================== */
.top-bar {
  background: linear-gradient(90deg, #0f172a, #312e81, #0f172a);
  color: #ffffff;
  padding: 12px 15px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.text-glow {
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

.hero {
  padding: 70px 0 50px;
  text-align: center;
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
  100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  color: #ffffff;
  margin: 15px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.highlight-text {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 750px;
  margin: 0 auto 30px;
}

/* Hero Cover Fan Display (আগের মতোই থাকবে) */
.hero-cover-fan {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 35px 0;
}

.fan-card img {
  width: 130px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 0 8px;
}

.fan-card.main-card img {
  width: 170px;
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.4);
}

.fan-card img:hover {
  transform: translateY(-10px) scale(1.08);
  z-index: 10;
}

/* Timer */
.timer-card {
  background: rgba(249, 115, 22, 0.1);
  border: 1px dashed #f97316;
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 25px;
}

.timer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fb923c;
  margin-right: 8px;
}

#countdown-timer {
  display: inline;
  font-weight: 800;
  color: #f97316;
}

/* CTA Styles */
.cta-wrap {
  margin: 20px 0 10px;
}

.cta {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 18px 40px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.55);
}

.cta.full {
  width: 100%;
  margin-top: 15px;
}

.pulse {
  animation: buttonPulse 2.5s infinite;
}

@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.micro {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* ==========================================
   3. PLATFORMS & SECTIONS
   ========================================== */
.platforms-bar {
  background: var(--bg-dark-accent);
  color: #ffffff;
  padding: 25px 0;
  text-align: center;
}

.platforms-bar p {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.platform-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-weight: 700;
}

.platform-tags span {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.section {
  padding: 70px 0;
}

.eyebrow {
  color: #6366f1;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.subtext {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-card);
  padding: 30px 22px;
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow-smooth);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Catalog Showcase Grid (নিচের ক্যাটালগ) */
.catalog-section {
  background: #f1f5f9;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 35px;
}

.book-item {
  background: var(--bg-card);
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-smooth);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.book-item:hover {
  transform: translateY(-6px);
  border-color: #a855f7;
}

.book-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.book-item h4 {
  font-size: 0.9rem;
  margin: 10px 0 6px;
  color: var(--text-primary);
}

.tag {
  font-size: 0.75rem;
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 8px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
}

/* ==========================================
   4. REVIEW ARTICLE & RATING
   ========================================== */
.rating-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-radius: 18px;
  margin: 30px 0 25px;
  box-shadow: 0 10px 25px rgba(30, 27, 75, 0.2);
}

.rating-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.rating-sub {
  font-size: 0.85rem;
}

.rating-score {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: right;
}

.verdict-badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.content-block-card {
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-smooth);
  text-align: left;
}

.content-block-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.content-block-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.content-block-card ul {
  padding-left: 20px;
  margin-top: 10px;
}

.content-block-card li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ==========================================
   5. FAQ & BOTTOM CLAIM BANNER
   ========================================== */
.faq-item {
  background: var(--bg-card);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 18px 22px;
  border-left: 5px solid #6366f1;
  box-shadow: var(--shadow-smooth);
  text-align: left;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1.05rem;
  outline: none;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.claim-banner {
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  color: #ffffff;
  border-radius: 24px;
  padding: 45px 25px;
  text-align: center;
  margin-top: 45px;
  box-shadow: 0 20px 40px rgba(49, 46, 129, 0.3);
}

/* ==========================================
   6. FOOTER & MODAL POPUP
   ========================================== */
.footer {
  background: var(--bg-dark-accent);
  color: #94a3b8;
  padding: 40px 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  max-width: 600px;
  margin: 10px auto;
}

.copyright {
  margin-top: 15px;
}

/* Modal Popup Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex !important;
}

.modal-card {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 24px;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-card .close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
}

.modal-card label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.modal-card input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
}

.modal-card input:focus {
  border-color: #6366f1;
}

/* ==========================================
   7. 100% RESPONSIVE MEDIA QUERIES
   ========================================== */
@media screen and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .wrap, .wrap.narrow {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section {
    padding: 45px 0;
  }

  .hero {
    padding: 45px 0 35px;
  }

  .hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  .hero-copy {
    font-size: 1rem;
  }

  /* উপরের ৫টি ফ্যান কার্ড কভারের মোবাইল লুক (আগের মতো অক্ষত) */
  .hero-cover-fan {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .fan-card img {
    width: 55px !important;
    margin: 0 2px !important;
  }

  .fan-card.main-card img {
    width: 85px !important;
  }

  /* --- নিচের ১৫টি কভার ক্যাটালগ মোবাইলে একটার নিচে একটা দেখাবে --- */
  .book-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 16px !important;
  }

  .book-item {
    max-width: 280px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .rating-box {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }

  .rating-score {
    text-align: center !important;
  }

  .cta {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 20px !important;
    font-size: 1.05rem !important;
  }

  .modal-card {
    width: 92% !important;
    padding: 22px 18px !important;
  }

  .platform-tags span {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media screen and (max-width: 480px) {
  .top-bar {
    font-size: 0.85rem;
  }
}