/**
 * Dark Mode Toggle Component
 * ==========================
 * A water-themed toggle button for switching between light and dark modes
 * Positioned in the footer bottom right corner
 */

/* ====================
   TOGGLE BUTTON
   ==================== */

.dark-mode-toggle {
  position: fixed !important;
  right: calc(var(--giw-fab-right) + var(--giw-fab-avoid-right)) !important;
  bottom: calc(var(--giw-fab-bottom) + var(--giw-fab-avoid-bottom)) !important;
  top: auto !important;
  left: auto !important;
  width: var(--giw-fab-size);
  height: var(--giw-fab-size);
  border-radius: 50%;
  background: linear-gradient(135deg, #0077BE, #00D4E4);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10005 !important;
  box-shadow: 0 8px 25px rgba(0, 119, 190, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 10px 35px rgba(0, 119, 190, 0.6);
}

.dark-mode-toggle:focus-visible {
  outline: 3px solid rgba(0, 212, 228, 0.85);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(0, 119, 190, 0.25);
}

.dark-mode-toggle-icon {
  font-size: 1.75rem;
  transition: transform 0.3s ease;
}

/* ====================
   MOBILE RESPONSIVE
   ==================== */

@media (max-width: 768px) {
  .dark-mode-toggle {
    /* sizing handled by variables.css */
  }

  .dark-mode-toggle-icon {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dark-mode-toggle {
    transition: none;
  }

  .dark-mode-toggle:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 119, 190, 0.4);
  }

  .dark-mode-toggle-icon {
    transition: none;
  }
}

/* ====================
   BUTTON EXCLUSIONS
   ==================== */

body.dark-mode #mobile-drawer .mobile-navigation a {
    color: var(--global-palette9) !important;
}
