/* variables.html — Holografik Boyut Simülatörü (doc-vdc)
   Sabit figure kutusu — data-flow / shader-pipeline dilinde */

.doc-vdc {
  margin: 1.15rem 0 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(94, 180, 255, 0.26);
  background: linear-gradient(
    168deg,
    rgba(16, 22, 42, 0.82) 0%,
    rgba(10, 14, 28, 0.72) 48%,
    rgba(14, 22, 36, 0.78) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.42) inset,
    0 12px 38px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.doc-vdc__top {
  padding: 0.75rem 0.9rem 0.9rem;
  background:
    radial-gradient(110% 85% at 50% 8%, rgba(46, 231, 242, 0.07) 0%, transparent 52%),
    rgba(5, 8, 18, 0.52);
  border-bottom: 1px solid rgba(110, 150, 210, 0.14);
}

.doc-vdc__stage {
  position: relative;
  margin: 0 auto;
  max-width: min(100%, 1180px);
  height: clamp(360px, 52vmin, 560px);
  min-height: 340px;
  border-radius: 14px;
  border: 1px solid rgba(110, 150, 210, 0.2);
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 55% at 50% 42%, rgba(46, 231, 242, 0.05) 0%, transparent 58%),
    rgba(5, 10, 22, 0.55);
  touch-action: none;
  cursor: grab;
}

.doc-vdc__stage:active {
  cursor: grabbing;
}

.doc-vdc__stage.is-probe {
  cursor: crosshair;
}

.doc-vdc__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.doc-vdc__hud {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  pointer-events: none;
}

.doc-vdc__badge,
.doc-vdc__chip {
  padding: 0.32rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: linear-gradient(
    165deg,
    rgba(18, 28, 48, 0.55) 0%,
    rgba(10, 14, 28, 0.72) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(210, 235, 255, 0.92);
}

.doc-vdc__chip {
  font-weight: 600;
  color: rgba(150, 220, 255, 0.88);
}

.doc-vdc__code-float {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  max-width: min(42%, 280px);
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(46, 231, 242, 0.28);
  background: rgba(6, 12, 24, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(46, 231, 242, 0.08);
  pointer-events: none;
}

.doc-vdc__code-float pre {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  line-height: 1.45;
  color: rgba(180, 240, 255, 0.95);
  white-space: pre-wrap;
  word-break: break-word;
}

.doc-vdc__error {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 90, 120, 0.35);
  background: rgba(80, 16, 28, 0.45);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 200, 210, 0.95);
}

.doc-vdc__desc {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 210, 0.14);
  border-left: 3px solid rgba(46, 231, 242, 0.55);
  background: rgba(8, 14, 28, 0.48);
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(185, 205, 235, 0.92);
}

.doc-vdc__desc:empty {
  display: none;
}

.doc-vdc__bottom {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.75rem 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(110, 150, 210, 0.12);
}

.doc-vdc__panel {
  border-radius: 12px;
  border: 1px solid rgba(94, 200, 255, 0.14);
  background: rgba(8, 14, 28, 0.55);
  padding: 0.65rem 0.7rem 0.7rem;
  min-width: 0;
}

.doc-vdc__h {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(190, 208, 240, 0.9);
}

.doc-vdc__stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.doc-vdc__stage-btn {
  padding: 0.48rem 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 210, 0.14);
  background: rgba(8, 14, 28, 0.45);
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(150, 185, 230, 0.72);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.doc-vdc__stage-btn:hover {
  border-color: rgba(110, 180, 230, 0.28);
  color: rgba(200, 225, 250, 0.9);
}

.doc-vdc__stage-btn.is-active {
  border-color: rgba(46, 231, 242, 0.5);
  background: rgba(46, 231, 242, 0.12);
  color: rgba(230, 245, 255, 0.98);
}

.doc-vdc__controls {
  display: grid;
  gap: 0.45rem;
}

.doc-vdc__chk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(200, 220, 245, 0.94);
  cursor: pointer;
}

.doc-vdc__chk input {
  accent-color: #2ee7f2;
}

.doc-vdc__row {
  display: grid;
  grid-template-columns: 4.2rem 1fr 2.8rem;
  gap: 0.4rem;
  align-items: center;
}

.doc-vdc__row[hidden] {
  display: none;
}

.doc-vdc__lbl {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(150, 185, 230, 0.75);
}

.doc-vdc__lbl--r {
  color: rgba(255, 120, 130, 0.9);
}

.doc-vdc__lbl--g {
  color: rgba(120, 230, 160, 0.9);
}

.doc-vdc__lbl--b {
  color: rgba(120, 180, 255, 0.9);
}

.doc-vdc__lbl--a {
  color: rgba(220, 200, 255, 0.9);
}

.doc-vdc__range {
  width: 100%;
  accent-color: #2ee7f2;
}

.doc-vdc__out {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  color: rgba(210, 228, 255, 0.9);
  text-align: right;
}

.doc-vdc__hint {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(160, 190, 225, 0.8);
}

.doc-vdc__caption {
  margin: 0;
  padding: 0.65rem 0.9rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(155, 180, 220, 0.8);
}

.doc-vdc__caption strong {
  color: rgba(200, 220, 245, 0.95);
  font-weight: 700;
}

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

  .doc-vdc__stage {
    height: clamp(300px, 48vmin, 460px);
    min-height: 280px;
  }

  .doc-vdc__stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-vdc__code-float {
    max-width: min(55%, 220px);
    font-size: 0.58rem;
  }
}

@media (max-width: 560px) {
  .doc-vdc__stage {
    height: clamp(260px, 44vmin, 380px);
    min-height: 240px;
  }

  .doc-vdc__code-float {
    display: none;
  }
}
