/* =========================================================
   THE ALCHEMIST ARTISTS — INTERACTIVE COLOR WHEEL STYLES
   ========================================================= */

.colorwheel-page-container {
  max-width: 1200px;
  margin: 32px auto 60px;
  padding: 0 24px;
}

/* Page Hero */
.colorwheel-hero {
  text-align: center;
  margin-bottom: 40px;
}

.colorwheel-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(229, 185, 95, 0.2);
  color: #7d5218;
  border: 1px solid rgba(229, 185, 95, 0.45);
  margin-bottom: 14px;
}

.colorwheel-hero-title {
  font-size: 38px;
  color: #2e2010;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  margin-bottom: 14px;
}

.colorwheel-hero-desc {
  font-size: 16px;
  color: #5c4e3c;
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Tool Workspace Grid */
.colorwheel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 980px) {
  .colorwheel-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Interactive Wheel & Controls */
.wheel-card {
  background: #ffffff;
  border: 1px solid rgba(229, 185, 95, 0.4);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 10px 32px rgba(90, 70, 40, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wheel-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.wheel-title-group h2 {
  font-size: 20px;
  color: #2e2010;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 4px;
}

.wheel-title-group p {
  font-size: 13px;
  color: #7a6e60;
  margin: 0;
}

.wheel-rotation-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-wheel-control {
  background: #fff9f0;
  border: 1px solid rgba(229, 185, 95, 0.45);
  color: #613e10;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-wheel-control:hover {
  background: #e5b95f;
  color: #fff;
  border-color: #d49f38;
}

.btn-wheel-control:focus-visible {
  outline: 3px solid #e5b95f;
  outline-offset: 2px;
}

/* SVG Wheel Container */
.wheel-canvas-container {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  position: relative;
  margin: 0 auto;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.wheel-canvas-container:active {
  cursor: grabbing;
}

.wheel-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(60, 40, 20, 0.12));
}

#harmonyOverlayGroup,
#harmonyOverlayGroup * {
  pointer-events: none !important;
}

.wheel-sector {
  cursor: pointer;
  pointer-events: auto !important;
  transition: opacity 0.15s ease, transform 0.15s ease, filter 0.15s ease;
  outline: none;
}

.wheel-sector:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(229, 185, 95, 0.75));
  opacity: 1 !important;
}

.wheel-sector:focus-visible {
  stroke: #ffffff !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 10px #e5b95f);
}

.wheel-sector.active-selected {
  stroke: #ffffff !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 6px #e5b95f) !important;
  opacity: 1 !important;
}

.wheel-sector.harmony-highlight {
  stroke: #ffd700 !important;
  stroke-width: 2.5px !important;
  opacity: 0.95 !important;
}

.wheel-sector.dimmed {
  opacity: 0.42;
}

