/* ========================================
   FILTER BAR — macOS-style filter container
   ======================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.filter-bar--inline {
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
}


/* ========================================
   FILTER PILLS — segmented control style (macOS)
   ======================================== */

.filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-surface-hover);
  border-radius: 9999px;
  border: 1px solid var(--border-default);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.25;
}

.filter-pill:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

/* Active — macOS-style elevated pill */
.filter-pill.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06);
  border-color: var(--border-default);
}

/* Active variant — filled with accent color */
.filter-pill.active--accent {
  background: var(--accent);
  color: var(--accent-contrast, white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.filter-pill.active--accent:hover {
  background: var(--accent-hover, var(--accent));
  color: var(--accent-contrast, white);
}


/* ========================================
   FILTER SELECT GROUP — labeled select wrapper
   ======================================== */

.filter-select-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 130px;
}

.filter-select-group > label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1;
}
