/* =====================================================================
 * SaaSListy · Bento Noir extras for the single tool page
 * Loaded after style.css (see inc/tool-extras.php)
 * ===================================================================== */

/* ---------- Hero ---------- */
.bd-grid { grid-template-rows: none; grid-auto-rows: auto; }
.nb-hero { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }

.nb-name { position: relative; overflow: hidden; min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 36px; border-radius: 36px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 0% 0%, rgba(255, 74, 18, .16) 0%, var(--s1) 55%); }
.nb-wm { position: absolute; right: -10px; top: -70px; font-size: 420px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); pointer-events: none; user-select: none; }
.nb-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nb-mid { position: relative; }
.nb-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.nb-title { margin: 8px 0 14px; font-weight: 800; letter-spacing: -.05em; line-height: .95; overflow-wrap: anywhere; }
.nb-title-lg { font-size: 104px; }
.nb-title-md { font-size: 76px; }
.nb-title-sm { font-size: 54px; }
.nb-lead { font-size: 20px; color: var(--ink); opacity: .85; max-width: 560px; }
.nb-meta { margin-top: 14px; font-size: 13px; color: var(--mut); }
.nb-meta b { color: var(--ink); font-weight: 600; }
.nb-pill-alert { background: #ef4444; color: #fff; }
.nb-actions { margin-top: 22px; }

.nb-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: var(--s2); color: var(--ink); cursor: pointer; font-family: inherit; transition: transform .25s var(--ease), border-color .25s; }
.nb-btn:hover { transform: translateY(-2px); border-color: var(--mut); }
.nb-btn .i { width: 18px; height: 18px; flex: none; }
.nb-btn-p { background: var(--or); border-color: var(--or); color: var(--on); }
.nb-btn-p:hover { border-color: var(--or); }
.nb-btn-off { color: var(--mut); cursor: default; }
.nb-btn-off:hover { transform: none; border-color: var(--line); }
.nb-btn.saved { background: var(--ye); border-color: var(--ye); color: var(--on); }

