/* ============================================================================
 * Badge / Tag / Chip — small status & metadata primitives.
 *
 *   .wb-badge                       → base inline pill
 *   .wb-badge--neutral|brand|soft|outline|success|warning|danger
 *   .wb-badge--dot                  → leading colored dot
 *
 *   .wb-tag                         → square-corner content tag (filters, taxonomies)
 *   .wb-chip                        → removable interactive chip
 * ========================================================================== */

.wb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-1);
  padding: 0.25rem 0.625rem;
  font-size: var(--wb-text-xs);
  font-weight: var(--wb-fw-medium);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--wb-color-ink-2);
  background: var(--wb-color-bg-muted);
  border: var(--wb-border-width) solid transparent;
  border-radius: var(--wb-radius-full);
  white-space: nowrap;
}

.wb-badge--brand {
  background: var(--wb-color-brand-soft);
  color: var(--wb-color-brand-ink);
}
.wb-badge--outline {
  background: transparent;
  border-color: var(--wb-color-border);
  color: var(--wb-color-text);
}
.wb-badge--soft {
  background: var(--wb-color-bg-soft);
  color: var(--wb-color-text-muted);
}
.wb-badge--success {
  background: color-mix(in srgb, var(--wb-color-success) 12%, transparent);
  color: var(--wb-color-success);
}
.wb-badge--warning {
  background: color-mix(in srgb, var(--wb-color-warning) 14%, transparent);
  color: var(--wb-color-warning);
}
.wb-badge--danger {
  background: color-mix(in srgb, var(--wb-color-danger) 12%, transparent);
  color: var(--wb-color-danger);
}

.wb-badge--dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.wb-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: var(--wb-text-xs);
  font-weight: var(--wb-fw-medium);
  color: var(--wb-color-text);
  background: var(--wb-color-bg-soft);
  border-radius: var(--wb-radius-sm);
  text-decoration: none;
  transition: background-color var(--wb-duration-base) var(--wb-ease);
}
.wb-tag:hover { background: var(--wb-color-bg-muted); }

.wb-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-2);
  padding: 0.375rem 0.875rem;
  font-size: var(--wb-text-sm);
  background: var(--wb-color-bg-soft);
  border: var(--wb-border-width) solid var(--wb-color-border);
  border-radius: var(--wb-radius-full);
}
.wb-chip__close {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--wb-color-text-muted);
}
.wb-chip__close:hover { color: var(--wb-color-ink); }
