@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* ========================================
   estilo.css - Biblia.cc 2026
   Diseño premium, moderno y responsive
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fcfbfa;
  --bg-alt: #f5f2eb;
  --card-bg: #ffffff;
  --text: #1a1510;
  --text-muted: #645a4f;
  --text-light: #948879;
  --gold: #b3852b;
  --gold-light: #d6b36a;
  --gold-bg: #fbf6ec;
  --accent: #2e477a;
  --accent-light: #4463a3;
  --accent-bg: #f0f4f8;
  --border: #e6dfd5;
  --border-light: #f2ede6;
  --font-serif: 'Merriweather', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 920px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 10px 25px rgba(179, 133, 43, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-serif);
  background: var(--bg);
  background-image: radial-gradient(circle at top, #fff 0%, #fcfbfa 100%);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: all .2s; }
a:hover, a:focus { color: var(--accent-light); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }

/* === HEADER === */
header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(230, 223, 213, 0.5);
  padding: 1rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
header .logo:hover { color: var(--gold); text-decoration: none; }
header .logo img { height: 30px; width: auto; border-radius: 4px; }

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

header nav { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; }
header nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all .15s;
  white-space: nowrap;
}
header nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
  text-decoration: none;
}
header nav a.active {
  color: var(--gold);
  background: var(--gold-bg);
}

/* === MAIN CONTENT === */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 5vw 3rem;
  width: 100%;
}

h1 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

p { margin-bottom: 0.8rem; }

/* === HOME PAGE === */
.hero {
  text-align: center;
  padding: 3rem 0 1rem;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--gold) 0%, #8a631c 50%, var(--text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Home intro text */
.home-intro {
  max-width: 720px;
  margin: 1rem auto 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.home-intro strong { color: var(--text); }

/* Stats cards */
.home-stats {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 2rem auto 2.5rem;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  text-align: center;
  min-width: 120px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-sans);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* Home footer text */
.home-footer-text {
  max-width: 720px;
  margin: 2.5rem auto 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}
.home-footer-text h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.home-footer-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* === SECTION LABEL === */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-light);
}

/* === BOOK GRID (home, AT, NT) === */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}
.book-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all .25s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 70px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.book-grid a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity .25s;
}
.book-grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-light);
  color: var(--gold);
  text-decoration: none;
}
.book-grid a:hover::before { opacity: 1; }

/* === TESTAMENT LIST PAGES === */
.testament-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.7;
  font-family: var(--font-sans);
}

/* === BOOK INDEX PAGE === */
.book-subtitle-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  margin-bottom: 1rem;
}
.book-description {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

/* Author card on book pages */
.book-author { margin: 1rem 0; }
.author-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
.author-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.author-photo-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}
.author-card .author-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.1rem;
}
.author-card strong { font-size: 0.9rem; color: var(--text); }