.nb-qf { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.nb-qf > div { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.nb-qf small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.nb-qf b { display: block; font-size: 17px; margin-top: 2px; overflow-wrap: anywhere; }
.nb-qf b a { color: var(--ye); }
.nb-qf .ok b { color: #4ADE80; }
.nb-qf .warn b { color: var(--or); }

.nb-score { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 36px; border-radius: 36px; background: var(--ye); color: var(--on); }
.nb-score-lbl { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nb-big { font-size: 176px; font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.nb-big small { font-size: 34px; letter-spacing: 0; font-weight: 700; opacity: .6; }
.nb-big-sm { font-size: 96px; }
.nb-stars { margin-top: 12px; font-size: 26px; letter-spacing: 4px; font-weight: 700; }
.nb-cnt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 16px; font-weight: 600; border-top: 2px solid var(--on); padding-top: 14px; }

/* ---------- Shared tile / headings ---------- */
.nb-sec { margin-top: 16px; }
.nb-tile { background: var(--s1); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.nb-h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.nb-sub { color: var(--mut); font-size: 15px; margin: 0; }

/* ---------- Pros & Cons ---------- */
.nb-pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.nb-pc { background: var(--s1); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.nb-pc h3 { font-size: 18px; margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.nb-pc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nb-pc li { display: flex; gap: 12px; font-size: 16px; color: var(--ink); }
.nb-pc li::before { flex: none; width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 2px; }
.nb-pro { border-color: #14532d; }
.nb-pro h3 { color: #4ADE80; }
.nb-pro li::before { content: "✓"; background: #14532d; color: #4ADE80; }
.nb-con { border-color: #7f1d1d; }
.nb-con h3 { color: #F87171; }
.nb-con li::before { content: "✕"; background: #7f1d1d; color: #F87171; }

/* ---------- Questions & Answers ---------- */
.nb-qa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.nb-ask-form[hidden], .nb-answer-form[hidden] { display: none; }
.nb-ask-form, .nb-answer-form { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.nb-ask-form input[type="text"], .nb-ask-form input[type="email"], .nb-ask-form textarea,
.nb-answer-form input[type="text"], .nb-answer-form input[type="email"], .nb-answer-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.nb-ask-form textarea, .nb-answer-form textarea { resize: vertical; min-height: 84px; }
.nb-ask-form input:focus, .nb-ask-form textarea:focus, .nb-answer-form input:focus, .nb-answer-form textarea:focus { outline: 2px solid var(--or); outline-offset: 1px; }
.nb-qa-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nb-qa-as { font-size: 13px; color: var(--mut); margin: 0; }
.nb-qa-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.nb-qa-msg { font-size: 13px; font-weight: 600; color: var(--mut); }
.nb-qa-msg.ok { color: #4ADE80; }
.nb-qa-msg.err { color: #F87171; }
.nb-qa-empty { color: var(--mut); padding: 20px 0 4px; margin: 0; }

.nb-q { border-top: 1px solid var(--line); padding: 20px 0; }
.nb-q:first-child { border-top: 0; }
.nb-q h3 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.nb-q-meta { font-size: 13px; color: var(--mut); margin: 4px 0 12px; }
.nb-ans { margin: 8px 0 0 18px; padding: 12px 16px; border-left: 2px solid var(--or); background: var(--bg); border-radius: 0 12px 12px 0; color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.nb-maker-pill { font-size: 11px; font-weight: 800; background: var(--ye); color: var(--on); padding: 2px 8px; border-radius: 6px; margin-left: 6px; }

.nb-help { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--mut); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-height: 44px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; margin-top: 12px; transition: border-color .2s, color .2s; }
.nb-help:hover { border-color: var(--mut); color: var(--ink); }
.nb-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Reviews extras ---------- */
.nb-sort { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.nb-sort button { font-family: inherit; font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--s1); color: var(--mut); cursor: pointer; min-height: 36px; }
.nb-sort button.on2 { background: var(--s2); color: var(--ink); border-color: var(--mut); }

.nb-rec { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.nb-rec-g { background: #14532d; color: #4ADE80; }
.nb-rec-m { background: #422006; color: #FBBF24; }
.nb-rec-r { background: #7f1d1d; color: #F87171; }

.nb-card-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nb-card-foot .nb-help { margin-top: 10px; }
.nb-helpful-btn.voted { color: var(--ye); border-color: var(--ye); cursor: default; }
.nb-helpful-msg { font-size: 12px; color: var(--mut); margin-top: 10px; }

.nb-rec-pick { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.nb-rec-pick legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.nb-rec-pick label { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ---------- Light mode ---------- */
:root[data-theme="light"] .nb-qf > div,
:root[data-theme="light"] .nb-ans,
:root[data-theme="light"] .nb-ask-form input,
:root[data-theme="light"] .nb-ask-form textarea,
:root[data-theme="light"] .nb-answer-form input,
:root[data-theme="light"] .nb-answer-form textarea { background: var(--s2); }
:root[data-theme="light"] .nb-name { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 74, 18, .10) 0%, var(--s1) 55%); }
:root[data-theme="light"] .nb-pro h3 { color: #15803d; }
:root[data-theme="light"] .nb-con h3 { color: #b91c1c; }
:root[data-theme="light"] .nb-pro { border-color: #86efac; }
:root[data-theme="light"] .nb-con { border-color: #fca5a5; }
:root[data-theme="light"] .nb-pro li::before { background: #dcfce7; color: #15803d; }
:root[data-theme="light"] .nb-con li::before { background: #fee2e2; color: #b91c1c; }
:root[data-theme="light"] .nb-qf .ok b { color: #15803d; }
:root[data-theme="light"] .nb-qa-msg.ok { color: #15803d; }
:root[data-theme="light"] .nb-qa-msg.err { color: #b91c1c; }
:root[data-theme="light"] .nb-rec-g { background: #dcfce7; color: #15803d; }
:root[data-theme="light"] .nb-rec-m { background: #fef3c7; color: #b45309; }
:root[data-theme="light"] .nb-rec-r { background: #fee2e2; color: #b91c1c; }
:root[data-theme="light"] .nb-helpful-btn.voted { color: #b45309; border-color: #b45309; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nb-hero { grid-template-columns: minmax(0, 1fr); }
  .nb-title-lg { font-size: 72px; }
  .nb-title-md { font-size: 56px; }
  .nb-wm { font-size: 280px; }
  .nb-big { font-size: 128px; }
}
@media (max-width: 640px) {
  .nb-name, .nb-score { padding: 26px; border-radius: 28px; }
  .nb-tile { padding: 24px; border-radius: 24px; }
  .nb-title-lg { font-size: 56px; }
  .nb-title-md { font-size: 44px; }
  .nb-title-sm { font-size: 38px; }
  .nb-qa-row { grid-template-columns: minmax(0, 1fr); }
  .nb-sort { margin-left: 0; }
}
