/* Blur the Background — bokeh simulator */

.bokeh-demo {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

@media (max-width: 900px) {
  .bokeh-demo {
    grid-template-columns: 1fr;
  }
}

.bokeh-demo__canvas-wrap {
  min-width: 0;
}

.bokeh-demo__canvas {
  position: relative;
  background: var(--color-gray-900);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bokeh-demo__status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.bokeh-demo__status-left,
.bokeh-demo__status-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bokeh-demo__status-right {
  text-align: right;
}

.bokeh-demo__status-key {
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.4);
}

.bokeh-demo__status-val {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: #fff;
}

.bokeh-demo__scene {
  position: relative;
  flex: 1;
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #3a3a3a;
}

.bokeh-demo__plate {
  position: absolute;
  inset: 0;
  transition: filter 0.35s ease, transform 0.35s ease;
  will-change: filter, transform;
}

.bokeh-demo__plate svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bokeh-demo__plate--far {
  z-index: 1;
  transform-origin: 50% 72%;
}

.bokeh-demo__plate--mid {
  z-index: 2;
  transform-origin: 50% 78%;
}

.bokeh-demo__plate--near {
  z-index: 3;
  transform-origin: 50% 88%;
}

.bokeh-demo__plate--subject {
  z-index: 4;
  transform-origin: 50% 88%;
}

.bokeh-demo__vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 42%, transparent 45%, rgba(0, 0, 0, 0.28) 100%);
}

.bokeh-demo__plane-label {
  position: absolute;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.bokeh-demo__plane-label--subject {
  left: var(--space-3);
  bottom: 38%;
}

.bokeh-demo__plane-label--bg {
  right: var(--space-3);
  top: var(--space-3);
}

.bokeh-demo__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.bokeh-demo__footer-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
}

.bokeh-demo__footer-val {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.bokeh-demo__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bokeh-demo__controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
}

.bokeh-demo__control {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bokeh-demo__control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.bokeh-demo__control-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
}

.bokeh-demo__control-val {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-600);
}

.bokeh-demo__range {
  width: 100%;
  accent-color: var(--color-black);
}

.bokeh-demo__readout {
  padding: var(--space-5);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
}

.bokeh-demo__readout-eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-gray-500);
}

.bokeh-demo__readout-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  margin: 0 0 var(--space-2);
}

.bokeh-demo__readout-text {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Night vision */
body.night-vision .bokeh-demo__canvas {
  background: #0a0a0a;
  border: 1px solid var(--nv-border);
}

body.night-vision .bokeh-demo__controls {
  background: var(--nv-surface);
  border-color: var(--nv-border);
}

body.night-vision .bokeh-demo__control-label {
  color: var(--nv-text);
}

body.night-vision .bokeh-demo__control-val {
  color: var(--nv-text-muted);
}

body.night-vision .bokeh-demo__range {
  accent-color: var(--nv-accent);
}

body.night-vision .bokeh-demo__readout {
  background: var(--nv-bg-elevated);
  border-color: var(--nv-border);
}

body.night-vision .bokeh-demo__readout-eyebrow,
body.night-vision .bokeh-demo__readout-text {
  color: var(--nv-text-muted);
}

body.night-vision .bokeh-demo__readout-title {
  color: var(--nv-text);
}