/* Wheel Center Hub */
.wheel-center-hub {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.wheel-center-hub:hover {
  transform: scale(1.03);
}

/* Wheel Drag Hint */
.wheel-drag-hint {
  font-size: 12px;
  color: #8c7f70;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Right Column: Harmony Explorer & Inspector */
.inspector-card {
  background: #ffffff;
  border: 1px solid rgba(229, 185, 95, 0.4);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 32px rgba(90, 70, 40, 0.07);
  margin-bottom: 24px;
}

.inspector-card h2, .inspector-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2e2010;
  margin: 0 0 16px;
}

/* Active Color Header Banner */
.active-color-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffdf9;
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.active-color-swatch-box {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  position: relative;
}

.active-color-info {
  flex: 1;
}

.active-color-name {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  color: #2e2010;
  margin-bottom: 4px;
  line-height: 1.2;
}

.active-color-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.color-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.badge-primary { background: #fee7c2; color: #8c4c00; border: 1px solid #f5b96b; }
.badge-secondary { background: #d7e8d5; color: #1e6128; border: 1px solid #9fcf9b; }
.badge-tertiary { background: #e8dff5; color: #522785; border: 1px solid #c2aee0; }
.badge-warm { background: #fae0dc; color: #9c271d; }
.badge-cool { background: #d9e8f5; color: #154c79; }

.active-color-codes {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-family: monospace;
  color: #55483a;
  flex-wrap: wrap;
}

.btn-copy-code {
  background: rgba(229, 185, 95, 0.2);
  border: 1px solid rgba(229, 185, 95, 0.45);
  color: #7d5218;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: #7d5218;
  color: #fff;
}

/* Harmony Mode Tabs */
.harmony-mode-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(229, 185, 95, 0.25);
}

.btn-harmony-tab {
  background: #fff9f0;
  border: 1px solid rgba(229, 185, 95, 0.4);
  color: #5c4731;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-harmony-tab:hover {
  background: #faeecf;
  color: #3b2812;
  border-color: #e5b95f;
}

.btn-harmony-tab.active {
  background: #7d5218;
  color: #ffffff;
  border-color: #613e10;
  box-shadow: 0 3px 10px rgba(125, 82, 24, 0.25);
}

.btn-harmony-tab:focus-visible {
  outline: 3px solid #e5b95f;
  outline-offset: 2px;
}

/* Harmony Palette Swatches Strip */
.harmony-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.harmony-swatch-item {
  background: #fffdfa;
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.harmony-swatch-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(60, 40, 20, 0.08);
}

.harmony-swatch-color {
  width: 100%;
  height: 54px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.harmony-swatch-title {
  font-size: 12px;
  font-weight: 800;
  color: #2e2010;
  margin-bottom: 2px;
}

.harmony-swatch-role {
  font-size: 10.5px;
  color: #8c7a65;
  margin-bottom: 4px;
}

.harmony-swatch-hex {
  font-size: 11px;
  font-family: monospace;
  color: #554433;
  background: rgba(229, 185, 95, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Educational Harmony Explanation Box */
.harmony-explanation-box {
  background: #fff9f0;
  border-left: 4px solid #e5b95f;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.harmony-explanation-title {
  font-size: 15px;
  font-weight: 800;
  color: #7d5218;
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 6px;
}

.harmony-explanation-text {
  font-size: 13.5px;
  color: #4f4233;
  line-height: 1.6;
  margin-bottom: 8px;
}

.harmony-master-example {
  font-size: 12.5px;
  color: #6d5b45;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Full Width Secondary Sections (Tints, Mixing, Palette) */
.secondary-section-card {
  background: #ffffff;
  border: 1px solid rgba(229, 185, 95, 0.4);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 10px 32px rgba(90, 70, 40, 0.07);
  margin-bottom: 40px;
}

.secondary-section-card h2 {
  font-size: 26px;
  color: #2e2010;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 8px;
}

.secondary-section-card .section-desc {
  font-size: 14.5px;
  color: #635543;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Tints, Tones & Shades Scales */
.scales-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.scale-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scale-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #3b2c18;
}

.scale-swatches-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.scale-swatch-box {
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.scale-swatch-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scale-swatch-label {
  font-size: 9.5px;
  font-family: monospace;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 1px 3px;
  border-radius: 3px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.scale-swatch-box:hover .scale-swatch-label {
  opacity: 1;
}

/* Interactive Value & Saturation Sliders */
.interactive-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 24px;
  align-items: center;
  background: #fffdf9;
  border: 1px solid rgba(229, 185, 95, 0.3);
  border-radius: 14px;
  padding: 20px 24px;
}

@media (max-width: 768px) {
  .interactive-sliders-grid {
    grid-template-columns: 1fr;
  }
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-group label {
  font-size: 13px;
  font-weight: 700;
  color: #3a2b18;
  display: flex;
  justify-content: space-between;
}

.slider-range {
  width: 100%;
  accent-color: #e5b95f;
  cursor: pointer;
}

.slider-live-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slider-preview-swatch {
  width: 100%;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

/* Subtractive Color Mixing Studio */
.mixing-studio-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .mixing-studio-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.mixing-picker-box {
  background: #fffdfa;
  border: 1px solid rgba(229, 185, 95, 0.4);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mixing-picker-swatch {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mixing-select-dropdown {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(229, 185, 95, 0.5);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #3a2b18;
  cursor: pointer;
}

.mixing-operator {
  font-size: 28px;
  font-weight: 800;
  color: #7d5218;
}

.mixing-result-box {
  background: #fff9ed;
  border: 2px solid #e5b95f;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(229, 185, 95, 0.2);
}

.mixing-result-swatch {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.mixing-ratio-control {
  background: #fffdf9;
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.mixing-ratio-header {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: #3b2c18;
  margin-bottom: 8px;
}

/* Palette Builder */
.palette-builder-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.palette-tray {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  min-height: 110px;
  background: #fffdfa;
  border: 2px dashed rgba(229, 185, 95, 0.45);
  border-radius: 14px;
  padding: 16px;
  align-items: center;
}

.palette-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: #8c7e6c;
  font-size: 14px;
  padding: 20px 0;
}

.palette-chip {
  background: #ffffff;
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  position: relative;
}

.palette-chip-swatch {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
}

.palette-chip-name {
  font-size: 11px;
  font-weight: 700;
  color: #2e2010;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.palette-chip-hex {
  font-size: 10px;
  font-family: monospace;
  color: #665544;
}

.palette-chip-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cb6b5c;
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}

.palette-chip-remove:hover {
  transform: scale(1.15);
}

.palette-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-palette-add {
  background: #7d5218;
  color: #ffffff;
  border: 1px solid #613e10;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-palette-add:hover {
  background: #613e10;
  box-shadow: 0 4px 14px rgba(125, 82, 24, 0.25);
}

.btn-palette-download {
  background: #e5b95f;
  color: #2e2010;
  border: 1px solid #d49f38;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-palette-download:hover {
  background: #d49f38;
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 185, 95, 0.35);
}

.btn-palette-clear {
  background: transparent;
  color: #8c7355;
  border: 1px solid rgba(229, 185, 95, 0.4);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-palette-clear:hover {
  background: #fff0eb;
  color: #cb6b5c;
  border-color: #cb6b5c;
}

/* Disclaimer Callouts */
.color-disclaimer-callout {
  background: #fdfaf3;
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: #73634e;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

/* Palette Chip Pulse Highlight */
.palette-chip-highlight {
  animation: pulseGoldHighlight 1.2s ease;
}

@keyframes pulseGoldHighlight {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(229, 185, 95, 0); }
  40% { transform: scale(1.08); box-shadow: 0 0 16px rgba(229, 185, 95, 0.9); border-color: #7d5218; }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(229, 185, 95, 0); }
}

/* Floating Toast Notification */
.colorwheel-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #2e2010;
  color: #fff9f0;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  border-left: 4px solid #e5b95f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 9999;
  pointer-events: none;
}

.colorwheel-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.colorwheel-toast.toast-success {
  border-left-color: #2ea043;
}

.colorwheel-toast.toast-error {
  border-left-color: #cb6b5c;
}

.colorwheel-toast.toast-info {
  border-left-color: #e5b95f;
}

