/* wgf-item-search.css - page-specific styling for /item/search/ (item_search_app).
   Owned by the page:item-search lane; linked ONLY through that module's extra_css.

   Everything shared stays shared: the rows are .result-row (wgf-result-rows.css), the
   search shell is .sr-* (wgf-search-results.css), the quality frames are .wgf-qborder
   (wgf-chrome.css) and the icon frames / leather grid are .wgf-tex-* (wgf-blizzard-
   textures.css). This sheet only adds what those do not cover: the art band, the tile
   grid, the row's fact list and the item-id chip.

   Palette: tokens from static/css/_tokens.css only - slate panels, bronze rules, gold
   headings, parchment ink. No green chrome, no gradient, no glow (docs/ui-ux/
   17-blizzard-palette.md). Item quality colours come from the shared --q-* tokens via
   .result-row__name--<quality>, which this sheet never redefines. */

/* ── the art band ───────────────────────────────────────────────────────────────────── */
.wgf-isearch-art {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wgf-metal, #6e5a2a);
  background: var(--wgf-panel-1, #14161c);
  padding: 0;
}
.wgf-isearch-art__img {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: cover;
  object-position: center;
  opacity: .34;
  border-bottom: 1px solid var(--wgf-metal, #6e5a2a);
}
.wgf-isearch-art__body {
  padding: 14px 18px 16px;
}
.wgf-isearch-art__body h1 {
  margin: 2px 0 6px;
  color: var(--wgf-gold, #ffd100);
}
.wgf-isearch-art__lede {
  margin: 0;
  max-width: 62ch;
  color: var(--wgf-text, #f4ecd8);
}
.wgf-isearch-art__credit {
  margin: 8px 0 0;
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--wgf-neutral-text, #9b9384);
}

/* On a wide screen the mosaic sits behind the copy instead of above it. */
@media (min-width: 760px) {
  .wgf-isearch-art__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-bottom: 0;
    opacity: .22;
  }
  .wgf-isearch-art__body {
    position: relative;
    padding: 22px 24px 24px;
  }
}

/* ── result-row additions ───────────────────────────────────────────────────────────── */
.sr-rows .result-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.sr-rows .result-row__meta li {
  font-size: .8rem;
  color: var(--wgf-muted, #b3a88f);
}
.result-row__meta-key {
  color: var(--wgf-neutral-text, #9b9384);
}
.result-row__meta-val {
  color: var(--wgf-text, #f4ecd8);
}
/* No icon on disk: the quality ring still frames a dark slot rather than a torn image. */
.wgf-isearch-row__noicon {
  display: block;
  background: var(--wgf-well, #08090c);
}
.wgf-isearch-row__id {
  display: block;
  margin-top: 2px;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--wgf-neutral-text, #9b9384);
}

/* ── empty / prompt states ──────────────────────────────────────────────────────────── */
.wgf-isearch-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.wgf-isearch-state__frame {
  flex: 0 0 auto;
}

/* ── browse grids ───────────────────────────────────────────────────────────────────── */
.wgf-isearch-browse__head {
  margin: 0 0 4px;
  color: var(--wgf-gold, #ffd100);
}
.wgf-isearch-browse__note {
  margin: 0 0 12px;
  color: var(--wgf-muted, #b3a88f);
}
.wgf-isearch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--wgf-metal, #6e5a2a);
}
.wgf-isearch-tile__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none;
  border: 1px solid var(--wgf-metal-soft, #3a3120);
  background: rgba(13, 15, 20, .82);
  color: var(--wgf-text, #f4ecd8);
}
.wgf-isearch-tile__link:hover,
.wgf-isearch-tile__link:focus-visible {
  border-color: var(--wgf-gold-accent, #b7912f);
  color: var(--wgf-gold, #ffd100);
}
.wgf-isearch-tile__frame {
  flex: 0 0 auto;
}
.wgf-isearch-tile__label {
  font-size: .92rem;
  line-height: 1.2;
}
.wgf-isearch-tile__sub {
  display: block;
  font-size: .76rem;
  color: var(--wgf-neutral-text, #9b9384);
}

/* ── result summary line ────────────────────────────────────────────────────────────── */
.wgf-isearch-families {
  margin: 2px 0 10px;
  font-size: .84rem;
  color: var(--wgf-muted, #b3a88f);
}
