/* Holodepth — model parenting: prosedürel robot kolu lab (entegre grid / krom) */

.doc-model-parenting-arm-lab {
  border-color: rgba(62, 201, 184, 0.22);
}

.doc-model-parenting-arm-lab .doc-material-demo__tag {
  color: rgba(160, 225, 215, 0.95);
}

/* Tek “ürün” kabuğu: header altında birleşik yüzey */
.doc-mpa-lab__shell {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(62, 201, 184, 0.2);
  background: linear-gradient(
    168deg,
    rgba(18, 28, 40, 0.96) 0%,
    rgba(8, 12, 22, 0.99) 55%,
    rgba(5, 8, 14, 1) 100%
  );
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.35s ease;
}

.doc-mpa-lab__shell--hover-base {
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(46, 231, 242, 0.12);
}

.doc-mpa-lab__shell--hover-arm {
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(46, 231, 242, 0.1);
}

.doc-mpa-lab__shell--hover-fore {
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 176, 96, 0.14);
}

.doc-mpa-lab__shell--drive-base {
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 28px rgba(46, 231, 242, 0.12);
}

.doc-mpa-lab__shell--drive-elbow {
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 28px rgba(255, 176, 96, 0.14);
}

.doc-mpa-lab__body {
  display: grid;
  grid-template-columns: minmax(154px, 0.95fr) minmax(0, 2.55fr) minmax(178px, 1fr);
  align-items: stretch;
  min-height: 300px;
  gap: 0;
}

.doc-mpa-tree {
  padding: 0.75rem 0.6rem 0.8rem;
  background: rgba(6, 12, 20, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-mono, ui-monospace, monospace);
}

.doc-mpa-tree__title {
  margin: 0 0 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(130, 185, 200, 0.88);
}

