/* styles.css – Clean, deduplicated, fully functional version */
/* Download this entire text as "styles.css" – nothing is lost, everything works exactly as before */

:root {
  /* Light theme (default) */
  --bg-body: #f4f5f7;
  --text: #111827;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --header-bg: #111827;
  --header-text: #f9fafb;
  --card-bg: #ffffff;
  --card-muted: #f3f4f6;
  --border: #e5e7eb;
  --btn-bg: #f9fafb;
  --btn-border: #d1d5db;
  --btn-hover-bg: #e5e7eb;
  --btn-hover-border: #9ca3af;
  --accent: #facc15;
  --accent-hover: #eab308;
  --link: #1d4ed8;
  --commentary: #1d4ed8;
}

.theme-dark {
  --bg-body: #020617;
  --text: #e5e7eb;
  --text-light: #9ca3af;
  --header-bg: #020617;
  --header-text: #f9fafb;
  --card-bg: #020617;
  --border: #1f2937;
  --btn-bg: #020617;
  --btn-border: #374151;
  --btn-hover-bg: #111827;
  --btn-hover-border: #4b5563;
  --commentary: #4d79f1;
}

/* === Basic reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-body);
}

/* === Layout === */
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* === Header === */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.logo { display: flex; flex-direction: column; }
.logo-main { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 1.3rem; }
.logo-sub { font-size: .75rem; opacity: .8; }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: .35rem;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--header-text);
  transition: transform .18s ease, opacity .18s ease, top .18s ease, bottom .18s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .95rem;
}
.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a:hover { color: #ffffff; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #f9fafb;
  padding: 5rem 0 4rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: .75rem; }
