/* ==========================================================================
   Accent color switcher
   ========================================================================== */

.style-switcher {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 85;
}

.style-switcher-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 18px;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
}

.style-switcher-toggle:hover {
  color: var(--skin-color);
  border-color: var(--skin-color);
}

.style-switcher.open .style-switcher-toggle i {
  transform: rotate(180deg);
}

.style-switcher-toggle i {
  transition: transform 0.3s ease;
}

.style-switcher-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  min-width: 210px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.style-switcher.open .style-switcher-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.style-switcher-panel h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.switcher-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.switcher-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 1px var(--border-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.switcher-color:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--skin-color);
}

.switcher-color.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--skin-color);
}
