/* wgf-forever-ah.css - the WoW Forever auction house browser, /wow-forever/auction-house/
 *
 * THIN OVERLAY. The page wears the RETAIL auction house's chrome: assets/ah/base.css owns
 * the window, the toolbar, the category rail, the table and every colour in them, and
 * assets/wgf-ah-page.css owns the title band and the "Jump to" row. Nothing here restates
 * any of that (owner 2026-09-19: "why is your auction house different from the retail
 * version" - because it had its own sheet; it does not any more).
 *
 * What IS here is only what a SERVER-RENDERED, JavaScript-free browser needs that the
 * retail JS app never has to draw:
 *   1. category rows are <a>, not <button>, so the rail's gold link colour has to be
 *      taken back off them;
 *   2. a per-row count in the rail (the JS app has no counts at all);
 *   3. the "Last seen" column, which stands where retail's Market column stands;
 *   4. the pager, the provenance panel and the two mini lists, which retail has no
 *      equivalent of - retail scrolls one long table and has a Blizzard timestamp.
 */

/* ── 1. the rail's rows are links here ────────────────────────────────────────────── */
/* base.css paints every <a> inside .ah-category-tree gold for the old link list. Our rows
   ARE links, so they would all come out gold and lose the active/hover states. */
.ah-category-tree a.ah-cat-row,
.ah-category-tree a.ah-cat-row:hover {
  color: inherit;
  text-decoration: none;
}
.ah-category-tree a.ah-cat-row.top { color: var(--ah-gold); }
.ah-category-tree a.ah-cat-row:hover { color: var(--ah-gold); }
.ah-cat-row { cursor: pointer; }

/* ── 2. counts in the rail ────────────────────────────────────────────────────────── */
.ah-cat-count {
  margin-left: auto;
  padding-left: var(--space-2, 8px);
  color: var(--ah-muted, #8d8577);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
}
.ah-cat-row.active .ah-cat-count { color: var(--ah-gold); }

/* ── 3. the Last seen column (retail's Market slot) ───────────────────────────────── */
/* A real width, not width:1%: .ah-table is table-layout:fixed, so the head row's widths
   are the whole layout and an auto column would collapse and overflow the shell. 150px
   is the slot retail's .col-market holds. */
.ah-table .col-seen {
  width: 150px;
  white-space: nowrap;
  text-align: right;
}
.ah-table td.col-seen {
  color: var(--ah-muted, #8d8577);
  font-size: 12px;
}
.ah-table td.ah-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--ah-muted, #8d8577);
}
/* An item with no datamined icon still keeps its square, so the name column never jumps. */
.wgf-ah-fpicon.fah-icon--empty {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

/* ── the house bar: realm + faction chips above the table ─────────────────────────── */
.ah-state-bar.fah-houses { flex-wrap: wrap; gap: 6px; }
.fah-houses .ah-state-chip.is-on {
  border-color: var(--ah-gold);
  color: var(--ah-gold);
}
.fah-houses .fah-house--alliance.is-on { border-color: #4a7dc4; }
.fah-houses .fah-house--horde.is-on { border-color: #a63a3a; }

/* ── 4. pager ─────────────────────────────────────────────────────────────────────── */
.fah-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3, 12px);
  padding: var(--space-3, 12px) 0 var(--space-2, 8px);
  flex-wrap: wrap;
}
.fah-pager__where {
  color: var(--ah-muted, #8d8577);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ah-filter-button.is-off { opacity: 0.4; cursor: default; }

/* ── 4b. provenance panel ─────────────────────────────────────────────────────────── */
.fah-provenance { margin-top: var(--space-4, 16px); padding-bottom: var(--space-3, 12px); }
.fah-provenance__text {
  margin: 0 var(--space-3, 12px);
  padding-top: var(--space-2, 8px);
  color: var(--wgf-ink-2, #cfc6b4);
  font-size: 13px;
  line-height: 1.6;
  max-width: 78ch;
}
.fah-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 12px);
  margin: var(--space-3, 12px);
  padding: 0;
  list-style: none;
}
.fah-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  background: var(--wgf-panel-2, #191410);
  border: 1px solid var(--wgf-border-neutral-soft, #3a3128);
  border-radius: 5px;
}
.fah-facts span {
  color: var(--ah-muted, #8d8577);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fah-facts b { color: var(--ah-gold); font-size: 14px; }

/* ── 4c. the two mini lists ───────────────────────────────────────────────────────── */
.fah-minis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3, 12px);
  margin-top: var(--space-3, 12px);
}
.fah-mini__note {
  margin: var(--space-2, 8px) var(--space-3, 12px) 0;
  color: var(--ah-muted, #8d8577);
  font-size: 12px;
  line-height: 1.5;
}
.fah-mini__list { margin: var(--space-2, 8px) 0 var(--space-3, 12px); padding: 0; list-style: none; }
.fah-mini__row {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: 4px var(--space-3, 12px);
  min-height: 28px;
}
.fah-mini__row:hover {
  background: url(/assets/ui/auctionhouse-ui-row-highlight.png) left top / auto 100% repeat-x;
}
.fah-mini__row .ah-item-cell { flex: 1 1 auto; min-width: 0; }
.fah-mini__v {
  flex: 0 0 auto;
  color: var(--ah-muted, #8d8577);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* ── the addon call to action ─────────────────────────────────────────────────────── */
.fah-cta {
  margin-top: var(--space-3, 12px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: var(--wgf-panel-2, #191410);
  border: 1px solid var(--wgf-border-neutral-soft, #3a3128);
  border-radius: 6px;
}
.fah-cta h2 { margin: 0 0 var(--space-2, 8px); color: var(--ah-gold); font-size: 16px; }
.fah-cta p { margin: 0 0 var(--space-2, 8px); color: var(--wgf-ink-2, #cfc6b4); font-size: 13px; line-height: 1.6; max-width: 72ch; }

/* ── phone ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .ah-table th.col-seen, .ah-table td.col-seen { display: none; }
  .fah-facts li { min-width: 0; flex: 1 1 140px; }
}
