/* wgf-currency-tab.css - THE /currencies/ index skin (currency_app.py ONLY).
   -----------------------------------------------------------------------------------------
   Owner law 2026-08-05: the page must read as the in-game Character pane > Currency tab
   (owner screenshots: framed dark panel, collapsible tan category bars with a +/- toggle,
   tight rows - name left, amount right, icon far right - description in the hover tooltip,
   zero-data rows greyed). OWNER_DOCTRINE_2026-07-04 binds: 1:1 in-game UI, real Blizzard
   texture slices only (/assets/ui/, sliced by tools/slice_ui_atlas.py), no web hover lifts.

   Real slices used here:
     auctionhouse-ui-dropdown-left/middle/right  -> the tan category bar (3-slice)
     128-redbutton-minus / -plus (+ -highlight)  -> the collapse toggle states
     auctionhouse-itemicon-small-border          -> the row icon frame
   The window frame itself is the kit .wgf-window from wgf-chrome.css (ig-38 standard).
   Scoped entirely under .wgf-curtab (Rule 11: this file is the ONE home for this skin).
   Loaded AFTER wgf-chrome.css; overrides win by scope, no !important. */

.wgf-curtab {
  max-width: 720px;
  margin: 0 auto var(--space-6);
}

/* filter row - the in-game dropdown slot holds our search box */
.wgf-curtab__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
}
.wgf-curtab__filter .rd-find__box { flex: 1 1 220px; }
.wgf-curtab__hint {
  margin: 0 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(232, 213, 175, 0.6);
}

/* ── category bar: the real AH dropdown 3-slice (tan bar, rounded ends), dark ink,
      +/- toggle on the right exactly like the client's Currency tab ─────────────── */
.wgf-curtab__cat { margin: 0 0 var(--space-2); }
.wgf-curtab__cat summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 6px;
  list-style: none;
  cursor: pointer;
  background:
    url("/assets/ui/auctionhouse-ui-dropdown-left.png") left center / auto 34px no-repeat,
    url("/assets/ui/auctionhouse-ui-dropdown-right.png") right center / auto 34px no-repeat,
    url("/assets/ui/auctionhouse-ui-dropdown-middle.png") center / calc(100% - 24px) 34px no-repeat;
}
.wgf-curtab__cat summary::-webkit-details-marker { display: none; }
.wgf-curtab__cat summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wgf-curtab__cat-name {
  flex: 1 1 auto;
  margin: 0;
  padding: 0 var(--space-3);
  font-family: var(--font-game);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.03em;
  /* the dropdown slice renders DARK on this panel (owner: "hard to read the expansion
     names") - so the bar wears the kit voice: bright gold + ink outline, never dark ink */
  color: var(--wgf-gold-bright);
  text-shadow: var(--text-ink-outline);
}
.wgf-curtab__cat summary:hover .wgf-curtab__cat-name { color: #fff; }
.wgf-curtab__toggle {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  background: url("/assets/ui/128-redbutton-minus.png") center / contain no-repeat;
}
.wgf-curtab__cat:not([open]) summary .wgf-curtab__toggle {
  background-image: url("/assets/ui/128-redbutton-plus.png");
}
.wgf-curtab__cat summary:hover .wgf-curtab__toggle {
  background-image: url("/assets/ui/128-redbutton-minus-highlight.png");
}
.wgf-curtab__cat:not([open]) summary:hover .wgf-curtab__toggle {
  background-image: url("/assets/ui/128-redbutton-plus-highlight.png");
}

/* ── rows: tight in-game ledger lines - name | amount | icon, indented under the bar,
      whole-line brighten on hover (the game idiom, never an underline) ───────────── */
.wgf-curtab__rows {
  display: flex;
  flex-direction: column;
  padding: var(--space-1) 0 var(--space-2) var(--space-3);
}
.wgf-curtab__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 34px;
  padding: 2px var(--space-2);
  color: var(--wgf-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}
.wgf-curtab__row:hover,
.wgf-curtab__row:focus-visible {
  background: rgba(26, 17, 7, 0.62);
  border-color: rgba(var(--wgf-gold-rgb), 0.45);
  outline: none;
  text-decoration: none;
}
.wgf-curtab__row:hover .wgf-curtab__name,
.wgf-curtab__row:focus-visible .wgf-curtab__name { color: var(--wgf-gold-bright); }

.wgf-curtab__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-game);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-shadow: var(--text-ink-outline);
  transition: color var(--motion-fast) var(--ease-standard);
}
.wgf-curtab__num {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--wgf-text);
  text-shadow: var(--text-ink-outline);
}
.wgf-curtab__unit {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 10px;
  color: rgba(232, 213, 175, 0.55);
}
.wgf-curtab__iconframe {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: url("/assets/ui/auctionhouse-itemicon-small-border.png") center / 100% 100% no-repeat;
}
.wgf-curtab__icon {
  display: block;
  width: 22px;
  height: 22px;
  background: #000;
  object-fit: cover;
}
/* the client greys currencies with nothing to show; ours = no caps and no description */
.wgf-curtab__row--muted .wgf-curtab__name { color: rgba(157, 157, 157, 0.85); }

/* ── unlinked row (--plain): the same ledger line with no click affordance. Used when the
      site publishes no detail page for that entry - we render the mined fact and never
      invent a URL to hang on it. ─────────────────────────────────────────────────────── */
