/*
  filter-chip.css
  ---------------------------------------------------------------------
  A removable pill for an active filter or search facet: label text
  plus a small dismiss button. Compare with badge.css, which has no
  built-in remove control and is for static status/category labels
  rather than user-removable state.

  Requires: css/reset.css, css/core.css

  HTML STRUCTURE:
    <span class="filter-chip">
      Web Development
      <button type="button" class="filter-chip__remove" aria-label="Remove Web Development filter">&#10005;</button>
    </span>
  ---------------------------------------------------------------------
*/

@layer components {
  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: color-mix(in oklab, var(--color-accent) 14%, var(--color-surface));
    color: var(--color-accent-text);
    border: 1px solid color-mix(in oklab, var(--color-accent) 35%, transparent);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .filter-chip__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.7;
  }

  .filter-chip__remove:hover {
    opacity: 1;
  }
}
