/**
 * KTX2 encode lab — hafif: mipmap + Basis (öğretici) düzlem
 */

figure.doc-ktx2-encoding-lab {
  border-color: rgba(120, 200, 255, 0.2);
}

.doc-ktx2-encoding-lab .doc-material-demo__tag {
  color: rgba(160, 220, 255, 0.95);
}

.doc-enc-lab__status {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(170, 220, 255, 0.92);
}

.doc-ktx2-encoding-lab .doc-material-demo__hud {
  padding: 0.65rem 0.95rem 0.75rem;
}

.doc-enc-lab__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 0 0.95rem 0.85rem;
  box-sizing: border-box;
}

@media (min-width: 880px) {
  .doc-enc-lab__body {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    padding: 0 1rem 0.95rem;
  }

  .doc-enc-lab__body > .doc-enc-lab__side {
    flex: 0 0 min(40%, 20rem);
    max-width: min(40%, 20rem);
  }

  .doc-enc-lab__body > .doc-material-demo__viewport-wrap {
    flex: 1 1 auto;
    min-height: 220px;
    min-width: 0;
  }
}

.doc-enc-lab__side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.doc-enc-lab__fieldset {
  margin: 0;
  padding: 0.5rem 0.6rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.doc-enc-lab__fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(170, 210, 255, 0.92);
}

.doc-enc-lab__fieldset label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: rgba(200, 210, 230, 0.95);
  cursor: pointer;
}

.doc-enc-lab__fieldset label:first-of-type {
  margin-top: 0.3rem;
}

.doc-enc-lab__step {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(46, 231, 242, 0.18);
  background: rgba(6, 18, 32, 0.65);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(215, 230, 248, 0.96);
}

.doc-enc-lab__step-k {
  font-weight: 700;
  color: rgba(46, 231, 242, 0.95);
}

.doc-enc-lab__hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(170, 185, 210, 0.88);
}

.doc-ktx2-encoding-lab .doc-material-demo__viewport-wrap {
  min-height: 200px;
  aspect-ratio: 16 / 10;
}

.doc-enc-lab__viewport-frame {
  position: relative;
}

.doc-enc-lab__viewport-hint {
  position: absolute;
  left: 0.55rem;
  bottom: 0.45rem;
  margin: 0;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  color: rgba(230, 238, 255, 0.88);
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

@keyframes enc-lab-hint-fadein {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doc-enc-lab__hint--fadein,
.doc-enc-lab__viewport-hint--fadein {
  opacity: 0;
  animation: enc-lab-hint-fadein 1s ease-out 0.12s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .doc-enc-lab__hint--fadein,
  .doc-enc-lab__viewport-hint--fadein {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