.wgf-curtab__row--plain { cursor: default; }
.wgf-curtab__row--plain:hover {
  background: none;
  border-color: transparent;
}
.wgf-curtab__row--plain:hover .wgf-curtab__name { color: var(--wgf-text); }

/* ── prose row (--note): the "How to Get It" lines. Sentences, not names, so they wrap
      instead of ellipsing, and they carry no icon slot. ─────────────────────────────── */
.wgf-curtab__row--note {
  align-items: flex-start;
  padding-top: 6px;
  padding-bottom: 6px;
}
.wgf-curtab__row--note .wgf-curtab__name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.4;
}

/* ── the hover tooltip: the game's black panel - name line, yellow prose, caps ───── */
.wgf-curtab__tip {
  position: absolute;
  left: 55%;
  bottom: calc(100% + 2px);
  z-index: 30;
  display: none;
  width: min(320px, 80vw);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(80, 80, 90, 0.9);
  border-radius: 4px;
  background: rgba(9, 9, 15, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  text-align: left;
  white-space: normal;
}
.wgf-curtab__row:hover .wgf-curtab__tip,
.wgf-curtab__row:focus-visible .wgf-curtab__tip { display: block; }
.wgf-curtab__tip-name {
  display: block;
  margin: 0 0 2px;
  font-family: var(--font-game);
  font-size: var(--text-sm);
  color: #fff;
}
.wgf-curtab__tip-desc {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: #ffd100;                       /* the client's tooltip yellow */
}
.wgf-curtab__tip-caps {
  display: block;
  margin-top: 2px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: #fff;
}
/* touch devices have no hover - the row link's detail page carries everything */
@media (hover: none) {
  .wgf-curtab__row:hover .wgf-curtab__tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wgf-curtab__row, .wgf-curtab__name { transition: none; }
}

/* ═══ detail page (.wgf-curtab--detail): the same panel, one currency deep ═══════════
   Hero = big icon in the AH border + the name in its QUALITY colour (the client's own
   item-quality palette); description as tooltip-yellow prose; the facts ledger, the depth
   blocks ("Buys These Mounts/Battle Pets/Toys/Heirlooms", "How to Get It", the Trading Post
   bar) and the related list all reuse the shared row/bar pieces above - no new section
   chrome, just the --plain and --note row variants. */
.wgf-curtab--detail .wgf-curtab__hero {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
}
.wgf-curtab__heroframe {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: url("/assets/ui/auctionhouse-itemicon-small-border.png") center / 100% 100% no-repeat;
}
.wgf-curtab__heroicon {
  display: block;
  width: 36px;
  height: 36px;
  background: #000;
  object-fit: cover;
}
.wgf-curtab__title {
  margin: 0;
  font-family: var(--font-game);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: var(--text-ink-outline);
}
/* the client's currency-quality colours (module _QUALITY_LABEL order) */
.wgf-curtab__title--q0 { color: #ffffff; }   /* Standard */
.wgf-curtab__title--q1 { color: #1eff00; }   /* Uncommon */
.wgf-curtab__title--q2 { color: #0070dd; }   /* Rare */
.wgf-curtab__title--q3 { color: #a335ee; }   /* Epic */
.wgf-curtab__title--q4 { color: #ff8000; }   /* Legendary */

.wgf-curtab__desc {
  margin: 0 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: #ffd100;                       /* the client's tooltip yellow */
}
/* the facts ledger sits tight under the prose, not stretched across a page */
.wgf-curtab--detail .wgf-world-facts { max-width: 460px; margin: 0 0 var(--space-4); }

/* ── vendor map cards (Where to Spend It): the real zone composite, ALL of a zone's
      vendor pins on ONE card (pin/label styles ride in from wgf-worldmap.css), the
      caption carrying zone + flavor + coords. Owner facelift 2026-08-05: no per-card
      code boxes, no sideways scrolling anywhere in this section. ────────────────── */
.wgf-curtab__vzone {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(232, 213, 175, 0.66);
  text-shadow: none;
}
.wgf-curtab__maps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  margin: var(--space-3) 0 var(--space-2);
}
.wgf-curtab__map { margin: 0; }
.wgf-curtab__map-cap {
  display: block;
  padding: var(--space-1) 2px 0;
  line-height: 1.5;
}
.wgf-curtab__map-zone {
  display: block;
  font-family: var(--font-game);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wgf-gold);
  text-shadow: var(--text-ink-outline);
}
.wgf-curtab__map-flavor {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(232, 213, 175, 0.66);
}
.wgf-curtab__map-coords {
  font-variant-numeric: tabular-nums;
  color: rgba(232, 213, 175, 0.85);
}

/* the ONE TomTom block: every /way line together, one tap selects the lot */
.wgf-curtab__ways { margin: var(--space-2) 0 var(--space-1); }
.wgf-curtab__ways-hint {
  margin: 0 0 var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(232, 213, 175, 0.6);
}
.wgf-curtab__way-block {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: #ffd100;
  background: rgba(9, 9, 15, 0.85);
  border: 1px solid rgba(80, 80, 90, 0.7);
  border-radius: 4px;
  user-select: all;
  white-space: pre-wrap;         /* long lines WRAP - never a sideways scrollbar */
  overflow-wrap: anywhere;
}
