/* ============================================
   GrowMark — Pull Theme Switcher
   ============================================ */

.theme-switcher-wrap {
  position: fixed;
  top: 0;
  right: clamp(20px, 5vw, 60px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.theme-switcher {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  pointer-events: auto;
  touch-action: none; /* For mobile dragging */
  /* This transform will be controlled by JS */
  transform: translateY(0);
}

.theme-switcher:active {
  cursor: grabbing;
}

.theme-switcher__string {
  width: 2px;
  /* Extend the string far up so it doesn't detach from the top when pulled */
  height: 50vh;
  margin-top: calc(-50vh + 30px);
  background: var(--clr-border-3);
  transition: background 0.3s;
}

.theme-switcher__knob {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transform: translateY(-2px);
  transition: background 0.3s, box-shadow 0.3s;
}

/* Light mode knob (default is dark mode, so knob shows light) */
.theme-switcher__knob {
  background: radial-gradient(circle at center, #facc15, #fcd34d, #fef9c3);
  box-shadow: 0 0 20px 8px rgba(250,204,21,0.5);
}

/* Dark mode knob (when data-theme is light, knob shows dark) */
[data-theme="light"] .theme-switcher__knob {
  background: radial-gradient(circle at center, #4b5563, #1f2937, #000);
  box-shadow: 0 0 20px 6px rgba(31,41,55,0.7);
}

[data-theme="light"] .theme-switcher__string {
  background: rgba(0,0,0,0.2);
}

.theme-switcher__hint {
  font-size: var(--fs-micro);
  font-family: var(--font-secondary);
  color: var(--clr-text-muted);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.theme-switcher-wrap:hover .theme-switcher__hint {
  opacity: 1;
  transform: translateY(0);
}
