/* marketfilters.css — A4 filter-chip bar (scoped; style.css is owned by another
   task this wave, so all A4 chip styles live here). Tokens mirror style.css
   :root vars via var() so it inherits the theme. Neutral chrome: gray inactive,
   azure (--accent) active — NEVER green (green = up-move DATA only, rule #2). */

#market-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  margin: 0 0 8px;
  background: var(--bg-elev-1, #0c0f24);
  border: 1px solid var(--border-faint, #161b35);
  border-radius: var(--radius-md, 7px);
  /* 0-height / no border when the bar has no chips yet (byte-identical when the
     Market view hasn't populated it). */
}
#market-filters:empty {
  display: none;
}

#market-filters .mf-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#market-filters .mf-eyebrow {
  font-family: var(--font-display, 'Inter Tight', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary, #79829f);
  margin-right: 2px;
}

/* Inactive chip — gray chrome (color = data, gray = chrome discipline). */
#market-filters .mf-chip {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-display, 'Inter Tight', sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 10px;
  color: var(--text-secondary, #9ba3c0);
  background: var(--bg-elev-2, #131730);
  border: 1px solid var(--border-subtle, #232a4a);
  border-radius: 999px; /* pill — DexScreener chip idiom */
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
#market-filters .mf-chip:hover {
  border-color: var(--border-strong, #344066);
  color: var(--text-primary, #f0f3fa);
}

/* ACTIVE chip — azure hairline + soft azure fill. Explicitly NOT green: --accent
   is the brand blue (#009CE2), so an active filter can never read as a "go" cue. */
#market-filters .mf-chip.mf-on {
  color: var(--text-primary, #f0f3fa);
  background: var(--accent-soft, rgba(0, 156, 226, 0.14));
  border-color: var(--accent, #009CE2);
  box-shadow: inset 0 0 0 1px var(--accent, #009CE2);
}

#market-filters .mf-chip:focus-visible {
  outline: 2px solid var(--accent, #009CE2);
  outline-offset: 1px;
}

/* Clear-all — a plain gray text button, revealed only when a filter is active. */
#market-filters .mf-clear {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-display, 'Inter Tight', sans-serif);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  margin-left: auto;
  color: var(--text-tertiary, #79829f);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}
#market-filters .mf-clear:hover {
  color: var(--text-primary, #f0f3fa);
  border-color: var(--border-subtle, #232a4a);
}
#market-filters .mf-clear[hidden] { display: none; }

@media (max-width: 480px) {
  #market-filters {
    gap: 6px 8px;
    padding: 7px 8px;
  }
  #market-filters .mf-chip { font-size: 11px; padding: 5px 9px; }
}
