/**
 * AVENIX Venture - Theme Toggle Component
 * Accessible, touch-friendly theme switcher (sun/moon)
 */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-touch-callout: none !important;
  outline: none;
}

.theme-toggle-btn:hover {
  background-color: var(--color-border-subtle);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.theme-toggle-btn:active,
.theme-toggle-btn:focus {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  opacity: 1 !important;
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Toggle icon states based on data-theme */
.theme-toggle-btn .icon-moon {
  display: none;
}

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

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

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