/* ==========================================================================
   Dark Mode Component Overrides
   Fixes hardcoded values in components.css that don't respond to theme variables
   ========================================================================== */

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .depth-header {
  background: rgba(26, 32, 44, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .site-header.is-scrolled,
html[data-theme="dark"] .depth-header.is-scrolled {
  background: rgba(26, 32, 44, 0.97);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .mobile-nav,
html[data-theme="dark"] .mobile-menu {
  background: var(--color-bg);
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 2px solid var(--color-border);
  cursor: pointer;
  color: var(--color-text);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  min-height: 36px;
  min-width: 36px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-primary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