/* === CHAPTER GRID (book pages) === */
.chapter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2.5rem;
}
.chapter-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all .2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chapter-grid a:hover {
  background: linear-gradient(135deg, var(--gold), #8a631c);
  color: #fff;
  border-color: var(--gold);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* === RICH CHAPTER LIST (book index pages) === */
.rich-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.chapter-item {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.chapter-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.chapter-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  color: var(--text);
}
.chapter-item h3 a {
  color: var(--text);
  text-decoration: none;
}
.chapter-item h3 a:hover {
  color: var(--gold);
}
.ch-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.ch-verse {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 0.8rem 1.25rem;
  margin: 0.75rem 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ch-reflection {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 0.5rem;
}
.ch-reflection strong {
  color: var(--gold);
}
.book-seo-intro {
  margin: 1.25rem 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  font-family: var(--font-sans);
}
.chapters-subtitle {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-sans);
}

@media (max-width: 640px) {
  .chapter-item { padding: 1.25rem; }
  .ch-verse { font-size: 0.9rem; padding: 0.75rem 1rem; }
}

/* === CHAPTER NAVIGATION (prev/next) === */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  gap: 1rem;
}
.chapter-nav a {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: all .2s;
  flex: 1;
  text-align: center;
  max-width: 240px;
  font-weight: 500;
}
.chapter-nav a:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.chapter-nav .prev::before { content: "← "; }
.chapter-nav .next::after { content: " →"; }

/* === VERSE TEXT === */
.verses {
  margin: 2rem 0;
  padding: 2.5rem 3rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.verses p {
  margin-bottom: 0.85rem;
  text-align: left;
  line-height: 2.1;
  font-size: 1.15rem;
}
.verses sup {
  font-size: 0.65rem;
  color: var(--gold);
  margin-right: 0.3rem;
  vertical-align: super;
  line-height: 1;
  font-family: var(--font-sans);
  font-weight: 700;
}
.verses sup a {
  color: var(--gold);
  text-decoration: none;
  background: var(--gold-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  transition: all .2s;
}
.verses sup a:hover {
  background: var(--gold);
  color: #fff;
  text-decoration: none;
}

/* === BLOCKQUOTE === */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: var(--gold-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}
blockquote footer {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
  font-family: var(--font-sans);
}

/* === AUTHOR PAGE === */
.author-header, .author-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
}
.author-profile {
  justify-content: center;
  text-align: left;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--gold-light);
}
.author-meta {
  flex: 1;
}
.author-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
}
.author-meta p strong {
  color: var(--text);
  font-weight: 600;
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 2rem 5vw;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  margin-top: auto;
}
footer a { color: var(--accent); }
footer a:hover { color: var(--accent-light); }
footer .footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* === SOCIAL SHARING === */
.share-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.25rem;
  width: 100%;
  text-align: center;
  margin-bottom: 0.25rem;
}
.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: all .2s;
  box-shadow: var(--shadow);
  line-height: 1;
}
.share-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.share-buttons a svg { flex-shrink: 0; }
.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #1da851; }
.share-facebook  { background: #1877f2; }
.share-facebook:hover { background: #145dbf; }
.share-twitter   { background: #000; }
.share-twitter:hover { background: #333; }
.share-email     { background: #6b7280; }
.share-email:hover { background: #4b5563; }

/* === AD SLOTS === */
/* === ABOUT / LEGAL PAGES === */
.about-content, .legal-content {
  max-width: 700px;
  margin: 0 auto;
}
.about-content p, .legal-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* === RESPONSIVE === */
@media (max-width: 820px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 2rem; }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  header nav { display: none; width: 100%; order: 5; flex-direction: column; gap: 0; padding-top: 0.5rem; }
  header nav.open { display: flex; }
  header nav a { padding: 0.6rem 0.8rem; border-top: 1px solid var(--border-light); font-size: 0.85rem; width: 100%; }
  header nav a:last-child { border-bottom: 1px solid var(--border-light); }
  .header-search { order: 3; width: 100%; margin-top: 0.4rem; }
}
@media (max-width: 640px) {
  html { font-size: 15px; }
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
  header { padding: 0.7rem 4vw; }
  main { padding: 1.5rem 4vw 2rem; }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; }
  .book-grid a { min-height: 56px; font-size: 0.82rem; padding: 0.7rem 0.4rem; }
  .verses { padding: 1rem 1.1rem; }
  .verses p { font-size: 0.95rem; }
  .author-header, .author-profile { flex-direction: column; align-items: center; text-align: center; }
  .chapter-grid { gap: 0.35rem; }
  .chapter-grid a { width: 2.4rem; height: 2.4rem; font-size: 0.78rem; }
  .chapter-nav { flex-direction: column; gap: 0.5rem; }
  .chapter-nav a { max-width: 100%; }
  footer { padding: 1.5rem 4vw; }
  .home-stats { gap: 0.6rem; }
  .stat-card { padding: 0.75rem 1rem; min-width: 80px; }
  .stat-number { font-size: 1.5rem; }
}
@media (max-width: 420px) {
  html { font-size: 14px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid a { min-height: 50px; font-size: 0.78rem; }
  .share-buttons { gap: 0.35rem; }
  .share-buttons a { font-size: 0.72rem; padding: 0.35rem 0.5rem; }
}

/* === PRINT === */
@media print {
  header, footer, .share-buttons, .chapter-nav, .ad-slot { display: none; }
  body { background: #fff; color: #000; }
  .verses { box-shadow: none; border: none; padding: 0; }
}

/* === HOME POPULAR VERSES === */
.home-popular { margin: 2rem 0; }
.home-popular h2 { text-align: center; color: var(--gold); font-size: 1.4rem; margin-bottom: 0.5rem; }
.home-popular-intro { text-align: center; color: #888; font-size: 0.9rem; margin-bottom: 1.2rem; }
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.popular-card { display: flex; flex-direction: column; padding: 0.8rem 1rem; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 6px; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.popular-card:hover { border-color: var(--gold); }
.popular-ref { font-weight: 700; color: var(--gold); font-size: 0.95rem; margin-bottom: 0.15rem; }
.popular-desc { font-size: 0.85rem; color: #666; line-height: 1.4; }

/* === BIBLIAWEB CROSS-PROMO === */
.home-bibliaweb { margin: 1.5rem 0; padding: 1rem; background: var(--gold-bg); border-radius: 6px; border-left: 3px solid var(--gold); }
.home-bibliaweb p { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.home-bibliaweb a { color: var(--gold); font-weight: 600; }

/* === VERSICULOS PAGE === */
.versiculos-tema { margin: 1.5rem 0; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-light); }
.versiculos-tema:last-child { border-bottom: none; }
.versiculos-tema h2 { color: var(--gold); font-size: 1.15rem; margin-bottom: 0.5rem; }
.versiculos-tema ul { list-style: none; padding: 0; margin: 0; }
.versiculos-tema li { padding: 0.4rem 0; line-height: 1.5; font-size: 0.92rem; }
.versiculos-tema li a { color: var(--gold); font-size: 0.85rem; white-space: nowrap; }

/* === CONTACT & LEGAL PAGES === */
.contact-email { font-size: 1.1rem; margin: 1rem 0; }
.contact-email a { color: var(--gold); font-weight: 600; }
.footer-legal { font-size: 0.75rem; color: #999; margin-top: 1rem; line-height: 1.5; border-top: 1px solid var(--border-light); padding-top: 0.75rem; }
.footer-legal a { color: #aaa; }

/* === HIDE EMPTY ELEMENTS === */
body div:empty, p:empty { display: none; }

/* === CHAPTER NAV === */
.chapters-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; padding: 0.5rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.ch-nav { color: var(--gold); font-size: 0.9rem; text-decoration: none; padding: 0.4rem 0.6rem; border-radius: 4px; transition: background 0.2s; max-width: 48%; }
.ch-nav:hover { background: var(--gold-bg); }
.ch-nav-prev { text-align: left; }
.ch-nav-next { text-align: right; margin-left: auto; }

/* === CHAPTER SEO === */
.chapter-seo { margin: 1.5rem 0; padding: 1rem; background: var(--gold-bg); border-radius: 6px; border-left: 3px solid var(--gold); }
.chapter-seo h2 { color: var(--gold); font-size: 1rem; margin-bottom: 0.5rem; }
.chapter-seo p { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.chapter-related { margin-top: 0.6rem; font-size: 0.85rem; }
.chapter-related a { color: var(--gold); }

/* === SEARCH BOX === */
.header-search { position: relative; margin: 0.5rem 5vw 0; }
.header-search input { width: 100%; padding: 0.5rem 0.8rem; border: 1px solid var(--border-light); border-radius: 6px; font-size: 0.85rem; background: var(--card-bg); color: var(--text); outline: none; transition: border-color 0.2s; }
.header-search input:focus { border-color: var(--gold); }
#search-results { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 6px; max-height: 300px; overflow-y: auto; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.search-item { display: block; padding: 0.5rem 0.8rem; color: var(--text); text-decoration: none; font-size: 0.85rem; border-bottom: 1px solid var(--border-light); }
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--gold-bg); color: var(--gold); }
.search-no { padding: 0.5rem 0.8rem; color: var(--text-muted); font-size: 0.85rem; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }
