/**
 * texture-atlas.html — Atlas vs çoklu doku pedagojik simülatör (WebGL sahne yok).
 */

.doc-atlas-sim {
  margin: 1.35rem 0 0.25rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(70, 120, 200, 0.38);
  background: linear-gradient(165deg,
      rgba(4, 8, 18, 0.98) 0%,
      rgba(8, 12, 26, 0.96) 42%,
      rgba(6, 10, 22, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65) inset,
    0 1px 0 rgba(100, 160, 220, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.doc-atlas-sim__caption {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(175, 195, 230, 0.92);
}

.doc-atlas-sim__caption strong {
  color: rgba(120, 210, 255, 0.95);
  font-weight: 600;
}

.doc-atlas-sim__badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(12, 20, 36, 0.95);
  background: linear-gradient(120deg, rgba(46, 231, 242, 0.95), rgba(140, 170, 255, 0.92));
}

.doc-atlas-sim__inst-tip {
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(210, 235, 255, 0.94);
  border: 1px solid rgba(120, 220, 255, 0.28);
  background: linear-gradient(120deg, rgba(8, 32, 48, 0.75), rgba(6, 18, 36, 0.88));
  box-shadow:
    0 0 0 1px rgba(46, 231, 242, 0.08) inset,
    0 6px 22px rgba(0, 0, 0, 0.28);
}

.doc-atlas-sim__inst-tip--hidden {
  display: none;
}

/* Atlas + shader: bind=1 iken draw>1 «aha» satırı */
.doc-atlas-sim__bind-draw-moment {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(255, 220, 185, 0.95);
  border: 1px solid rgba(255, 170, 90, 0.35);
  background: rgba(28, 14, 6, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.doc-atlas-sim__bind-draw-moment--hidden {
  display: none;
}

/* Instancing + shader break: batching uyarısı */
.doc-atlas-sim__ux-warn {
  margin: 0.55rem 0 0;
  padding: 0.48rem 0.68rem;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 210, 190, 0.92);
  border: 1px solid rgba(255, 140, 100, 0.32);
  background: rgba(32, 12, 8, 0.55);
}

.doc-atlas-sim__ux-warn--hidden {
  display: none;
}

.doc-atlas-sim__controls {
  display: grid;
  gap: 1rem 1.25rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 720px) {
  .doc-atlas-sim__controls {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.doc-atlas-sim__fieldset {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}

.doc-atlas-sim__legend {
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(140, 185, 255, 0.9);
}

.doc-atlas-sim__toggles {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.doc-atlas-sim__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(210, 220, 240, 0.95);
}

.doc-atlas-sim__toggle input {
  accent-color: #5ec8ff;
}

.doc-atlas-sim__toggle--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.doc-atlas-sim__toggle--disabled input {
  cursor: not-allowed;
}

.doc-atlas-sim__stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-atlas-sim__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(150, 175, 215, 0.88);
}

.doc-atlas-sim__range-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.doc-atlas-sim__range {
  flex: 1 1 12rem;
  min-width: 8rem;
  accent-color: #b56cff;
}

.doc-atlas-sim__count-out {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(120, 220, 255, 0.98);
  min-width: 3.2rem;
  text-align: right;
}

.doc-atlas-sim__meters {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .doc-atlas-sim__meters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .doc-atlas-sim__meters {
    grid-template-columns: repeat(4, 1fr);
  }
}

.doc-atlas-sim__meter {
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.35);
}

.doc-atlas-sim__meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.doc-atlas-sim__meter-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 190, 230, 0.9);
}

.doc-atlas-sim__meter-val {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(240, 245, 255, 0.96);
}

.doc-atlas-sim__meter-val--draw {
  color: rgba(255, 170, 120, 0.98);
}

.doc-atlas-sim__meter-val--mat {
  color: rgba(130, 200, 255, 0.98);
}

.doc-atlas-sim__meter-val--bind {
  color: rgba(200, 160, 255, 0.96);
}

.doc-atlas-sim__meter-val--cpu {
  color: rgba(120, 235, 200, 0.96);
}

.doc-atlas-sim__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.doc-atlas-sim__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transform-origin: left center;
  transition: width 0.22s ease, background 0.2s ease;
}

.doc-atlas-sim__fill--draw {
  background: linear-gradient(90deg, rgba(255, 140, 80, 0.35), rgba(255, 120, 90, 0.95));
}

.doc-atlas-sim__fill--mat {
  background: linear-gradient(90deg, rgba(46, 231, 242, 0.35), rgba(94, 200, 255, 0.95));
}

.doc-atlas-sim__fill--bind {
  background: linear-gradient(90deg, rgba(181, 108, 255, 0.25), rgba(200, 140, 255, 0.92));
}

.doc-atlas-sim__fill--cpu {
  background: linear-gradient(90deg, rgba(46, 220, 160, 0.25), rgba(100, 230, 190, 0.92));
}

@media (prefers-reduced-motion: reduce) {
  .doc-atlas-sim__fill {
    transition: none;
  }

  .doc-atlas-sim__cap-hint,
  .doc-atlas-sim__shock,
  .doc-atlas-sim__insight {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.doc-atlas-sim__meter-note {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(140, 155, 185, 0.82);
}

.doc-atlas-sim__cap-hint {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(148, 168, 200, 0.9);
  background: rgba(4, 6, 12, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 28px rgba(0, 0, 0, 0.3);
}

.doc-atlas-sim__shock {
  margin: 0.85rem 0 0;
  padding: 0.72rem 0.95rem 0.82rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 7, 6, 0.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  backdrop-filter: blur(20px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 36px rgba(0, 0, 0, 0.38);
}

.doc-atlas-sim__shock--hidden {
  display: none;
}

.doc-atlas-sim__shock--warn {
  border-color: rgba(255, 150, 95, 0.14);
  background: rgba(18, 8, 5, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 185, 130, 0.055),
    0 12px 44px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(255, 90, 40, 0.04);
}

.doc-atlas-sim__shock-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 175, 140, 0.72);
}

.doc-atlas-sim__ratio-badge {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: rgba(235, 185, 135, 0.94);
  text-shadow: 0 1px 18px rgba(255, 120, 60, 0.12);
}

.doc-atlas-sim__insight {
  position: relative;
  margin: 1rem 0 0;
  padding: 0.82rem 1rem 0.82rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(5, 7, 12, 0.46);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
  backdrop-filter: blur(18px) saturate(1.06);
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(210, 216, 230, 0.93);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 32px rgba(0, 0, 0, 0.32);
}

.doc-atlas-sim__insight::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg,
      rgba(130, 220, 255, 0.42),
      rgba(50, 140, 190, 0.18));
  opacity: 0.75;
}

.doc-atlas-sim__disclaimer {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(120, 135, 165, 0.78);
}
