/* ===========================
   KINDLE-LIKE READER
   Warm, comfortable reading UI
   =========================== */

:root {
  --reader-bg: #faf6ed;
  --reader-bg-alt: #f3ece0;
  --reader-text: #3d3427;
  --reader-text-light: #6b5e4f;
  --reader-accent: #9a7b2d;
  --reader-border: #e8dcc8;
  --reader-shadow: rgba(61, 52, 39, 0.08);
}

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

html { scroll-behavior: smooth; }

body.reader-body {
  font-family: 'Merriweather', 'Georgia', serif;
  background: var(--reader-bg);
  color: var(--reader-text);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--reader-accent), #c9a84c);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* --- Reader Nav --- */
.reader-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 0;
  background: rgba(250, 246, 237, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--reader-border);
  transition: transform 0.3s ease;
}
.reader-nav.hidden { transform: translateY(-100%); }
.reader-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--reader-accent);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.reader-back:hover {
  background: rgba(154, 123, 45, 0.08);
}
.reader-back svg {
  width: 18px;
  height: 18px;
}
.reader-meta-nav {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--reader-text-light);
  letter-spacing: 0.5px;
}

/* --- Article Hero --- */
.article-hero {
  padding-top: 80px;
}
.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* --- Article Container --- */
.article-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* --- Article Header --- */
.article-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--reader-border);
}
.article-category {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--reader-accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(154, 123, 45, 0.25);
  border-radius: 100px;
  background: rgba(154, 123, 45, 0.05);
}
.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--reader-text);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.article-subtitle {
  font-size: 1.15rem;
  color: var(--reader-text-light);
  line-height: 1.8;
  font-style: italic;
}
.article-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--reader-text-light);
}
.article-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-info-item svg {
  width: 14px;
  height: 14px;
  color: var(--reader-accent);
}

/* --- Article Body --- */
.article-body {
  font-size: 1.08rem;
}
.article-body p {
  margin-bottom: 1.6em;
}
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  color: var(--reader-text);
  letter-spacing: -0.3px;
}
.article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--reader-text);
}
.article-body blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 3px solid var(--reader-accent);
  background: var(--reader-bg-alt);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--reader-text-light);
  font-size: 1.05rem;
  line-height: 1.9;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol {
  margin: 1.4em 0;
  padding-left: 1.5em;
}
.article-body li {
  margin-bottom: 0.7em;
  padding-left: 0.3em;
}
.article-body strong {
  color: var(--reader-text);
  font-weight: 700;
}
.article-body em {
  color: var(--reader-text-light);
}

/* --- Pull Quote --- */
.pull-quote {
  margin: 2.5em -20px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(154, 123, 45, 0.06), rgba(154, 123, 45, 0.02));
  border-radius: 16px;
  border: 1px solid rgba(154, 123, 45, 0.12);
  text-align: center;
}
.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--reader-accent);
  margin-bottom: 0 !important;
}
.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--reader-text-light);
  letter-spacing: 1px;
}

/* --- Divider --- */
.article-divider {
  text-align: center;
  margin: 2.5em 0;
  color: var(--reader-accent);
  font-size: 1.2rem;
  letter-spacing: 12px;
  opacity: 0.5;
}

/* --- Article Footer --- */
.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--reader-border);
}
.article-cta {
  background: var(--reader-bg-alt);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  border: 1px solid var(--reader-border);
}
.article-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--reader-text);
}
.article-cta p {
  color: var(--reader-text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}
.article-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #b8922e, #7a6120);
  color: #fff;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(154, 123, 45, 0.3);
}
.article-cta .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(154, 123, 45, 0.4);
  color: #fff;
}

/* --- More Articles --- */
.more-articles {
  margin-top: 48px;
}
.more-articles h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--reader-accent);
  margin-bottom: 20px;
}
.more-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.more-article-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--reader-bg-alt);
  border-radius: 12px;
  border: 1px solid var(--reader-border);
  text-decoration: none;
  transition: all 0.3s ease;
}
.more-article-card:hover {
  border-color: var(--reader-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--reader-shadow);
}
.more-article-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.more-article-card span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--reader-text);
  line-height: 1.4;
}

/* --- Reader Footer --- */
.reader-footer {
  background: var(--reader-bg-alt);
  border-top: 1px solid var(--reader-border);
  padding: 32px 24px;
  text-align: center;
}
.reader-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--reader-text-light);
}
.reader-footer a {
  color: var(--reader-accent);
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-container { padding: 32px 20px 60px; }
  .article-hero-img { max-height: 300px; }
  .pull-quote { margin: 2em 0; padding: 24px; }
  .pull-quote p { font-size: 1.2rem; }
  .more-articles-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 24px; }
}
