/* ═══════════════════════════════════════════════
   Reader Page Styles
   ═══════════════════════════════════════════════ */

.reader-body {
  background: #050508;
}

.reader-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reader-back {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 12px;
  border: 2px solid var(--accent-dim);
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.reader-back:hover {
  background: var(--bg-card);
  box-shadow: 0 0 8px var(--accent-glow);
}

.reader-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
  min-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-nav {
  display: flex;
  gap: 8px;
}

.reader-nav-btn {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid var(--accent-dim);
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.reader-nav-btn:hover {
  background: var(--bg-card);
  box-shadow: 0 0 8px var(--accent-glow);
}

.reader-nav-btn.disabled {
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Reader images ── */
.reader-images {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.reader-images img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 4px;
  background: var(--bg-card);
}

/* ── Bottom nav ── */
.reader-bottom-nav {
  padding: 24px 20px;
  display: flex;
  justify-content: center;
  border-top: 2px solid var(--border);
  background: var(--bg-secondary);
}

/* ── Scroll progress bar ── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 200;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.1s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .reader-header {
    flex-direction: column;
    padding: 10px 12px;
  }
  .reader-title { font-size: 8px; }
  .reader-back { font-size: 8px; }
  .reader-nav-btn { font-size: 8px; padding: 6px 10px; }
  .reader-images { padding: 12px 0; }
}
