/* =============================================
   BIBLE ALIVE — Reader Styles
   ============================================= */

/* ── Reader Container ── */
.reader-view {
  max-width: var(--reader-max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

/* ── Chapter Header ── */
.reader-chapter-header {
  margin-bottom: var(--space-8);
  text-align: center;
  position: relative;
}

.reader-chapter-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-accent-light);
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-full);
}

.reader-book-name {
  font-family: var(--font-scripture);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.reader-chapter-num {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Verses ── */
.reader-verses {
  font-family: var(--font-scripture);
  font-size: var(--scripture-size);
  line-height: var(--scripture-line-height);
  color: var(--color-text-primary);
}

.verse {
  position: relative;
  display: inline;
  transition: background var(--duration-fast);
  border-radius: 2px;
  cursor: pointer;
}

.verse:hover {
  background: var(--color-highlight);
}

.verse.selected {
  background: var(--color-highlight-active);
}

.verse.bookmarked::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  min-height: 12px;
  background: var(--color-bookmark);
  border-radius: var(--radius-full);
}

.verse-num {
  font-family: var(--font-body);
  font-size: 0.65em;
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  vertical-align: super;
  margin-right: 2px;
  user-select: none;
  line-height: 1;
}

/* ── Verse Action Bar (appears on verse selection) ── */
.verse-actions {
  position: fixed;
  display: none;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  animation: fadeIn var(--duration-fast) var(--ease-out);
}

.verse-actions.visible { display: flex; }

.verse-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  transition: all var(--duration-fast);
}

.verse-action-btn:hover {
  background: var(--color-accent-bg);
  color: var(--color-text-accent);
}

.verse-action-btn svg { width: 18px; height: 18px; }

/* ── Chapter Navigation ── */
.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.reader-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: all var(--duration-fast);
}

.reader-nav-btn:hover {
  border-color: var(--color-accent-light);
  color: var(--color-text-accent);
  box-shadow: var(--shadow-sm);
}

.reader-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reader-nav-btn:disabled:hover {
  border-color: var(--color-border);
  color: var(--color-text-secondary);
  box-shadow: none;
}

.reader-nav-btn svg { width: 16px; height: 16px; }

/* ── Cross References ── */
.verse-comment {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  display: inline;
  margin-left: var(--space-1);
}

.verse-comment a {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.verse-comment a:hover { color: var(--color-accent); }

/* ── Responsive Reader ── */
@media (max-width: 768px) {
  .reader-view {
    padding: var(--space-6) var(--space-4);
  }

  .reader-book-name {
    font-size: var(--text-2xl);
  }

  .reader-nav {
    padding-bottom: var(--space-4);
  }
}
