/* honeypot.css — The Rug Sniffer.
 *
 * Modeled on revoker.css: same dark-panel/gold-glow/Comic-Sans identity, same
 * BOX pattern (one 0.75 .container over the site art, 0.9x panels inside),
 * same sr-only/skip-link pattern — copied rather than shared, same reasoning
 * nav.css documents for itself: this file must be self-sufficient, since it
 * is the only stylesheet honeypot.html links besides nav.css. Keep the four
 * nav tokens below — nav.css CONSUMES them and an unresolved var() fails
 * SILENTLY, rendering the navbar invisible. That already happened once on
 * nftviewer.html.
 */

* , *::before, *::after { box-sizing: border-box; }

:root {
  /* --navbar-bg and --glow deliberately match nav.css's OWN fallback values
     (rgba(0,0,0,0.95) / 0 0 10px rgba(255,69,0,0.7)) byte-for-byte rather than
     a page-specific tone — the same fix already made once for revoker.css
     (Task 6 of that plan): redefining these to a page-local "terminal"
     black/gold theme made THIS page's navbar bar visibly diverge from every
     other page's, caught by tests/nav-appearance.spec.js once honeypot.html
     joined its page list (Task 7). --c-orange matches the site (`orange`) for
     the same reason: nav.css builds the SHARED .navbar-link::after ember
     underline out of it, so a page-local value would desync hover colour too.
     The page's own warmer glow moved to --hp-glow, which nav.css does not
     consume and cannot leak into. */
  --navbar-bg: rgba(0, 0, 0, 0.95);
  --glow: 0 0 10px rgba(255, 69, 0, 0.7);
  --c-gold: #ffcf48;
  --c-orange: orange;
  --hp-glow: 0 0 12px rgba(255, 69, 0, .6);
}

body {
  margin: 0; font-family: var(--font-body, "Comic Sans MS", system-ui, sans-serif);
  background: url('images/BlazeitBG.png') no-repeat center center;
  background-size: cover;          /* cover, never 100% auto — see faucet/stats root cause */
  background-attachment: fixed; background-color: #b0e8f7;
  color: #fff; min-height: 100vh; overflow-x: hidden;
  padding-top: calc(var(--nav-h) + 24px);
  display: flex; flex-direction: column;
}

@media screen and (max-width: 768px) {
  body { padding-top: calc(var(--nav-h) + 16px); }
}

.container {                        /* the ONE box */
  /* flex: 1 0 auto (grow, never shrink, content basis) is the site's sticky-
     footer mechanism — same as revoker.css. With a plain `flex: 1` the box
     stayed content-height and the footer dropped onto the pale background
     instead of sitting at the page bottom against the box. */
  flex: 1 0 auto; width: 100%; max-width: 1000px; margin: 24px auto; padding: 24px 20px 40px;
  box-sizing: border-box; background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,207,72,.25); border-radius: 20px; box-shadow: var(--hp-glow);
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin: 0 0 5px;
  color: var(--c-gold, #ffcf48);
  text-shadow: 0 0 6px #ff8c00, 0 0 10px #ff4500;
  font-weight: bold;
}

.honeypot-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
}

.honeypot-panel { background: rgba(0,0,0,.55); border: 1px solid rgba(255,207,72,.2);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; text-align: left; }
.honeypot-panel h2 { margin: 0 0 10px; color: var(--c-gold, #ffcf48); }
.honeypot-panel ul { margin: 0; padding-left: 20px; }
.honeypot-panel li { margin: 0 0 8px; font-size: 0.9rem; color: rgba(255,255,255,.85); line-height: 1.5; }
.honeypot-panel li:last-child { margin-bottom: 0; }

#honeypotFormPanel { text-align: center; }

#honeypotAddress {
  min-height: var(--touch, 44px);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 207, 72, 0.5);
  background: rgba(0, 0, 0, 0.45);
  color: var(--c-gold);
  width: 100%;
  max-width: 420px;
  margin-bottom: 10px;
}
#honeypotAddress::placeholder { color: rgba(255, 207, 72, 0.4); }

.honeypot-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#honeypotCheck, #honeypotDemo {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: orange;
  color: black;
  font-weight: bold;
  border: none;
  cursor: pointer;
  min-height: var(--touch);
  transition: background-color 0.2s, opacity 0.2s;
  font-family: inherit;
  font-size: 1rem;
}
#honeypotCheck:hover:not(:disabled), #honeypotDemo:hover:not(:disabled) { background-color: darkorange; }
#honeypotCheck:disabled, #honeypotDemo:disabled { opacity: 0.5; cursor: not-allowed; }

