/* Reader-specific styles for Article Details */

.reader-root { background: var(--reader-bg); color: var(--reader-content); padding-bottom: 32px; }
.reader-root .article-title { color: var(--reader-title); }

.reader-content {
  padding: 12px 16px 32px;
  font-size: var(--reader-font-size, 18px);
  line-height: 1.7;
  color: var(--reader-content);
}
.reader-content p { margin: 0 0 14px; }
.reader-content .chapter-num {
  text-align: center; font-size: 22px; font-weight: 800;
  margin: 24px 0 12px; color: var(--reader-title);
}

/* Reader toolbar */
.reader-toolbar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 32px; padding: 8px 12px;
  display: flex; gap: 8px; align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  z-index: 40;
}
.reader-toolbar button {
  background: none; border: 0; padding: 8px; font-size: 13px;
  color: var(--text-secondary); border-radius: 16px;
}
.reader-toolbar button.active { background: var(--bg-muted); color: var(--primary); }
.reader-toolbar .font-pill { font-weight: 700; min-width: 32px; }
.reader-toolbar .theme-swatch {
  width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 2px solid var(--border);
}
.reader-toolbar .theme-swatch.active { border-color: var(--primary); }
.reader-toolbar .theme-1 { background: #FAFAFA; }
.reader-toolbar .theme-2 { background: #F4ECD8; }
.reader-toolbar .theme-3 { background: #1F1F22; }
.reader-toolbar .theme-4 { background: #000; }

/* Paywall */
.paywall {
  margin: 24px 16px; padding: 20px 16px;
  background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.paywall .pw-pitch {
  text-align: center; font-size: 13px; color: var(--vip-gold);
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.paywall .pw-pitch::before, .paywall .pw-pitch::after {
  content: ''; flex: 1; height: 1px; background: var(--vip-gold);
  opacity: .6; max-width: 60px;
}
.paywall .pw-section-title { font-weight: 800; margin-top: 8px; font-size: 14px; }
.unlock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; background: var(--bg-muted); border-radius: 10px;
}
.unlock-row .ur-label { font-size: 13px; color: var(--text-secondary); }
.unlock-row .ur-value { font-weight: 800; }
.unlock-row .ur-value .currency { font-size: 12px; color: var(--text-tertiary); margin-left: 4px; font-weight: 500; }

.svip-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svip-plan {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 8px; text-align: center; cursor: pointer;
  background: var(--bg-card); position: relative;
  font: inherit; color: inherit;
}
.svip-plan.recommended { border-color: var(--primary); background: linear-gradient(180deg, rgba(255,51,102,.04), transparent); }
.svip-plan.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(255,51,102,.09), rgba(255,51,102,.02));
  box-shadow: 0 0 0 2px rgba(255,51,102,.14) inset;
}
.svip-plan.selected::before {
  content: '';
  position: absolute; top: 8px; left: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
}
.svip-plan .plan-price { font-size: 18px; font-weight: 800; color: var(--text); }
.svip-plan .plan-duration { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.svip-plan.selected::after {
  content: 'SELECTED'; position: absolute; top: -8px; right: 8px;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 8px;
}
.svip-plans-full { grid-column: 1 / -1; }