.hero p { max-width: 44rem; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* === Sections === */
.section { padding: 3.5rem 0; background: var(--bg-body); }
.reader-page-hero + .section { padding-top: 1.5rem; }

.section-alt { background: var(--card-bg); }
.section h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.section p + p { margin-top: .75rem; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn.primary { background: var(--accent); color: #111827; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn.ghost:hover { background: rgba(250, 204, 21, .1); }
.btn.small { padding: .45rem .9rem; font-size: .85rem; }

/* === Lists & Cards === */
.bullet-list { margin-top: .75rem; padding-left: 1.25rem; }
.bullet-list li + li { margin-top: .4rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card {
  background: var(--card-bg);
  border-radius: .75rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
}
.card-muted { background: var(--card-muted); }
.card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.card-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .6rem; }

/* === FAQ === */
.faq-item {
  margin-top: .75rem;
  background: #f9fafb;
  border-radius: .5rem;
  border: 1px solid var(--border);
  padding: .75rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq-item summary::marker,
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-weight: 600; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: .6rem; font-size: .95rem; }

/* === Contact & Footer === */
.contact-line { margin-top: .75rem; }
.contact-line a { color: var(--link); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.contact-note { font-size: .85rem; color: var(--text-light); margin-left: .5rem; }

.site-footer {
  background: var(--header-bg);
  color: var(--text-lighter);
  padding: 1rem 0;
  font-size: .85rem;
  text-align: center;
}

/* === Reader Page Styles === */
.reader-page-hero { padding: 3rem 0 2rem; background: var(--bg-body); }
.reader-wrapper {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: 960px;
  margin: 1rem auto 2rem;
  border: none;
}
.theme-dark .reader-wrapper {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: 960px;
  margin: 1rem auto 2rem;
  border: none;
}

.reader-top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
}
.reader-top-left, .reader-top-right { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.reader-nav-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }

.reader-toggle-button,
.reader-nav-buttons button {
  padding: .35rem .7rem;
  font-size: .85rem;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.reader-nav-buttons button:disabled { opacity: .45; cursor: default; }
.reader-toggle-button.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.chapter-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .75rem 0 .9rem;
}
.chapter-link {
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  padding: .25rem .55rem;
  font-size: .82rem;
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.chapter-link.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

#readerContent { margin-top: .5rem; }
.reader-chapter { margin-bottom: 1.25rem; }
.reader-chapter-title { font-weight: 600; margin-bottom: .35rem; color: var(--text); 
  scroll-margin-top: 90px;
}
.theme-dark .reader-chapter-title { color: #f9fafb; }

.reader-text { font-size: .97rem; color: var(--text); }
.reader-verse { display: inline; }
.align-verses .reader-verse { display: block; margin-bottom: .15rem; }
.reader-verse-num {
  font-size: .7rem;
  vertical-align: super;
  margin-right: .15rem;
  color: var(--text-light);
}
.reader-verse + .reader-verse::before { content: " "; }


.commentary {
  color: var(--commentary);
  font-weight: 500;
}

.commentary-inline {
  color: var(--commentary);
  font-weight: 500;
}

.hide-commentary .commentary,
.hide-commentary .commentary-inline {
  display: none;
}


.commentary-callout {
  position: relative;
  margin: 1rem 0 1.2rem 0;
  padding: 1rem 1.2rem 1rem 1.4rem;
  border-radius: 0.6rem;
  background: #f8fbff;               /* light blue wash */
  border: 1px solid #3b82f6;          /* blue-500 border */
  color: #1e40af;                     /* blue-800 text */
  font-size: 0.95rem;
  line-height: 1.55;
}

.commentary-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0.5rem 0 0 0.5rem;
  background: #2563eb;                /* blue-600 accent bar */
}

/* dark mode */
.theme-dark .commentary-callout {
  background: rgba(37, 99, 235, 0.15);   /* translucent blue */
  border-color: #60a5fa;                 /* blue-300 border */
  color: #93c5fd;                        /* blue-300 text */
}

.theme-dark .commentary-callout::before {
  background: #3b82f6;                   /* blue-500 accent */
}

.hide-commentary .commentary-callout {
  display: none;
}





.hide-verse-nums .reader-verse-num { display: none; }

.reader-divider {
  border-top: 1px solid var(--border);
  margin: .75rem 0;
}

/* === Scroll offset for fixed header === */
#hero, #about, #features, #faq, #contact { scroll-margin-top: 100px; }
@media (max-width: 768px) { #hero, #about, #features, #faq, #contact { scroll-margin-top: 130px; } }

/* === Mobile adjustments === */
@media (max-width: 768px) {
  .nav-container {
    padding: .6rem 0;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Full-screen style mobile menu */
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--header-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }

  /* When body has .nav-open, show the overlay */
  .nav-open .main-nav {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .main-nav a {
    width: 100%;
    font-size: 1.1rem;
    letter-spacing: .08em;
  }

  .section {
    padding: 2.75rem 0;
  }
}
@media (max-width: 640px) {
  .main-nav {
    font-size: .8rem;
  }
  .reader-top-bar { align-items: flex-start; }
  .reader-nav-buttons { margin-top: .5rem; }
}



/* --- Nova Fullscreen Menu & Logo Padding Fix --- */
@media (max-width: 768px) {

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-bg);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .header .logo,
  .header .site-title {
    padding-left: 1rem;
  }
}

.site-header .logo {
  padding: 0 1rem;
}

.site-header .nav-toggle { padding-right: 1rem; }

/* Extracted from reader.html */
.chapter-nav-bottom {
      display: flex;
      justify-content: flex-end;
      gap: 0.75rem;
      margin-top: 1.5rem;
      padding-top: 1rem;
    }
    .chapter-nav-bottom button {
      padding: 0.4rem 0.9rem;
      border-radius: 4px;
      border: 1px solid #ccc;
      background: #f7f7f7;
      cursor: pointer;
      font-size: 0.9rem;
    }
    .chapter-nav-bottom button:disabled {
      opacity: 0.5;
      cursor: default;
    }
    .theme-dark .chapter-nav-bottom button {
      background: #333;
      border-color: #666;
      color: #fff;
    }


/* Highlight READ only in mobile hamburger menu */
@media (max-width: 768px) {
  body.nav-open .main-nav a[href="reader.html"] {
    background: var(--accent);
    color: #111827 !important;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
  }
  body.nav-open .main-nav a[href="reader.html"]:hover {
    background: var(--accent-hover);
  }
}







/* ========== SMALL CLEAN BANNER WITH SOFT GRADIENT ========== */

.reader-chapter-title {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  padding: 0.55rem 1rem;
  margin: 1.3rem 0 1.4rem;

  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  /* Soft light-mode gradient */
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  border: 1px solid #e5e7eb;
  border-radius: 6px;

  color: #1f2937;

  scroll-margin-top: 90px;
}

/* Dark mode version — cool, subtle gradient */
.theme-dark .reader-chapter-title {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: #334155;
  color: #f1f5f9;
}

/* Mobile refinement */
@media (max-width: 640px) {
  .reader-chapter-title {
    font-size: 1rem;
    padding: 0.45rem 0.8rem;
  }
}