/* css/theme-toggle.css — Base styles for .theme-toggle control (v2.22.0)
   Theme-neutral: works in both Aurora and Ember.
   Ember-specific accent styling is handled by theme-ember.css. */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-sizing: border-box;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  outline: none;
  white-space: nowrap;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}

.theme-toggle-btn:active {
  transform: scale(0.96);
}

/* Active / checked state — base styling (accent overridden by theme) */
.theme-toggle-btn[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Focus-visible ring */
.theme-toggle-btn:focus-visible {
  outline: 2px solid rgba(0, 242, 255, 0.85);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.15);
}

/* Mobile drawer variant — full-width row inside #navLinks */
.theme-toggle-mobile {
  width: 100%;
  padding: 12px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.theme-toggle-mobile .theme-toggle {
  width: 100%;
  justify-content: center;
  height: 36px;
  border-radius: 12px;
}

.theme-toggle-mobile .theme-toggle-btn {
  min-width: auto;
  flex: 1;
  height: 28px;
  font-size: 14px;
  border-radius: 10px;
}

/* Responsive: hide toggle on very small screens if needed */
@media (max-width: 360px) {
  .theme-toggle-btn {
    min-width: 30px;
    padding: 0 7px;
    font-size: 12px;
  }
}
