/* Reader-specific styles (integrated with Bootstrap) */

:root {
  --reader-max-width: 740px;
  --reader-line-height: 1.75;
  --reader-font-size: 1.05rem;
  --reader-font-family: var(--font-family-primary);
}

body.reader-body {
  background: var(--color-beige);
  color: var(--color-black);
}

#navToggle {
  display: none;
}

.reader-article {
  max-width: var(--reader-max-width);
  margin: 0 auto;
  font-family: var(--reader-font-family);
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
  color: var(--color-black);
  overflow-wrap: break-word;
}

.reader-article h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-light);
  font-weight: 300;
  letter-spacing: var(--letter-spacing-h2);
  font-size: var(--font-size-h2);
}

.reader-article p {
  margin: 0 0 1rem 0;
  white-space: pre-wrap;
  text-align: justify;
}

.reader-article p:first-of-type {
  margin-top: 0;
}

.reader-end {
  text-align: center;
  font-style: italic;
  color: var(--color-black);
  opacity: 0.7;
}

/* Dark theme */
body.theme-dark.reader-body {
  background: #121212;
  color: rgba(255, 255, 255, 0.92);
}

body.theme-dark .reader-article {
  color: rgba(255, 255, 255, 0.92);
}

body.theme-dark .card {
  background: rgba(24, 24, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
}

body.theme-dark .card-header,
body.theme-dark .card-footer {
  background: rgba(24, 24, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
}

body.theme-dark .list-group-item {
  background: rgba(24, 24, 24, 0.92);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

body.theme-dark .list-group-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .list-group-item.active {
  background: rgba(0, 167, 220, 0.18);
  border-left-color: var(--color-info);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

body.theme-dark .reader-toast {
  background: rgba(0, 0, 0, 0.84);
}