/* Holodepth — Indexed vs non-indexed canlı küp demosu */

figure.doc-inx-demo + .doc-h3 {
  margin-top: 1.35rem;
}

figure.doc-inx-demo {
  margin-block: 1.1rem 0;
  margin-inline: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.doc-inx-demo {
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(94, 200, 255, 0.16);
  background: linear-gradient(
    165deg,
    rgba(10, 12, 22, 0.98) 0%,
    rgba(4, 6, 14, 0.99) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.doc-inx-demo__hud {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 6, 12, 0.72);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.78rem;
}

.doc-inx-demo__hud-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.doc-inx-demo__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(140, 200, 255, 0.88);
}

.doc-inx-demo__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(175, 210, 245, 0.92);
  text-align: right;
}

.doc-inx-demo__metric {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.doc-inx-demo__metric strong {
  font-weight: 600;
  color: rgba(120, 220, 255, 0.98);
}

.doc-inx-demo__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.doc-inx-demo__controls--secondary {
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.doc-inx-demo__mini-label {
  flex: 0 0 100%;
  width: 100%;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(130, 175, 220, 0.72);
  margin: 0.1rem 0 0.05rem;
}

@media (min-width: 720px) {
  .doc-inx-demo__mini-label {
    flex: 0 0 auto;
    width: auto;
    margin: 0 0.35rem 0 0;
  }
}

.doc-inx-demo__seg {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  padding: 3px;
  gap: 2px;
}

.doc-inx-demo__seg-btn {
  appearance: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.doc-inx-demo__seg-btn:hover {
  color: rgba(255, 255, 255, 0.88);
}

.doc-inx-demo__seg-btn[aria-pressed="true"] {
  color: #0b1020;
  background: linear-gradient(135deg, #5ec8ff 0%, #b56cff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.doc-inx-demo__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(220, 230, 250, 0.88);
}

.doc-inx-demo__checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
}

.doc-inx-demo__checks input {
  accent-color: #5ec8ff;
}

.doc-inx-demo__viewport-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 520px);
  background: radial-gradient(ellipse at 50% 35%, rgba(30, 55, 90, 0.35), rgba(4, 6, 12, 0.96));
}

.doc-inx-demo__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.doc-inx-demo__viewport canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.doc-inx-demo__caption {
  margin: 0;
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(210, 220, 245, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.18);
}

@media (max-width: 560px) {
  .doc-inx-demo__metrics {
    justify-content: flex-start;
    text-align: left;
  }
}
