/**
 * shadcn/ui v4 ModeSwitcher-style header controls (from Playlists).
 */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav .nav-link,
.site-nav .theme-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: opacity 0.2s, background-color 0.2s;
  border-radius: calc(var(--radius) - 2px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  font-family: inherit;
}

.site-nav .theme-toggle {
  width: 2rem;
  height: 2rem;
  padding: 0.375rem;
  font-size: 0;
  line-height: 0;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:active,
.site-nav .nav-link.is-active,
.site-nav .nav-link.nav-selected,
.site-nav .theme-toggle:hover,
.site-nav .theme-toggle:active {
  opacity: 0.85;
  background-color: hsl(var(--accent));
}

.site-nav .nav-link:focus,
.site-nav .theme-toggle:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

#theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

#theme-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