.doc-mpa-tree__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-mpa-tree__row {
  display: grid;
  grid-template-columns: 0.55rem 0.85rem 1fr;
  gap: 0.15rem 0.35rem;
  align-items: start;
  margin: 0 0 0.28rem;
  padding: 0.38rem 0.32rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: default;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.doc-mpa-tree__row:last-child {
  margin-bottom: 0;
}

.doc-mpa-tree__row:first-child .doc-mpa-tree__pipe {
  opacity: 0.12;
}

.doc-mpa-tree__pipe {
  grid-column: 1;
  font-size: 0.62rem;
  line-height: 1.2;
  color: rgba(62, 201, 184, 0.45);
  text-align: center;
  user-select: none;
}

.doc-mpa-tree__row--nest2 .doc-mpa-tree__pipe {
  color: rgba(255, 176, 96, 0.42);
}

.doc-mpa-tree__dot {
  grid-column: 2;
  font-size: 0.55rem;
  line-height: 1.35;
  color: #3ec9b8;
  text-shadow: 0 0 8px rgba(46, 231, 242, 0.45);
  user-select: none;
}

.doc-mpa-tree__row--nest2 .doc-mpa-tree__dot {
  color: #ffb060;
  text-shadow: 0 0 8px rgba(255, 176, 96, 0.4);
}

.doc-mpa-tree__text {
  grid-column: 3;
  min-width: 0;
}

.doc-mpa-tree__row:hover {
  background: linear-gradient(92deg, rgba(46, 231, 242, 0.12) 0%, rgba(46, 231, 242, 0.03) 100%);
  border-color: rgba(46, 231, 242, 0.34);
  box-shadow:
    0 0 0 1px rgba(46, 231, 242, 0.12),
    0 0 24px rgba(46, 231, 242, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.doc-mpa-tree__row:hover .doc-mpa-tree__pipe {
  color: rgba(62, 201, 184, 0.92);
  text-shadow: 0 0 10px rgba(46, 231, 242, 0.4);
}

.doc-mpa-tree__row--nest2:hover {
  background: linear-gradient(92deg, rgba(255, 176, 96, 0.14) 0%, rgba(255, 176, 96, 0.04) 100%);
  border-color: rgba(255, 176, 96, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 176, 96, 0.14),
    0 0 24px rgba(255, 176, 96, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.doc-mpa-tree__row--nest2:hover .doc-mpa-tree__pipe {
  color: rgba(255, 200, 140, 0.9);
  text-shadow: 0 0 10px rgba(255, 176, 96, 0.38);
}

.doc-mpa-tree__row--active {
  background: rgba(46, 231, 242, 0.11);
  border-color: rgba(46, 231, 242, 0.32);
  box-shadow: 0 0 16px rgba(46, 231, 242, 0.1);
}

.doc-mpa-tree__row--nest2.doc-mpa-tree__row--active {
  background: rgba(255, 176, 96, 0.12);
  border-color: rgba(255, 176, 96, 0.38);
  box-shadow: 0 0 16px rgba(255, 176, 96, 0.1);
}

.doc-mpa-tree__code {
  display: block;
  font-size: 0.62rem;
  color: rgba(205, 228, 240, 0.96);
  line-height: 1.35;
}

.doc-mpa-tree__hint {
  display: block;
  font-size: 0.57rem;
  font-family: var(--font-sans, "DM Sans", system-ui, sans-serif);
  color: rgba(145, 168, 195, 0.85);
  margin-top: 0.06rem;
}

.doc-model-parenting-arm-lab .doc-material-demo__viewport {
  position: relative;
}

.doc-mpa-scene-label {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  max-width: min(12rem, 58%);
  padding: 0.3rem 0.5rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(210, 235, 248, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
  background: linear-gradient(145deg, rgba(14, 28, 42, 0.82), rgba(6, 12, 22, 0.58));
  border: 1px solid rgba(100, 180, 200, 0.28);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    border-color 0.28s ease;
  z-index: 3;
}

.doc-mpa-scene-label--on {
  opacity: 1;
  transform: translateY(0);
}

.doc-mpa-scene-label--fore {
  border-color: rgba(255, 176, 96, 0.45);
  color: rgba(255, 228, 210, 0.98);
  text-shadow:
    0 0 14px rgba(255, 176, 96, 0.35),
    0 1px 10px rgba(0, 0, 0, 0.75);
}

.doc-mpa-viewport.doc-material-demo__viewport-wrap {
  position: relative;
  flex: unset;
  min-width: 0;
  min-height: 300px;
  background: radial-gradient(ellipse 70% 80% at 50% 45%, rgba(12, 22, 34, 0.5) 0%, rgba(3, 5, 10, 0.85) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s ease;
}

.doc-mpa-lab__shell--hover-base .doc-mpa-viewport {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 0 40px rgba(46, 231, 242, 0.06);
}

.doc-mpa-lab__shell--hover-arm .doc-mpa-viewport {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 0 36px rgba(46, 231, 242, 0.05);
}

.doc-mpa-lab__shell--hover-fore .doc-mpa-viewport {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 0 40px rgba(255, 176, 96, 0.07);
}

.doc-mpa-lab__shell--drive-base .doc-mpa-viewport {
  box-shadow:
    inset 0 0 0 1px rgba(46, 231, 242, 0.22),
    inset 0 0 48px rgba(46, 231, 242, 0.08);
}

.doc-mpa-lab__shell--drive-elbow .doc-mpa-viewport {
  box-shadow:
    inset 0 0 0 1px rgba(255, 176, 96, 0.22),
    inset 0 0 48px rgba(255, 176, 96, 0.09);
}

.doc-mpa-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.78rem 0.85rem 0.85rem;
  background: rgba(6, 12, 20, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  justify-content: center;
}

.doc-mpa-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.doc-mpa-field__kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(175, 210, 220, 0.95);
}

.doc-mpa-field__kicker--axis {
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.doc-mpa-field__sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(130, 155, 180, 0.82);
  margin-bottom: 0.12rem;
}

.doc-mpa-field--axis {
  margin-top: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-mpa-axis-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.doc-mpa-axis-toggle__track {
  position: relative;
  width: 2.35rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(20, 28, 40, 0.95);
  border: 1px solid rgba(80, 110, 130, 0.45);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.doc-mpa-axis-toggle__track:has(.doc-mpa-axis-toggle__input:checked) {
  border-color: rgba(62, 201, 184, 0.55);
  background: rgba(12, 42, 48, 0.95);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(46, 231, 242, 0.18);
}

.doc-mpa-axis-toggle__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.doc-mpa-axis-toggle__thumb {
  position: absolute;
  top: 50%;
  left: 0.12rem;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  background: linear-gradient(165deg, #3a4a58, #1e2834);
  border: 1px solid rgba(120, 160, 180, 0.35);
  box-shadow: 0 0 8px rgba(46, 231, 242, 0.15);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  transition:
    left 0.22s ease,
    box-shadow 0.22s ease;
}

.doc-mpa-axis-toggle__input:checked + .doc-mpa-axis-toggle__thumb {
  left: calc(100% - 0.12rem - 0.88rem);
  box-shadow:
    0 0 12px rgba(46, 231, 242, 0.45),
    0 0 1px rgba(46, 231, 242, 0.6);
}

.doc-mpa-axis-toggle__state {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(160, 175, 195, 0.85);
  min-width: 2rem;
}

.doc-mpa-axis-toggle__track:has(.doc-mpa-axis-toggle__input:focus-visible) {
  outline: 2px solid rgba(46, 231, 242, 0.55);
  outline-offset: 2px;
}

.doc-mpa-field--hover-link-base .doc-mpa-field__kicker {
  color: rgba(200, 242, 252, 0.98);
  text-shadow: 0 0 14px rgba(46, 231, 242, 0.22);
}

.doc-mpa-field--hover-link-base .doc-mpa-range {
  border-color: rgba(46, 231, 242, 0.52);
  box-shadow:
    0 0 18px rgba(46, 231, 242, 0.18),
    inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

.doc-mpa-field--hover-link-base-soft .doc-mpa-field__kicker {
  color: rgba(185, 220, 232, 0.95);
  text-shadow: 0 0 8px rgba(46, 231, 242, 0.12);
}

.doc-mpa-field--hover-link-base-soft .doc-mpa-range {
  border-color: rgba(46, 231, 242, 0.32);
  box-shadow:
    0 0 12px rgba(46, 231, 242, 0.09),
    inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

.doc-mpa-field--hover-link-elbow .doc-mpa-field__kicker {
  color: rgba(255, 220, 196, 0.98);
  text-shadow: 0 0 14px rgba(255, 176, 96, 0.28);
}

.doc-mpa-field--hover-link-elbow .doc-mpa-range {
  border-color: rgba(255, 176, 96, 0.52);
  box-shadow:
    0 0 18px rgba(255, 176, 96, 0.2),
    inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

.doc-mpa-range {
  width: 100%;
  height: 0.42rem;
  margin-top: 0.08rem;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(12, 18, 28, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(70, 100, 120, 0.4);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.doc-mpa-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #4a6878, #2a3848);
  border: 1px solid rgba(120, 190, 200, 0.55);
  box-shadow:
    0 0 0 1px rgba(46, 231, 242, 0.25),
    0 0 12px rgba(46, 231, 242, 0.25);
  cursor: grab;
}

.doc-mpa-range::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.doc-mpa-range::-moz-range-thumb {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #4a6878, #2a3848);
  border: 1px solid rgba(120, 190, 200, 0.55);
  box-shadow:
    0 0 0 1px rgba(46, 231, 242, 0.25),
    0 0 12px rgba(46, 231, 242, 0.25);
  cursor: grab;
}

.doc-mpa-disclosure {
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 14, 0.55);
}

.doc-mpa-disclosure-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(165, 180, 210, 0.88);
}

@media (max-width: 640px) {
  .doc-mpa-lab__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .doc-mpa-viewport.doc-material-demo__viewport-wrap {
    order: -1;
    min-height: 260px;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .doc-mpa-tree {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .doc-mpa-panel {
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .doc-mpa-field {
    flex: 1 1 42%;
    min-width: 8.5rem;
  }

  .doc-mpa-field--axis {
    flex: 1 1 100%;
  }
}
