/* Filter tab styles */

#filter-tabs,
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 1.5rem auto 0;
  max-width: 600px;
  border-bottom: 1px solid var(--color-border);
  padding: 0 1rem;
  flex-wrap: wrap;
}

/* Primary tab button (.tab-btn used by HEAD) */
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  margin-bottom: -1px;
  font-family: var(--font-stack);
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* Tab button alias (.tab-button used by developer-1) */
.tab-button {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-muted);
  font-size: 1rem;
  font-family: var(--font-family);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.tab-button:hover {
  color: var(--color-text);
}

.tab-button.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Tab count badge */
.tab-count {
  display: inline-block;
  margin-left: var(--space-xs);
  font-size: 0.75rem;
  color: inherit;
  font-weight: 400;
  opacity: 0.7;
}

.tab-btn.active .tab-count,
.tab-button.active .tab-count {
  color: var(--color-accent);
  opacity: 1;
}

/* Legacy filter tab */
.filter-tab {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  cursor: pointer;
  padding-bottom: 0.5rem;
  position: relative;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.filter-tab:hover {
  color: var(--color-text);
}

.filter-tab.active {
  color: var(--color-accent);
}

.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
  animation: slideIn var(--transition-fast) ease-in-out;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 100%;
    left: 0;
  }
}

/* Tab label */
.tab-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
