/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link-btn {
  padding: 7px 18px !important;
  font-size: 0.82rem !important;
}

/* Donate button - navbar */
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  color: white !important;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-donate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(238,90,36,0.3);
  color: white !important;
}

.btn-donate svg { flex-shrink: 0; }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-title span {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===================== */
/* Book Cover            */
/* ===================== */
.hero-book {
  flex-shrink: 0;
  position: relative;
}

.book-3d {
  display: block;
  width: 300px;
  height: 430px;
  position: relative;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  border-radius: 6px 16px 16px 6px;
  box-shadow:
    -6px 6px 20px rgba(0,0,0,0.15),
    0 12px 40px rgba(0,0,0,0.12);
  cursor: pointer;
}

.book-3d:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow:
    -8px 12px 30px rgba(0,0,0,0.2),
    0 20px 50px rgba(0,0,0,0.15);
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.05));
  border-radius: 6px 0 0 6px;
  z-index: 2;
}

.book-cover {
  width: 100%;
  height: 100%;
  border-radius: 6px 16px 16px 6px;
  background: linear-gradient(160deg, #7A1818 0%, #551010 35%, #3A0808 65%, #200404 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 28px;
  text-align: center;
  color: #F5E6D3;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .book-cover {
  background: linear-gradient(160deg, #352060 0%, #251550 35%, #180E3A 65%, #0D0820 100%);
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 18px; left: 18px; right: 18px; bottom: 18px;
  border: 1px solid rgba(212,165,116,0.22);
  border-radius: 4px 12px 12px 4px;
  pointer-events: none;
}

.book-cover::after {
  content: '';
  position: absolute;
  top: 24px; left: 24px; right: 24px; bottom: 24px;
  border: 1px solid rgba(212,165,116,0.08);
  border-radius: 2px 8px 8px 2px;
  pointer-events: none;
}

.book-pages {
  position: absolute;
  right: -4px; top: 6px;
  width: 4px;
  height: calc(100% - 12px);
  background: linear-gradient(to right, #E8DFD0, #F5EFE5, #E8DFD0);
  border-radius: 0 2px 2px 0;
  box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

/* Book cover elements */
.book-cover-top-ornament {
  position: absolute;
  top: 30px;
  font-size: 0.55rem;
  letter-spacing: 8px;
  opacity: 0.35;
  color: #D4A574;
}

.book-cover-badge {
  background: rgba(212,165,116,0.15);
  border: 1px solid rgba(212,165,116,0.35);
  color: #D4A574;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.book-cover-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.book-cover-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

.book-cover-divider {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,165,116,0.5), transparent);
  margin-bottom: 12px;
}

.book-cover-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.book-cover-detail {
  font-size: 0.65rem;
  opacity: 0.45;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.book-cover-bottom {
  position: absolute;
  bottom: 30px;
  text-align: center;
}

.book-cover-stars {
  font-size: 0.65rem;
  color: #D4A574;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.book-cover-edition {
  font-size: 0.55rem;
  opacity: 0.4;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===================== */
/* Join Banner           */
/* ===================== */
.join-banner {
  padding: 0 40px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.join-banner-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.join-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  cursor: pointer;
}

.join-item:hover {
  transform: translateY(-3px);
}

.join-item svg { flex-shrink: 0; }

.join-item--wp {
  background: #25D366;
  color: white !important;
}

.join-item--wp:hover {
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
  color: white !important;
}

.join-item--donate {
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  color: white !important;
}

.join-item--donate:hover {
  box-shadow: 0 6px 24px rgba(238,90,36,0.35);
  color: white !important;
}

/* ===================== */
/* About Section         */
/* ===================== */
.about-section {
  padding: 100px 40px 80px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
}

.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: 0.85rem; color: var(--text-muted); }

/* ===================== */
/* Chapters              */
/* ===================== */
.chapters-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-header h2 { font-size: 2.4rem; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.chapter-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.chapter-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.chapter-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  color: inherit;
}

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

.chapter-card:hover .chapter-number {
  background: var(--accent);
  color: white;
}

.chapter-number {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.chapter-info { min-width: 0; }

.chapter-info h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== */
/* CTA Banner            */
/* ===================== */
.cta-banner {
  padding: 60px 40px;
  text-align: center;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner-content { max-width: 680px; margin: 0 auto; }

.cta-banner-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.cta-banner-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cta-banner .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 14px 32px;
}

/* ===================== */
/* Support Section       */
/* ===================== */
.support-section {
  padding: 72px 40px;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.support-content {
  max-width: 520px;
  margin: 0 auto;
}

.support-content h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.support-content > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.support-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.support-btn--whatsapp {
  background: #25D366;
  color: white !important;
}

.support-btn--whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  color: white !important;
}

.support-btn--donate {
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  color: white !important;
}

.support-btn--donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(238,90,36,0.3);
  color: white !important;
}

/* ===================== */
/* Footer                */
/* ===================== */
.footer {
  padding: 32px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }
.footer-dot { color: var(--border); }
.footer a { color: var(--accent); }

/* ===================== */
/* RESPONSIVE            */
/* ===================== */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-title { font-size: 2.5rem; }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features { grid-template-columns: 1fr; }

  .join-banner-inner {
    flex-direction: column;
  }

  .join-item {
    justify-content: center;
  }

  .book-3d {
    width: 240px;
    height: 340px;
  }

  .book-cover-title { font-size: 1.45rem; }
  .book-cover-subtitle { font-size: 0.82rem; }
  .book-cover-badge { font-size: 0.5rem; padding: 4px 12px; }
  .book-cover-icon { font-size: 2.4rem; margin-bottom: 12px; }
}

@media (max-width: 600px) {
  .navbar { padding: 12px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .join-banner { padding: 0 20px; margin-top: -30px; }
  .join-item { padding: 12px 20px; font-size: 0.88rem; }

  .chapters-section { padding: 60px 20px; }
  .chapters-grid { grid-template-columns: 1fr; }
  .about-section { padding: 60px 20px; }

  .book-3d { width: 200px; height: 290px; }
  .book-cover-icon { font-size: 2rem; margin-bottom: 10px; }
  .book-cover-title { font-size: 1.25rem; }
  .book-cover-badge { font-size: 0.45rem; padding: 3px 10px; margin-bottom: 14px; }
  .book-cover-top-ornament { top: 22px; font-size: 0.45rem; }
  .book-cover-bottom { bottom: 22px; }

  .cta-banner { padding: 40px 20px; }
  .cta-banner-content h2 { font-size: 1.15rem; }
  .cta-banner-content p { font-size: 0.9rem; }
  .cta-banner .btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .support-section { padding: 48px 20px; }
  .support-content h2 { font-size: 1.4rem; }
  .support-actions { flex-direction: column; }
  .support-btn { justify-content: center; }

  .btn-donate span { display: none; }
  .btn-donate { padding: 7px 10px; }
}

@media (max-width: 400px) {
  .nav-logo { font-size: 1.1rem; }
  .nav-actions .btn-ghost { display: none; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stat-number { font-size: 1.6rem; }

  .book-3d { width: 180px; height: 260px; }
  .book-cover-title { font-size: 1.1rem; }
  .book-cover-subtitle { font-size: 0.75rem; }
}