.honeypot-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  min-height: 1.2em;
}

.honeypot-finding { border-left: 4px solid #888; padding: 8px 12px; margin: 8px 0;
  border-radius: 8px; background: rgba(255,255,255,.05); list-style: none; }
.honeypot-finding.sev-red { border-left-color: #ff4d4d; }
.honeypot-finding.sev-yellow { border-left-color: #ffcf48; }
.honeypot-finding.sev-info { border-left-color: #7fd7ff; }
.honeypot-findings { list-style: none; margin: 0; padding: 0; }

/* Rug-signal read (NOT a verdict). Task 5 maps engine banner keys to these:
   reeks→risk-high, scent→risk-med, clean→risk-low. */
.honeypot-banner { font-weight: bold; font-size: 1.05rem; margin: 0 0 10px; }
.honeypot-banner.risk-high { color: #ff6b6b; }
.honeypot-banner.risk-med  { color: #ffcf48; }
.honeypot-banner.risk-low  { color: #8affc1; }

.honeypot-ownership { margin: 0 0 10px; color: rgba(255,255,255,.85); font-size: 0.95rem; }

/* "That is one of ours" — shown only when the pasted address is a BLAZE
   contract. Deliberately NOT green and NOT a risk colour: it is an identity
   card, not a verdict, and a green-tinted panel over our own contracts would
   read as the self-blessing this page argues against. Gold rail, same family
   as .honeypot-identity. */
.honeypot-ours { margin: 0 0 14px; padding: 12px 14px;
  background: rgba(255, 207, 72, .07); border: 1px solid rgba(255, 207, 72, .35);
  border-left: 4px solid var(--c-gold); border-radius: 10px; }
.honeypot-ours-title { margin: 0 0 6px; font-weight: bold; font-size: 1.05rem; color: var(--c-gold); }
.honeypot-ours-story { margin: 0 0 8px; color: rgba(255,255,255,.9); font-size: 0.95rem; line-height: 1.6; }
/* The owner-powers disclosure. Dimmer than the story, never hidden in Advanced
   mode — it is the honest half, so it is visible in both registers. */
.honeypot-ours-powers { margin: 0 0 8px; color: rgba(255,255,255,.72); font-size: 0.9rem; line-height: 1.6; }
.honeypot-ours-links { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,.55); }
.honeypot-ours-link { color: var(--c-orange); text-decoration: none; font-weight: bold; }
.honeypot-ours-link:hover { text-decoration: underline; }

/* "Known project" — shown only when the pasted address matches the curated
   registry of established third-party tokens (honeypot-known.js). This one IS
   green, and deliberately so: unlike .honeypot-ours it names somebody ELSE's
   published contract, so the green is identity recognition, not self-blessing.
   The card's own copy still says recognition is not a verdict, and the full
   scan renders underneath it either way. */
.honeypot-known { margin: 0 0 14px; padding: 12px 14px;
  background: rgba(138, 255, 193, .07); border: 1px solid rgba(138, 255, 193, .35);
  border-left: 4px solid #8affc1; border-radius: 10px; }
.honeypot-known-title { margin: 0 0 6px; font-weight: bold; font-size: 1.05rem; color: #8affc1; }
.honeypot-known-story { margin: 0 0 8px; color: rgba(255,255,255,.9); font-size: 0.95rem; line-height: 1.6; }
/* The honesty half — never hidden, either register. */
.honeypot-known-context { margin: 0 0 8px; color: rgba(255,255,255,.72); font-size: 0.9rem; line-height: 1.6; }
.honeypot-known-links { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,.55); }
.honeypot-known-link { color: var(--c-orange); text-decoration: none; font-weight: bold; }
.honeypot-known-link:hover { text-decoration: underline; }

/* Token identity — core, both registers, not advanced-only. */
.honeypot-identity { margin: 0 0 10px; font-weight: bold; color: var(--c-gold); font-size: 1rem; }

/* Basic/Advanced toggle — same pill pattern as stats.css .stats-mode-toggle. */
.honeypot-mode-toggle { display: inline-flex; gap: 6px; padding: 5px; margin: 0 0 12px;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,122,24,.4); border-radius: 999px;
    /* Five buttons no longer fit one row on a phone (nav-parity's 360px
     * overflow catch, 2026-08-31) - the pill wraps instead of pushing the
     * page wide. */
    flex-wrap: wrap; justify-content: center; max-width: 100%; box-sizing: border-box; }
.honeypot-mode-btn { font-family: inherit; font-weight: bold; min-height: var(--touch);
  padding: 6px 16px; border: none; border-radius: 999px; background: transparent;
  color: rgba(255,255,255,.7); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.honeypot-mode-btn:hover { color: #fff; }
.honeypot-mode-btn.is-active { background: linear-gradient(90deg, #ff4500, var(--c-gold)); color: #000; box-shadow: var(--hp-glow); }
.honeypot-mode-btn:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .honeypot-mode-btn { transition: none; } }

/* Advanced-only content: hidden in Basic, shown when the container flips to advanced. */
/* Five registers, one attribute. Basic shows the finding cards; Advanced adds
 * the technical detail on top of them (as always); ELI5/Degen/Gonzo replace the
 * cards with their own container. Banner, identity and ownership stay visible
 * in every register — the signal leads no matter the voice. */
[data-honeypot-mode="basic"] .honeypot-advanced-only,
[data-honeypot-mode="eli5"] .honeypot-advanced-only,
[data-honeypot-mode="degen"] .honeypot-advanced-only,
[data-honeypot-mode="gonzo"] .honeypot-advanced-only { display: none; }
[data-honeypot-mode="eli5"] #honeypotFindings,
[data-honeypot-mode="degen"] #honeypotFindings,
[data-honeypot-mode="gonzo"] #honeypotFindings { display: none; }
.honeypot-voice { display: none; }
[data-honeypot-mode="eli5"] #honeypotEli5 { display: block; }
[data-honeypot-mode="degen"] #honeypotDegen { display: block; }
[data-honeypot-mode="gonzo"] #honeypotGonzo { display: block; }
.honeypot-voice li { list-style: none; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px;
    background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 207, 72, .3); line-height: 1.6; }
.honeypot-gonzo p { margin: 0 0 12px; line-height: 1.75; text-align: left; }
.honeypot-gonzo p:last-child { margin-bottom: 0; font-style: italic; }

/* ---- The Advanced report (#honeypotAdvanced) ----
 *
 * Advanced is the register where the reader wants the whole thing, so this is
 * the one block on the page that is real long-form reading: ~70ch measure and
 * 1.7 leading on every prose line (site READABILITY rule), tight monospace rows
 * where the content is data rather than prose. It carries .honeypot-advanced-only,
 * so the mode rules ABOVE hide it in eli5/basic/degen/gonzo — do not add a
 * display rule here that could win over them. */
.honeypot-advanced-report { margin: 14px 0 0; }
.honeypot-advanced-report:empty { display: none; }

.honeypot-adv-h {
  margin: 20px 0 8px; padding-bottom: 6px;
  color: var(--c-gold); font-size: 1rem; font-weight: bold;
  border-bottom: 1px solid rgba(255, 207, 72, .25);
}
.honeypot-adv-h:first-child { margin-top: 0; }

/* Prose. Capped at a readable measure and left-aligned — the panel itself is
   left-aligned already, so no auto margins here (they would centre the column
   inside the panel and leave a ragged gutter). */
.honeypot-adv-lede, .honeypot-adv-note, .honeypot-adv-para, .honeypot-adv-tech {
  max-width: 70ch; line-height: 1.7; margin: 0 0 8px;
}
.honeypot-adv-lede { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 12px; }
.honeypot-adv-para { color: rgba(255,255,255,.88); font-size: .92rem; margin-bottom: 12px; }
.honeypot-adv-para:last-child, .honeypot-adv-note:last-child { margin-bottom: 0; }

/* The two halves of every row. The "means" line is the brighter one; the
   "does not mean" line is dimmer but never faint — it is the half that stops a
   quiet probe being read as a promise, so it has to stay legible. */
.honeypot-adv-note { color: rgba(255,255,255,.85); font-size: .88rem; }
.honeypot-adv-not  { color: #c9bda6; font-style: italic; }

.honeypot-adv-probe, .honeypot-adv-fact, .honeypot-adv-power {
  padding: 10px 12px; margin: 0 0 10px; border-radius: 8px;
  background: rgba(255,255,255,.04); border-left: 3px solid rgba(255,207,72,.35);
}
.honeypot-adv-power.sev-red    { border-left-color: #ff4d4d; }
.honeypot-adv-power.sev-yellow { border-left-color: #ffcf48; }
.honeypot-adv-power.sev-info   { border-left-color: #7fd7ff; }

.honeypot-adv-probe-head, .honeypot-adv-fact-head, .honeypot-adv-power-head {
  margin: 0 0 6px; font-weight: bold; color: var(--c-gold);
  font-size: .92rem; line-height: 1.5; word-break: break-word;
}
.honeypot-adv-call, .honeypot-adv-val, .honeypot-adv-sig code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.honeypot-adv-val { color: #fff; word-break: break-all; }
/* A probe that never answered is prose, not a value — so it does not get the
   white monospace treatment that would make it read like one. */
.honeypot-adv-miss {
  color: #c9bda6; font-weight: normal; font-style: italic;
  font-family: inherit; word-break: normal;
}

.honeypot-adv-fact-sub {
  margin: 0 0 6px; font-size: .88rem; color: rgba(255,255,255,.85);
  word-break: break-all; line-height: 1.6;
}
.honeypot-adv-tech { color: rgba(255,255,255,.9); font-size: .88rem; }
.honeypot-adv-sig { margin: 0 0 6px; font-size: .82rem; color: #ffd98a; word-break: break-all; }
.honeypot-adv-where { font-size: .8rem; color: rgba(255,255,255,.6); }

/* ---- Shared a11y helpers ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: var(--c-gold);
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Footer — matches the canonical strip (arena.css/nftviewer.css/stats.css):
   a full-width DARK band so the text never sits on the pale-blue body. The
   revoker copy this page started from was transparent, which is why the footer
   read as "wrong" against the other pages (owner report 2026-08-11). */
.footer {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 14px;
  margin-top: 20px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.footer p { margin: 0; }
.trust-strip {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
  align-items: baseline;
  padding: 0 12px;
  font-size: 12px;
  color: #ded6c6; /* opaque: translucent text over a translucent panel has no contrast ratio (READABILITY rule) */
}
.trust-strip a { color: var(--c-gold); text-decoration: none; }
.trust-strip a:hover, .trust-strip a:focus-visible { color: var(--c-orange); text-decoration: underline; }
.trust-sep { opacity: 0.5; }

/* The per-finding "what does this mean?" link had NO color rule, so it fell
   back to the browser-default link blue (#00e) — unreadable on the dark
   panel (owner report 2026-08-10). Gold, underlined, high-contrast. */
/* :link AND :visited both pinned — a bare `.honeypot-learn` rule (0,1,0) LOSES
   to the UA's `a:visited` (0,1,1), so a clicked link went purple. This is why
   the owner saw purple, not gold. */
.honeypot-learn,
.honeypot-learn:visited {
  display: inline-block;
  margin-top: 4px;
  color: var(--c-gold);
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: underline;
}
.honeypot-learn:hover { color: #fff; }

/* Every address the report shows links to SonicScan. Same visited-safe pinning
   so a researched address stays readable, not purple. */
.honeypot-addr-link,
.honeypot-addr-link:visited {
  color: var(--c-gold);
  text-decoration: underline;
  word-break: break-all;
}
.honeypot-addr-link:hover { color: #fff; }

/* How it works — a plain-English primer, left rail. */
.honeypot-help { text-align: left; }
.honeypot-help h2 { margin: 0 0 10px; color: var(--c-gold); font-size: 1.05rem; }
.honeypot-help p { margin: 0 0 10px; color: rgba(255,255,255,.9); line-height: 1.55; font-size: 0.92rem; }
.honeypot-help p:last-child { margin-bottom: 0; }
.honeypot-help strong { color: var(--c-gold); }

/* Three bands: how-it-works (left) · tool (center) · limits (right). Center is
   FIRST in source so it leads on a phone. On desktop the grid pins each band to
   its column regardless of source order. Fractional tracks (grow with the
   viewport) never fixed caps — the caps-collapse lesson from revoker.css. */
.honeypot-grid { display: block; }
.honeypot-center > * { margin-left: auto; margin-right: auto; }
.honeypot-help, .honeypot-limits { text-align: left; }

@media screen and (min-width: 1200px) {
  .container { max-width: 1500px; }
  .honeypot-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2.1fr) minmax(240px, 1.15fr);
    gap: 20px;
    align-items: start;
  }
  .honeypot-help    { grid-column: 1; grid-row: 1; margin: 0; }
  .honeypot-center  { grid-column: 2; grid-row: 1; }
  .honeypot-limits  { grid-column: 3; grid-row: 1; margin: 0; }
}

@media screen and (max-width: 768px) { .container { margin: 12px auto; padding: 16px 12px 32px; } }

/* The page tagline spans the full grid, which put it at ~175 characters on a
   line — more than twice a readable measure. It is CENTRED, so a cap plus auto
   margins narrows it without leaving the dead left-hugging gap a cap would
   cause on left-aligned prose. */
.honeypot-tagline {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}
