/* ============================================================
   ColorCube — Image Adjustments page styles
   ============================================================ */

/* ── Canvas + compare ────────────────────────────────────────── */
.adj-canvas-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.adj-canvas-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.adj-compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
canvas.adj-canvas {
  max-width: 100%;
  height: auto;
  display: none;
  border-radius: var(--radius);
  /* Checkerboard background so alpha/transparency changes stay visible */
  background-image:
    linear-gradient(45deg, var(--surface2) 25%, transparent 25%),
    linear-gradient(-45deg, var(--surface2) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--surface2) 75%),
    linear-gradient(-45deg, transparent 75%, var(--surface2) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.adj-compare-btn {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.adj-compare-btn:hover:not(:disabled) { border-color: var(--text-muted); color: var(--white); }
.adj-compare-btn:active:not(:disabled) { background: var(--surface); }
.adj-compare-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Sliders ─────────────────────────────────────────────────── */
.adj-slider-row { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }
.adj-slider-row:last-child { margin-bottom: 0; }
.adj-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.adj-slider-label span:first-child { font-weight: 500; }
.adj-slider-label span:last-child  { color: var(--text-muted); }

.adj-slider-row input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--surface2);
  outline: none;
  cursor: pointer;
}
.adj-slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  cursor: pointer;
}
.adj-slider-row input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  cursor: pointer;
}

/* ── Channel swap ────────────────────────────────────────────── */
.adj-swap-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.adj-swap-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans), color var(--trans);
}
.adj-swap-btn:hover { border-color: var(--text-muted); }
.adj-swap-btn.active {
  border-color: var(--accent-b);
  background: var(--surface);
  color: var(--white);
}

/* ── Toggles ─────────────────────────────────────────────────── */
.adj-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.5rem;
}
.adj-toggle-row:last-of-type { margin-bottom: 0; }
.adj-toggle-row input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: var(--accent-b);
}

/* ── Reset button (secondary, paired with .ico-convert-btn) ──── */
.adj-reset-btn {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--trans), color var(--trans);
}
.adj-reset-btn:hover { border-color: var(--text-muted); color: var(--white); }
