/* ============================================================
   NaijaSabi v2.1 — Addons Stylesheet
   Loaded separately so it never conflicts with main.css cache.
   Covers: Live Rate Bar, Weekly Poll, Affiliate Box,
           Key Facts, Pull Quote, Progress Ring, Sticky Share,
           Mobile Bottom Nav, Toast, Article Body Enhancements.
   ============================================================ */

/* ── Live Rate Bar ─────────────────────────────────────────── */
.ns-rate-bar {
  background: #0A1628;
  color: rgba(255,255,255,.85);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  width: 100%;
}
.ns-rate-bar .container {
  padding-top: 0;
  padding-bottom: 0;
}
.ns-rate-bar__inner {
  display: flex;
  align-items: center;
  height: 30px;
  white-space: nowrap;
  overflow: hidden;
}
.ns-rate-bar__label {
  background: #007A3D;
  color: #fff;
  padding: 0 14px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  flex-shrink: 0;
}
.ns-rate-bar__items {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}
.ns-rate-bar__item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 30px;
  border-right: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.ns-rate-bar__item:last-child { border-right: none; }
.ns-rate-bar__currency { color: rgba(255,255,255,.5); font-size: .68rem; }
.ns-rate-bar__value { color: #fff; font-weight: 700; font-size: .78rem; }
.ns-rate-bar__change { font-size: .65rem; font-weight: 700; }
.ns-rate-bar__change--up   { color: #4ade80; }
.ns-rate-bar__change--down { color: #f87171; }
.ns-rate-bar__cta {
  margin-left: auto;
  padding: 0 16px;
  font-size: .68rem;
  color: #F5A623;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
  text-decoration: none;
}
.ns-rate-bar__cta:hover { color: #fff; }

@media (max-width: 767px) {
  .ns-rate-bar__item:nth-child(n+4) { display: none; }
  .ns-rate-bar__cta { display: none; }
}
@media (max-width: 480px) {
  .ns-rate-bar__item:nth-child(n+3) { display: none; }
}

/* ── Article Body Enhancements ─────────────────────────────── */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--brand-dark,#0A1628);
}
[data-theme="dark"] .article-body { color: rgba(255,255,255,.88); }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--brand-dark,#0A1628);
  margin: 2.2rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--brand-border,#E8ECF0);
  letter-spacing: -.02em;
}
[data-theme="dark"] .article-body h2 { color: rgba(255,255,255,.92); }
.article-body h3 {
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--brand-dark,#0A1628);
  margin: 1.8rem 0 .8rem;
}
[data-theme="dark"] .article-body h3 { color: rgba(255,255,255,.9); }
.article-body a { color: var(--brand-green,#007A3D); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.4rem; }
.article-body li { margin-bottom: .5rem; line-height: 1.7; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .9rem; }
.article-body table th {
  background: var(--brand-offwhite,#F8F9FA);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
  color: var(--brand-muted,#6B7280);
  border-bottom: 2px solid var(--brand-border,#E8ECF0);
}
.article-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--brand-border,#E8ECF0);
}
.article-body table tr:hover td { background: var(--brand-offwhite,#F8F9FA); }

/* ── Key Facts Box ─────────────────────────────────────────── */
.ns-key-facts {
  background: rgba(0,122,61,.07);
  border-left: 4px solid #007A3D;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 1.6rem 0 2rem;
}
[data-theme="dark"] .ns-key-facts { background: rgba(0,122,61,.15); }
.ns-key-facts__title {
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #007A3D;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ns-key-facts__list { list-style: none; padding: 0; margin: 0; }
.ns-key-facts__list li {
  display: flex;
  gap: 8px;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--brand-dark,#0A1628);
  margin-bottom: 8px;
}
[data-theme="dark"] .ns-key-facts__list li { color: rgba(255,255,255,.85); }
.ns-key-facts__list li:last-child { margin-bottom: 0; }
.ns-key-facts__list li::before {
  content: '▸';
  color: #007A3D;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Pull Quote ────────────────────────────────────────────── */
.ns-pullquote {
  border-left: 4px solid #007A3D;
  background: var(--brand-offwhite,#F8F9FA);
  border-radius: 0 10px 10px 0;
  padding: 16px 22px;
  margin: 2rem 0;
}
[data-theme="dark"] .ns-pullquote { background: rgba(255,255,255,.05); }
.ns-pullquote p {
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-dark,#0A1628);
  margin: 0 0 8px;
  font-style: italic;
}
[data-theme="dark"] .ns-pullquote p { color: rgba(255,255,255,.9); }
.ns-pullquote cite {
  font-size: .78rem;
  color: var(--brand-muted,#6B7280);
  font-style: normal;
  display: block;
}

/* ── Affiliate Card Box ────────────────────────────────────── */
.ns-affiliate-box {
  background: var(--brand-offwhite,#F8F9FA);
  border: 1.5px solid var(--brand-border,#E8ECF0);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
}
.ns-affiliate-box:hover { border-color: #007A3D; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
[data-theme="dark"] .ns-affiliate-box { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.ns-affiliate-box__icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: #007A3D;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.ns-affiliate-box__content { flex: 1; min-width: 0; }
.ns-affiliate-box__title {
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--brand-dark,#0A1628);
  margin-bottom: 3px;
}
[data-theme="dark"] .ns-affiliate-box__title { color: rgba(255,255,255,.9); }
.ns-affiliate-box__desc {
  font-size: .82rem;
  color: var(--brand-muted,#6B7280);
  line-height: 1.45;
}
.ns-affiliate-box__cta {
  background: #007A3D;
  color: #fff;
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.ns-affiliate-box__cta:hover { background: #0A1628; color: #fff; }
@media (max-width: 540px) {
  .ns-affiliate-box { flex-wrap: wrap; }
  .ns-affiliate-box__cta { width: 100%; text-align: center; padding: 10px; }
}

/* ── Weekly Poll ───────────────────────────────────────────── */
.ns-poll {
  background: #fff;
  border: 1.5px solid var(--brand-border,#E8ECF0);
  border-radius: 12px;
  padding: 20px;
  margin: 28px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
[data-theme="dark"] .ns-poll { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.ns-poll__header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ns-poll__badge {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; background: #007A3D; color: #fff;
  padding: 2px 9px; border-radius: 20px;
}
.ns-poll__question {
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: 1rem; font-weight: 700;
  color: var(--brand-dark,#0A1628);
  margin-bottom: 14px; line-height: 1.4;
}
[data-theme="dark"] .ns-poll__question { color: rgba(255,255,255,.92); }
.ns-poll__options { display: flex; flex-direction: column; gap: 8px; }
.ns-poll__option {
  position: relative; cursor: pointer;
  border-radius: 8px; overflow: hidden;
  border: 1.5px solid var(--brand-border,#E8ECF0);
  background: var(--brand-offwhite,#F8F9FA);
  transition: border-color .15s;
  display: block;
}
.ns-poll__option:hover { border-color: #007A3D; }
.ns-poll__option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ns-poll__bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(0,122,61,.12);
  transition: width .6s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
.ns-poll__option-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  font-size: .88rem; font-weight: 600;
  color: var(--brand-dark,#0A1628);
}
[data-theme="dark"] .ns-poll__option-inner { color: rgba(255,255,255,.85); }
.ns-poll__pct { font-family: var(--font-head,'Syne',sans-serif); font-size: .82rem; font-weight: 700; color: #007A3D; }
.ns-poll__meta { font-size: .75rem; color: var(--brand-muted,#6B7280); margin-top: 10px; }
.ns-poll__vote-btn {
  background: #007A3D; color: #fff;
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: .82rem; font-weight: 700;
  padding: 10px 20px; border-radius: 20px;
  border: none; cursor: pointer;
  transition: background .2s;
  display: block; width: 100%;
  text-align: center; margin-top: 12px;
}
.ns-poll__vote-btn:hover { background: #0A1628; }
.ns-poll__vote-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Sidebar Progress Ring ─────────────────────────────────── */
.ns-sidebar-progress {
  background: #fff;
  border: 1px solid var(--brand-border,#E8ECF0);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
[data-theme="dark"] .ns-sidebar-progress { background: rgba(255,255,255,.04); }
.ns-sidebar-progress svg { display: block; margin: 0 auto 6px; }
.ns-sidebar-progress__pct {
  font-family: var(--font-head,'Syne',sans-serif);
  font-size: 1.6rem; font-weight: 800; color: #007A3D; line-height: 1;
}
.ns-sidebar-progress__label { font-size: .75rem; color: var(--brand-muted,#6B7280); margin-top: 3px; }
.ns-sidebar-progress__time { font-size: .78rem; font-weight: 700; color: #007A3D; margin-top: 2px; }

/* ── Sticky Share ──────────────────────────────────────────── */
.ns-share-sticky {
  background: #fff;
  border: 1px solid var(--brand-border,#E8ECF0);
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
[data-theme="dark"] .ns-share-sticky { background: rgba(255,255,255,.04); }
.ns-share-sticky__title {
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--brand-muted,#6B7280); margin-bottom: 10px;
}
.ns-share-sticky__btn {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--brand-border,#E8ECF0);
  margin-bottom: 6px; cursor: pointer;
  color: var(--brand-dark,#0A1628);
  background: transparent; width: 100%;
  font-family: var(--font-body,'Nunito Sans',sans-serif);
  transition: all .15s;
}
.ns-share-sticky__btn:hover { background: var(--brand-offwhite,#F8F9FA); }
.ns-share-sticky__btn--wa { background: #e8f9f1; color: #065F46; border-color: #9FE1CB; }
.ns-share-sticky__btn--wa:hover { background: #25D366; color: #fff; border-color: #25D366; }

/* ── Post Meta Box — Article Enhancements ─────────────────── */
.ns-enhance-box { padding: 12px 0; }
.ns-enhance-section {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.ns-enhance-section h4 {
  font-size: 13px; font-weight: 700; margin: 0 0 8px;
  display: flex; align-items: center; gap: 6px; color: #1a1a1a;
}
.ns-enhance-section label { font-size: 12px; color: #555; display: block; margin-bottom: 4px; }
.ns-enhance-section input[type=text],
.ns-enhance-section textarea {
  width: 100%; padding: 7px 10px;
  border: 1px solid #ddd; border-radius: 4px;
  font-size: 13px; font-family: inherit;
  margin-bottom: 8px; box-sizing: border-box;
}
.ns-enhance-section textarea { min-height: 80px; resize: vertical; }
.ns-enhance-section .ns-enable-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 10px; cursor: pointer;
}
.ns-enhance-section .ns-enable-toggle input { width: auto; margin: 0; }
.ns-enhance-fields { margin-top: 8px; }

