/* ========================================
   THEME TOGGLE - SIMPLIFIED WORKING VERSION
   Uses typography.css variables only
   ======================================== */

#themeToggle {
  /* Base structure: navigation button style */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  /* Size and shape */
  height: 38px;
  padding: 0 1rem;
  border-radius: 8px;

  /* Typography - uppercase like nav buttons */
  color: #7ceaff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;

  /* Hollow/ghost style with cyan border */
  background: transparent;
  border: 1px solid #7ceaff;

  /* Subtle glow on the border */
  box-shadow:
    inset 0 0 0 1px rgba(124, 234, 255, 0.2),
    0 0 12px rgba(124, 234, 255, 0.1);

  /* Smooth transitions */
  transition: all 180ms ease-out;

  outline: none;
}

/* Hover state */
#themeToggle:hover {
  border-color: #7ceaff;
  background: rgba(124, 234, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(124, 234, 255, 0.3),
    0 0 20px rgba(124, 234, 255, 0.15);
  transform: translateY(-2px);
}

#themeToggle:active {
  transform: translateY(0px);
  background: rgba(124, 234, 255, 0.12);
}

#themeToggle:focus-visible {
  outline: 2px solid #7ceaff;
  outline-offset: 2px;
}

/* ========================================
   NAVIGATION INTEGRATION
   ======================================== */

.dr-global-language {
  background: transparent;
  border: none;
  padding: 1rem 2rem;
  backdrop-filter: none;
}

/* ========================================
   THEME TOGGLE PLACEMENT IN NAV
   ======================================== */

.dr-global-language__toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dr-global-language__toggle-label {
  display: none;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
  #themeToggle {
    height: 35px;
    padding: 0 0.85rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  #themeToggle {
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.65rem;
  }

  .dr-global-language__toggle-container {
    gap: 0.75rem;
  }
}

/* ========================================
   REDUCE MOTION SUPPORT
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  #themeToggle {
    transition: none !important;
  }

  #themeToggle:hover,
  #themeToggle:active {
    transform: none !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  #themeToggle,
  .dr-global-language__toggle-container {
    display: none;
  }
}
