/*
  =============================================================================
  Project: 3D Transform Gallery - Customizer Panel UI
  Author: Molla Samser | rskworld.in | 2026
  - Website: https://rskworld.in
  - Email: help@rskworld.in | support@rskworld.in
  - Phone: +91 93305 39277
  - Address: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India, 713147
  =============================================================================
*/

/* Customizer toggle button - fixed bottom-left - rskworld.in | 2026 */
.customizer-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full, 50%);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--accent-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, background 0.2s;
}

.customizer-toggle:hover {
  background: var(--bg-elevated);
  transform: scale(1.08);
}

.customizer-toggle[aria-expanded="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Panel overlay - Molla Samser | rskworld.in | 2026 */
.customizer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.customizer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Panel drawer */
.customizer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-in-out);
  overflow-y: auto;
  box-shadow: -8px 0 32px var(--shadow);
}

.customizer-panel.open {
  transform: translateX(0);
}

.customizer-panel-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.customizer-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.customizer-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s, color 0.2s;
}

.customizer-close:hover {
  background: var(--accent-dim);
  color: var(--accent-light);
}

.customizer-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.customizer-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.customizer-group label {
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--text-muted);
}

.customizer-group .hint {
  font-size: var(--font-tiny);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Accent color presets - rskworld.in | 2026 */
.accent-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.accent-presets button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.accent-presets button:hover {
  transform: scale(1.1);
}

.accent-presets button.active {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--bg-dark);
}

/* Slider */
.customizer-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  appearance: none;
  -webkit-appearance: none;
}

.customizer-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.customizer-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-card);
}

/* Reset button */
.customizer-reset {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  font-size: var(--font-small);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.customizer-reset:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Select - rskworld.in | 2026 */
#customizer-theme {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text);
  font-size: var(--font-small);
  cursor: pointer;
}
