/* wgf-collection-checker.css -- M69: the character collection "what am I missing" checker panel.
   Composable panel dropped into /mounts/, /battle-pets/, /transmog-sets/, /achievements/ by each hub.
   A visitor types their character; the panel diffs their owned collection against the datamined
   catalog and lists the missing entries + the factual easy wins. Reuses the wgf-ag-card --row idiom
   for the result rows. Tokens only; states default / hover / focus; reduced-motion respected. */

.wgf-cc {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  border: 2px solid var(--wgf-metal);
  border-radius: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.44)),
    url(/assets/ui/classhall-stone-tile.png) left top / 256px 256px repeat,
    var(--wgf-plate);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.65),
    var(--shadow-2);
}

.wgf-cc__h {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--wgf-gold-primary);
}

.wgf-cc__lede {
  margin: 0 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--wgf-muted);
}

.wgf-cc__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* name-first: the character input is the hero; realm / region / submit sit under it */
.wgf-cc__hero { width: 100%; max-width: 520px; }
.wgf-cc__input--hero {
  width: 100%;
  box-sizing: border-box;
  font-size: var(--text-lg);
  padding: var(--space-3) var(--space-3);
}

.wgf-cc__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
}

.wgf-cc__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--wgf-muted);
}

.wgf-cc__input {
  min-width: 160px;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  color: var(--wgf-text);
  background: var(--wgf-bg-2);
  border: 1px solid var(--wgf-border-neutral);
  border-radius: var(--radius-control);
}
.wgf-cc__region { min-width: 90px; }
.wgf-cc__input:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.wgf-cc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--wgf-btn-h);
  min-width: 96px;
  padding: 0 var(--wgf-btn-cap);
  border: 0;
  border-radius: 0;
  background:
    url(/assets/ui/128-redbutton-left-cap.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center.png) left center / auto 100% repeat-x content-box;
  background-color: transparent;
  color: var(--wgf-gold-bright);
  font-family: var(--font-game);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: var(--text-ink-outline);
  cursor: pointer;
  transition: filter var(--motion-fast) var(--ease-standard);
}
.wgf-cc__btn:hover { filter: brightness(1.12); }
.wgf-cc__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wgf-cc__btn:active {
  background:
    url(/assets/ui/128-redbutton-left-cap-pressed.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap-pressed.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center-pressed.png) left center / auto 100% repeat-x content-box;
  transform: translateY(1px);
  filter: brightness(0.92);
}
.wgf-cc__btn[disabled] {
  background:
    url(/assets/ui/128-redbutton-left-cap-disabled.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap-disabled.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center-disabled.png) left center / auto 100% repeat-x content-box;
  color: var(--wgf-gold-dim);
  cursor: default;
  pointer-events: none;
  filter: none;
}

.wgf-cc__results { margin-top: var(--space-4); }

.wgf-cc__summary {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  color: var(--wgf-text);
  margin: 0 0 var(--space-3);
}
.wgf-cc__summary b { color: var(--wgf-gold-bright); }

.wgf-cc__grouph {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--wgf-gold-primary);
  margin: var(--space-4) 0 var(--space-2);
}

.wgf-cc__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* result row: reuses the wgf-ag-card --row plate; not a link (informational, not navigable) */
.wgf-cc__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--wgf-metal);
  border-radius: 0;
  background: var(--wgf-panel-1);
}
.wgf-cc__row-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--wgf-gold-rgb), .45);
  border-radius: 3px;
  background: #000;
  object-fit: cover;
}
.wgf-cc__row-icon--blank {
  display: inline-block;
  background: linear-gradient(180deg, var(--wgf-panel-3), var(--wgf-panel-1));
}
.wgf-cc__row-txt { min-width: 0; flex: 1 1 auto; }
.wgf-cc__row-name {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-md);
  color: var(--wgf-text);
  line-height: 1.2;
}
.wgf-cc__row-fact {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--wgf-muted);
}
/* The requirement note is its OWN LINE under the fact text (2026-07-04 regression fix:
   as an end-aligned no-shrink flex item it ate the card width and wrapped the name
   one-word-per-line in the 240px grid cards). */
.wgf-cc__row-note {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--wgf-gold-soft);
}

.wgf-cc__more {
  margin: var(--space-2) 0 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--wgf-muted);
}

.wgf-cc__msg {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  color: var(--wgf-muted);
  margin: var(--space-2) 0;
}
.wgf-cc__msg--err { color: var(--wgf-down); }

@media (max-width: 560px) {
  .wgf-cc__input { min-width: 0; flex: 1 1 auto; }
  .wgf-cc__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wgf-cc__btn { transition: none; }
}
