/* Holodepth — CubeCamera etkileşimli demo + küp haritası cross şeması */

.doc-cube-map-cross {
  margin: 1.15rem 0 0;
  padding: 0;
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(
    165deg,
    rgba(10, 12, 20, 0.96) 0%,
    rgba(6, 8, 16, 0.98) 100%
  );
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.doc-cube-map-cross__frame {
  padding: 1rem 1rem 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(
    ellipse 90% 70% at 50% 40%,
    rgba(30, 50, 90, 0.25) 0%,
    transparent 65%
  );
}

.doc-cube-map-cross__svg {
  display: block;
  width: min(100%, 420px);
  height: auto;
  max-height: min(42vh, 320px);
}

.doc-cube-map-cross__face {
  cursor: default;
}

.doc-cube-map-cross__rect {
  transition: stroke 0.35s ease, stroke-width 0.35s ease, filter 0.35s ease;
}

.doc-cube-map-cross__face--active .doc-cube-map-cross__rect {
  stroke: rgba(120, 220, 255, 0.92);
  stroke-width: 2.35;
  filter: drop-shadow(0 0 10px rgba(94, 200, 255, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  .doc-cube-map-cross__rect {
    transition: none;
  }

  .doc-cube-map-cross__face--active .doc-cube-map-cross__rect {
    filter: none;
  }
}

.doc-cube-map-cross__seq {
  margin: 0.5rem 0 0;
  padding: 0 0.25rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(130, 170, 215, 0.75);
}

.doc-cube-map-cross figcaption {
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted, #8b92a4);
}

.doc-cube-map-cross figcaption code {
  font-size: 0.88em;
}

.doc-cube-map-cross figcaption p {
  margin: 0 0 0.55rem;
}

.doc-cube-map-cross figcaption p:last-child {
  margin-bottom: 0;
}

.doc-cube-map-cross figcaption .doc-cube-map-cross__callout {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 200, 255, 0.18);
  background: rgba(8, 18, 36, 0.55);
  color: rgba(175, 195, 220, 0.95);
}

.doc-cube-map-cross__callout strong {
  color: rgba(210, 228, 255, 0.98);
}

.doc-cube-camera-demo {
  margin: 1.25rem 0 0;
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(165deg,
      rgba(12, 14, 22, 0.98) 0%,
      rgba(8, 10, 18, 0.99) 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.doc-cube-camera-demo__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: min(52vh, 420px);
  background: #05060c;
}

.doc-cube-camera-demo__viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  outline: none;
}

.doc-cube-camera-demo__hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 6, 12, 0.65);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.doc-cube-camera-demo__hud-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.doc-cube-camera-demo__fps {
  grid-column: 2;
  grid-row: 1;
  flex-shrink: 0;
  margin-top: 0.12rem;
  font-variant-numeric: tabular-nums;
  color: rgba(180, 210, 230, 0.95);
  white-space: nowrap;
}

.doc-cube-camera-demo__hud-face {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  padding: 0.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.05rem;
  min-height: 1.35rem;
}

.doc-cube-camera-demo__hud-face-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(140, 165, 200, 0.88);
}

.doc-cube-camera-demo__hud-face-val {
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: rgba(160, 235, 255, 0.96);
}

.doc-cube-camera-demo__frozen-badge {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 120, 0.45);
  background: rgba(18, 12, 8, 0.82);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  color: rgba(255, 224, 180, 0.98);
  max-width: min(92%, 200px);
}

.doc-cube-camera-demo__frozen-badge small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 210, 170, 0.75);
}

.doc-cube-camera-demo__cost {
  min-width: 0;
  line-height: 1.35;
  color: rgba(195, 215, 235, 0.96);
  word-break: break-word;
}

.doc-cube-camera-demo__status {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(130, 200, 255, 0.88);
  min-height: 1.35em;
}

.doc-cube-camera-demo__status--flash {
  color: rgba(160, 255, 220, 0.98);
}

.doc-cube-camera-demo__tick {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(120, 220, 200, 0.88);
  min-height: 1.2em;
}

.doc-cube-camera-demo__hud--pulse {
  animation: doc-cube-camera-hud-pulse 0.42s ease;
}

@keyframes doc-cube-camera-hud-pulse {
  0% {
    background: rgba(4, 6, 12, 0.65);
  }

  40% {
    background: rgba(12, 36, 52, 0.72);
  }

  100% {
    background: rgba(4, 6, 12, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc-cube-camera-demo__hud--pulse {
    animation: none;
  }
}

.doc-cube-camera-demo__fps--low {
  color: #ff9b7a;
}

.doc-cube-camera-demo__hint {
  padding: 0.65rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 22, 0.55);
}

.doc-cube-camera-demo__hint-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(160, 185, 215, 0.95);
}

