/* Extensão da interface: navegação, página inicial e biblioteca de leituras */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.header-inner { gap: 28px; }
.brand { border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 10px 14px; font-weight: 800; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--red-dark); background: #fff5ef; }

.home-hero { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 30px; align-items: stretch; }
.home-copy { padding: 16px 0 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-panel { border: 1px solid rgba(143,29,44,.13); border-radius: 28px; padding: 28px; background: linear-gradient(155deg,#fff 0%,#fff6ed 100%); box-shadow: var(--shadow); }
.hero-panel-kicker { display: block; color: var(--red); font-weight: 900; margin-bottom: 18px; }
.hero-stat { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hero-stat strong { font-family: Georgia,"Times New Roman",serif; color: var(--red-dark); font-size: 2rem; }
.hero-stat span { color: var(--muted); font-weight: 700; }
.hero-panel p { margin: 18px 0 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 34px; }
.feature-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.9); padding: 28px; box-shadow: 0 12px 30px rgba(88,45,24,.06); }
.feature-card::after { content: "Ñ"; position: absolute; right: -12px; bottom: -48px; color: rgba(143,29,44,.04); font: 900 10rem Georgia,"Times New Roman",serif; }
.feature-number { position: absolute; right: 24px; top: 20px; color: #cbb894; font: 800 1.15rem Georgia,"Times New Roman",serif; }
.feature-card h2 { font-size: 1.75rem; margin-bottom: 12px; }
.feature-card p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.text-cta { border: 0; background: transparent; padding: 0; margin-top: 10px; color: var(--red); font-weight: 900; cursor: pointer; position: relative; z-index: 1; }
.text-cta:hover { color: var(--red-dark); text-decoration: underline; }

.readings-heading { margin-bottom: 24px; }
.reading-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.65); color: var(--muted); font-size: .9rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); padding: 8px 12px; font-weight: 800; cursor: pointer; }
.filter-button.active, .filter-button:hover { border-color: rgba(143,29,44,.32); color: var(--red-dark); background: #fff6f0; }
.reading-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.reading-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94); padding: 26px; box-shadow: 0 10px 32px rgba(70,40,20,.06); display: flex; flex-direction: column; min-height: 300px; overflow: hidden; }
.reading-card::after { content: "“"; position: absolute; right: 18px; bottom: -55px; color: rgba(143,29,44,.045); font: 900 11rem Georgia,"Times New Roman",serif; }
.reading-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.story-level { display: inline-flex; align-items: center; border-radius: 999px; background: var(--gold-soft); color: #6b4a0d; padding: 6px 10px; font-size: .75rem; font-weight: 900; letter-spacing: .04em; }
.story-time { color: var(--muted); font-size: .8rem; font-weight: 700; }
.reading-card h2 { font-size: 1.8rem; margin-bottom: 10px; }
.reading-card p { color: var(--muted); line-height: 1.6; margin: 0 0 20px; }
.reading-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reading-card .primary-button { position: relative; z-index: 1; }
.read-status { color: var(--success); font-size: .8rem; font-weight: 900; }
.coming-soon { margin-top: 28px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; align-items: start; border: 1px dashed rgba(143,29,44,.22); border-radius: 22px; padding: 24px; background: rgba(255,255,255,.55); }
.coming-soon p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }

.reader-back { margin-bottom: 22px; }
.reader-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); gap: 24px; align-items: start; }
.story-paper { border: 1px solid #e6dac7; border-radius: 28px; background: #fffdf8; box-shadow: var(--shadow); padding: clamp(28px,5vw,54px); }
.story-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 20px; }
.story-meta span { border-radius: 999px; padding: 7px 11px; background: #f6ead3; color: #70531b; font-size: .78rem; font-weight: 900; }
.story-paper h1 { font-size: clamp(2.2rem,5vw,4rem); }
.story-intro { margin: 18px 0 26px; color: var(--red-dark); font: italic 1.08rem/1.7 Georgia,"Times New Roman",serif; border-left: 4px solid var(--gold); padding-left: 16px; }
.story-body { font-family: Georgia,"Times New Roman",serif; font-size: 1.12rem; line-height: 1.9; color: #322f2b; }
.story-body p { margin: 0 0 1.2em; }
.story-body p:first-child::first-letter { float: left; font-size: 3.5rem; line-height: .82; padding: 8px 8px 0 0; color: var(--red); font-weight: 800; }
.story-finish { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.saved-note { color: var(--success); font-weight: 800; font-size: .88rem; }
.reader-sidebar { display: grid; gap: 20px; position: sticky; top: 112px; }
.glossary-card, .comprehension-card { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.94); padding: 22px; box-shadow: 0 10px 28px rgba(70,40,20,.05); }
.glossary-card h2, .comprehension-card h2 { font-size: 1.55rem; margin-bottom: 16px; }
.glossary-list { margin: 0; }
.glossary-list > div { padding: 10px 0; border-bottom: 1px solid #f0e7da; }
.glossary-list > div:last-child { border-bottom: 0; }
.glossary-list dt { color: var(--red-dark); font-weight: 900; }
.glossary-list dd { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.comp-question { margin: 0 0 18px; padding: 0 0 18px; border: 0; border-bottom: 1px solid #f0e7da; }
.comp-question:last-child { border-bottom: 0; }
.comp-question legend { color: var(--ink); font-weight: 900; line-height: 1.4; margin-bottom: 8px; padding: 0; }
.comp-option { display: flex; gap: 8px; align-items: flex-start; margin: 7px 0; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.comp-option input { margin-top: 3px; accent-color: var(--red); }
.comprehension-submit { width: 100%; margin-top: 4px; }
.comprehension-result { margin-top: 14px; border-radius: 14px; padding: 14px; background: #fff8e7; color: var(--ink); line-height: 1.5; font-weight: 800; }
.comprehension-result.good { background: var(--success-bg); color: var(--success); }
.comprehension-result.needs-work { background: var(--error-bg); color: var(--error); }

@media (max-width: 900px) {
  .home-hero, .reader-layout { grid-template-columns: 1fr; }
  .reader-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .header-inner { min-height: auto; padding: 14px 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .brand { justify-content: center; }
  .main-nav { justify-content: center; }
  .feature-grid, .reading-grid, .reader-sidebar { grid-template-columns: 1fr; }
  .reading-toolbar { flex-direction: column; align-items: flex-start; }
  .coming-soon { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand-copy small { display: none; }
  .nav-link { padding: 8px 11px; font-size: .9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions button { width: 100%; }
  .story-paper { padding: 24px 20px; }
  .story-body { font-size: 1.03rem; }
}
