/* ================================================================
   THEME SWITCHER COMPONENT
   Floating toggle button for light/dark theme switching
   ================================================================ */

.theme-switcher {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1060;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-switcher:hover {
  opacity: 1;
  transform: scale(1.05);
}

.theme-switcher-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-gold);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 1.5rem;
}

.theme-switcher-btn:hover {
  background: var(--brand-gold-90);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: rotate(20deg);
}

.theme-switcher-btn:active {
  transform: scale(0.95) rotate(20deg);
}

/* Icon switching */
.theme-icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-icon.hidden {
  opacity: 0;
  transform: scale(0) rotate(180deg);
  position: absolute;
}

.theme-icon.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Dark theme adjustments for switcher */
[data-theme="dark"] .theme-switcher-btn {
  background: var(--brand-gold);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .theme-switcher-btn:hover {
  background: var(--brand-gold-90);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .theme-switcher {
    bottom: 1rem;
    right: 1rem;
}

  .theme-switcher-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* Tooltip (optional) */
.theme-switcher-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-black);
  color: var(--brand-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-switcher-tooltip {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.theme-switcher:hover .theme-switcher-tooltip {
  opacity: 1;
}

@media (max-width: 768px) {
  .theme-switcher-tooltip {
display: none;
  }
}