.doc-cube-camera-demo__hint-list {
  margin: 0;
  padding-left: 1.15rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(190, 205, 225, 0.92);
}

.doc-cube-camera-demo__hint-list li {
  margin-bottom: 0.4rem;
}

.doc-cube-camera-demo__hint-list li:last-child {
  margin-bottom: 0;
}

.doc-cube-camera-demo__toolbar {
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 6, 12, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.doc-cube-camera-demo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.doc-cube-camera-demo__row--freq {
  align-items: flex-start;
}

.doc-cube-camera-demo__row--freq .doc-cube-camera-demo__label {
  flex: 1 0 100%;
  min-width: 0;
  margin-bottom: 0.1rem;
}

.doc-cube-camera-demo__row--freq .doc-cube-camera-demo__freq,
.doc-cube-camera-demo__row--freq .doc-cube-camera-demo__btn {
  margin-left: 0;
}

.doc-cube-camera-demo__label {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(140, 160, 190, 0.95);
  min-width: 7rem;
}

.doc-cube-camera-demo__modes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.doc-cube-camera-demo__modes label,
.doc-cube-camera-demo__freq label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 26, 0.75);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(210, 220, 240, 0.95);
  cursor: pointer;
  user-select: none;
}

.doc-cube-camera-demo__modes input:focus-visible + span,
.doc-cube-camera-demo__freq input:focus-visible + span {
  outline: 2px solid rgba(94, 200, 255, 0.55);
  outline-offset: 2px;
}

.doc-cube-camera-demo__modes input:checked + span {
  color: #b8f0ff;
}

.doc-cube-camera-demo__modes label:has(input:checked) {
  border-color: rgba(94, 200, 255, 0.45);
  background: rgba(20, 40, 55, 0.85);
}

.doc-cube-camera-demo__freq {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.doc-cube-camera-demo__freq label:has(input:checked) {
  border-color: rgba(200, 107, 255, 0.4);
  background: rgba(40, 24, 48, 0.75);
}

.doc-cube-camera-demo__btn {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(30, 36, 52, 0.9);
  color: rgba(230, 235, 250, 0.95);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.doc-cube-camera-demo__btn:hover {
  border-color: rgba(94, 200, 255, 0.35);
}

.doc-cube-camera-demo__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.doc-cube-camera-demo__btn--pulse {
  animation: doc-cube-camera-pulse 0.55s ease;
}

.doc-cube-camera-demo__freeze-pair {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.doc-cube-camera-demo__freeze-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 28, 42, 0.92);
  color: rgba(200, 210, 230, 0.9);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.doc-cube-camera-demo__freeze-btn:hover:not(:disabled) {
  border-color: rgba(94, 200, 255, 0.35);
}

.doc-cube-camera-demo__freeze-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.doc-cube-camera-demo__freeze-btn.is-active {
  border-color: rgba(94, 200, 255, 0.5);
  background: rgba(18, 44, 62, 0.95);
  color: #c4f2ff;
}

@keyframes doc-cube-camera-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 200, 255, 0.55);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(94, 200, 255, 0);
  }
}

.doc-cube-camera-demo__row--check {
  align-items: flex-start;
}

.doc-cube-camera-demo__check-wrap {
  flex: 1 1 100%;
  min-width: 0;
}

.doc-cube-camera-demo__check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.78rem;
  color: rgba(200, 210, 230, 0.92);
  cursor: pointer;
  user-select: none;
}

.doc-cube-camera-demo__check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #c86bff;
}

.doc-cube-camera-demo__check-legend {
  margin: 0.35rem 0 0 1.45rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(150, 170, 200, 0.88);
}

.doc-cube-camera-demo__warn {
  display: block;
  margin: 0.4rem 0 0 1.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffb4a1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.doc-cube-camera-demo__warn--on {
  opacity: 1;
}

.doc-cube-camera-demo__caption {
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted, #8b92a4);
}

.doc-header__hook {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(150, 210, 255, 0.96);
}

@media (max-width: 520px) {
  .doc-cube-camera-demo__viewport {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }

  .doc-cube-camera-demo__label {
    min-width: 100%;
  }

  .doc-cube-camera-demo__hud {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .doc-cube-camera-demo__hud-left {
    grid-column: 1;
    grid-row: 1;
  }

  .doc-cube-camera-demo__fps {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .doc-cube-camera-demo__hud-face {
    grid-column: 1;
    grid-row: 3;
  }
}
