/**
 * Light mode — global CSS variables
 */
html.jt-light,
body.jt-light {
  --jt-bg: #f4f4f4;
  --jt-surface: #ffffff;
  --jt-surface-2: #f5f5f5;
  --jt-text: rgba(0, 0, 0, 0.9);
  --jt-muted: rgba(0, 0, 0, 0.55);
  --jt-border: rgba(0, 0, 0, 0.1);
  --jt-primary: #111111;
  --jt-primary-text: #ffffff;
  --jt-hero-preview-bg: #111111;
  --jt-hero-preview-text: #ffffff;
  --jt-release-bg: #000000;
  --jt-release-text: #ffffff;
  --jt-accent-text: #0a0a0a;
  background: var(--jt-bg);
  color: var(--jt-text);
}

/**
 * Floating tools — [jt_theme_toggle]
 */
.jt-float-tools {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.jt-go-top,
.jt-theme-switch {
  appearance: none;
  border: 1px solid var(--jt-border);
  background: rgba(10, 10, 10, 0.88);
  color: var(--jt-text);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s ease, background 0.25s ease;
}

.jt-go-top {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  font-size: 18px;
  line-height: 1;
}

.jt-go-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.jt-go-top:hover,
.jt-theme-switch:hover {
  border-color: rgba(198, 255, 51, 0.35);
}

.jt-theme-switch {
  padding: 0;
}

.jt-theme-icon {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}

body.jt-light .jt-go-top,
body.jt-light .jt-theme-switch,
html.jt-light .jt-go-top,
html.jt-light .jt-theme-switch {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .jt-float-tools {
    right: 14px;
    bottom: 14px;
  }

  .jt-go-top,
  .jt-theme-switch {
    width: 42px;
    height: 42px;
  }
}
