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

:root {
  --bg-color: #ebfbf1;
  --text-main: #0b422a;
  --text-muted: #4b6b5a;
  --primary-btn: #10b981;
  --primary-btn-hover: #059669;
  --red-banner: #ea3b2d;
  --gold-accent: #e5b022;
  --white: #ffffff;
  --border-light: rgba(11, 66, 42, 0.1);
  --card-bg: #ffffff;
  --faq-bg: #ffffff;
  --smart-bg: #f0fdf4;
}

body.dark-mode {
  --bg-color: #0B1120;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.1);
  --card-bg: #1e293b;
  --faq-bg: #1e293b;
  --smart-bg: rgba(16, 185, 129, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-main);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Top Red Banner */
.top-banner {
  background-color: var(--red-banner);
  color: white;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 100;
}

/* Nav Header */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}
.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}
.theme-toggle:hover {
  background: var(--border-light);
}

/* Sticky Header (Appears on Scroll) */
.sticky-header {
  position: fixed;
  top: -100px; /* Hidden initially */
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  padding: 15px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  z-index: 99;
  text-align: center;
  transition: top 0.3s ease, background-color 0.3s ease;
  border-bottom: 1px solid var(--border-light);
}
.sticky-header.visible {
  top: 0;
}
.btn-grab {
  background-color: var(--primary-btn);
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  transition: background 0.3s;
}
.btn-grab:hover {
  background-color: var(--primary-btn-hover);
}

/* Hero Section */
.hero {
  padding: 40px 0 60px;
}
.hero-badge {
  background-color: #fff8e1;
  color: #b45309;
  border: 1px solid #fde68a;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}
body.dark-mode .hero-badge {
  background-color: rgba(253, 230, 138, 0.1);
  color: #fde68a;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 15px;
}
.hero h1 span.highlight {
  color: #10b981;
}
.hero p.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero-price {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: normal;
  font-size: 0.9rem;
}
.discount {
  color: var(--red-banner);
  font-size: 0.8rem;
}

/* Floating Notification */
.floating-notif {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  animation: slideUp 0.5s ease;
}
.floating-notif img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.notif-text {
  font-size: 0.8rem;
}
.notif-stars {
  color: var(--gold-accent);
  font-size: 0.7rem;
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Common Section Styles */
.section-title {
  font-size: 2.2rem;
  margin-bottom: 5px;
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.features-grid.bonus-grid {
  grid-template-columns: repeat(3, 1fr);
}
.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  border: 1px solid var(--border-light);
  text-align: left;
  transition: background-color 0.3s, border-color 0.3s;
}
.feature-card i {
  color: var(--primary-btn);
  font-size: 1.2rem;
  margin-bottom: 15px;
  background: var(--bg-color);
  padding: 10px;
  border-radius: 8px;
}
.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 5px;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .bonus-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr !important; }
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 60px;
}
.cat-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 15px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main);
}
.cat-btn i {
  color: var(--primary-btn);
}
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Books Showcase Grid */
.books-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  background: var(--bg-color);
}
.books-showcase img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--border-light);
}
@media (max-width: 900px) {
  .books-showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .books-showcase { grid-template-columns: 1fr; }
}

/* Reviews Grid Responsive Rules */
.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px; 
  padding: 20px;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* Comparison Section */
.comparison-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
}
.comp-card {
  flex: 1;
  max-width: 450px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-light);
  position: relative;
}
.comp-card.smart {
  border: 2px solid var(--primary-btn);
  background: var(--smart-bg);
}
.comp-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.comp-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.comp-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}
.comp-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: normal; }
.comp-list {
  list-style: none;
  font-size: 0.9rem;
  text-align: left;
}
.comp-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comp-card.expensive .comp-list li i { color: #ef4444; }
.comp-card.smart .comp-list li i { color: var(--primary-btn); }

.best-value-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gold-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .comparison-container { flex-direction: column; align-items: center; }
}

/* Who is this for */
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 80px;
}
.who-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.who-card i {
  color: var(--primary-btn);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.who-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 5px;
}
.who-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ Container */
.faq-item {
  background: var(--faq-bg) !important;
  border: 1px solid var(--border-light) !important;
}

/* Footer CTA */
.footer-cta {
  background: var(--primary-btn);
  padding: 60px 20px;
  text-align: center;
  color: white;
}
.footer-cta h2 {
  color: white;
  margin-bottom: 20px;
}
.btn-white {
  background: white;
  color: var(--primary-btn);
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
