/* performance-optimization.html — Shadow pass süreci diyagramı */

.doc-section--shadow-pass .doc-section__num {
  color: rgba(190, 242, 255, 0.98);
  background: linear-gradient(
    160deg,
    rgba(46, 231, 242, 0.22) 0%,
    rgba(46, 120, 200, 0.1) 100%
  );
  border-color: rgba(46, 231, 242, 0.42);
}

.shadow-pass-diagram-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0.85rem 0 1.25rem;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(60, 110, 160, 0.38);
  background: linear-gradient(
    165deg,
    rgba(8, 12, 22, 0.92) 0%,
    rgba(4, 8, 16, 0.96) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 1px 0 rgba(90, 140, 200, 0.06) inset;
  overflow: hidden;
}

.shadow-pass-diagram-wrap .spd-inner {
  padding: 1rem 1rem 1.05rem;
}

@media (min-width: 640px) {
  .shadow-pass-diagram-wrap .spd-inner {
    padding: 1.15rem 1.25rem 1.2rem;
  }
}

.spd-lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(210, 220, 245, 0.94);
}

.spd-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spd-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spd-step:last-of-type {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.spd-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(248, 250, 255, 0.98);
  background: linear-gradient(
    145deg,
    rgba(46, 231, 242, 0.2) 0%,
    rgba(100, 120, 220, 0.14) 100%
  );
  border: 1px solid rgba(46, 231, 242, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.spd-step__body {
  min-width: 0;
}

.spd-step__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 190, 230, 0.85);
}

.spd-step__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.98);
}

.spd-step__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(195, 210, 235, 0.92);
}

.spd-step__list li {
  margin: 0.2rem 0;
}

.spd-step__list li::marker {
  color: rgba(46, 231, 242, 0.55);
}

.spd-step__note {
  margin: 0.55rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(210, 225, 250, 0.95);
  background: rgba(46, 231, 242, 0.06);
  border: 1px solid rgba(46, 231, 242, 0.18);
}

.spd-step__note strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
}

/* Shadow test — bağlayıcı cümle */
.spd-compare__bridge {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(185, 205, 235, 0.93);
}

.spd-compare__bridge strong {
  color: rgba(248, 250, 255, 0.96);
  font-weight: 600;
}

/* Shadow test — karşılaştırma */
.spd-compare {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.spd-compare__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.75rem, 2.8vw, 0.8125rem);
  line-height: 1.45;
  color: rgba(200, 215, 240, 0.95);
}

.spd-compare__row code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  font-size: 0.95em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(190, 230, 255, 0.98);
}

.spd-compare__verdict {
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(230, 235, 250, 0.96);
  background: rgba(181, 108, 255, 0.08);
  border: 1px solid rgba(181, 108, 255, 0.22);
}

/* PointLight — 6 yön */
.spd-cube-meta {
  margin: 0.45rem 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(195, 210, 235, 0.9);
}

.spd-faces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  max-width: 16rem;
}

@media (min-width: 400px) {
  .spd-faces {
    max-width: 18rem;
  }
}

.spd-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.25rem 0.2rem;
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.68rem, 2.5vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(230, 240, 255, 0.96);
  background: rgba(20, 35, 55, 0.65);
  border: 1px solid rgba(90, 140, 200, 0.35);
}

.spd-face--hot {
  border-color: rgba(46, 231, 242, 0.45);
  box-shadow: 0 0 0 1px rgba(46, 231, 242, 0.12);
}

.spd-step__warn {
  margin: 0.65rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 230, 210, 0.96);
  background: rgba(255, 160, 80, 0.08);
  border: 1px solid rgba(255, 180, 100, 0.25);
}

.spd-step__warn-mark {
  margin-right: 0.15em;
}

/* Maliyet özeti */
.spd-cost {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spd-cost__title {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(170, 195, 230, 0.88);
}

.spd-cost__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.spd-cost__table th,
.spd-cost__table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spd-cost__table th {
  font-weight: 600;
  color: rgba(160, 185, 220, 0.88);
  width: 42%;
}

.spd-cost__table td {
  color: rgba(215, 225, 245, 0.95);
  font-variant-numeric: tabular-nums;
}

.spd-cost__hint {
  font-weight: 400;
  font-size: 0.88em;
  color: rgba(150, 175, 215, 0.82);
}

.spd-cost__table tr:last-child th,
.spd-cost__table tr:last-child td {
  border-bottom: none;
}

/* HoloDepth + kurallar */
.spd-foot {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spd-foot__insight {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(205, 218, 245, 0.94);
}

.spd-foot__insight strong {
  color: rgba(120, 220, 255, 0.98);
  font-weight: 600;
}

.spd-foot__rules {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(195, 210, 235, 0.92);
}

.spd-foot__rules li {
  margin: 0.35rem 0;
}

.spd-foot__rules li::marker {
  color: rgba(167, 139, 250, 0.75);
}

.shadow-pass-diagram-wrap figcaption {
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(175, 195, 230, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 8, 14, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .shadow-pass-diagram-wrap * {
    transition: none !important;
  }
}
