/**
 * Alves Finança Familiar — Chips e Filtros (Design System)
 * Desenvolvido por Juliano Alves
 */

.chips-container {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: 4px 0 var(--space-sm) 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips-container::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background-color: var(--surface);
  color: var(--text-secondary);
  border: 0.5px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: all 200ms ease;
  user-select: none;
}

.chip:hover {
  background-color: var(--surface-sunken);
  color: var(--text-primary);
}

.chip.active {
  background-color: var(--primary);
  color: var(--primary-contrast);
  border-color: var(--primary);
  font-weight: 600;
}

.chip-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.2);
  color: inherit;
}
