/* Dikey adım adım rehber — okunaklı tipografi, şık kart düzeni */
.guide-root { padding: 16px 0 56px; background: #0c0c16; width: 100%; }
.guide-root > .site-wrap--wide { max-width: none; width: 100%; padding: 0 16px; box-sizing: border-box; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(200px, 230px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}

/* ── Sol: İçindekiler ── */
.guide-rail {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(22, 28, 42, 0.95) 0%, rgba(12, 14, 22, 0.98) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  scrollbar-width: thin;
}
.guide-rail-head {
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e8eaef;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.guide-rail-group {
  font-size: .7rem;
  font-weight: 900;
  color: var(--man-red);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 14px 0 6px;
  padding-left: 2px;
}
.guide-rail-group:first-child { margin-top: 0; }
.guide-rail-link {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  margin-bottom: 3px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(220, 224, 235, 0.72);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background .18s, color .18s, transform .15s;
  border: 1px solid transparent;
}
.guide-rail-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.06);
}
.guide-rail-link.active {
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.28) 0%, rgba(21, 101, 192, 0.12) 100%);
  color: #fff;
  font-weight: 800;
  border-color: rgba(46, 204, 113, 0.35);
  box-shadow: inset 4px 0 0 var(--man-red), 0 4px 16px rgba(21, 101, 192, 0.15);
}
.guide-rail-link .gn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: .78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.guide-rail-link.active .gn {
  background: var(--man-red);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.35);
}

/* ── Adım kartları ── */
.guide-flow {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.guide-step {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.98) 0%, rgba(14, 16, 24, 1) 100%);
  overflow: hidden;
  scroll-margin-top: 80px;
  transition: border-color .25s, box-shadow .25s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.guide-step.is-active {
  border-color: rgba(46, 204, 113, 0.5);
  box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.2), 0 16px 48px rgba(0, 0, 0, 0.4);
}

.guide-step-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(90deg, rgba(21, 101, 192, 0.14) 0%, transparent 70%);
}
.guide-step-num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--man-red) 0%, #c0392b 100%);
  color: #fff;
  font-weight: 900;
  font-size: .85rem;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.35);
}
.guide-step-group {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.45);
  margin-right: 8px;
}
.guide-step-head h3 {
  margin: 10px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f4f5f8;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Uygulama geniş, açıklama dar ama okunaklı */
.guide-step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
  gap: 0;
}

.guide-step-screen {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: #080810;
  min-width: 0;
}

.guide-step-text {
  padding: 16px 16px 18px;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.62;
  color: rgba(230, 234, 242, 0.92);
  align-self: stretch;
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.6) 0%, rgba(12, 14, 22, 0.9) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.guide-step-screen .app-frame-bar {
  padding: 11px 16px;
  background: linear-gradient(180deg, #161622 0%, #101018 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.guide-step-screen .app-frame-dot {
  width: 11px;
  height: 11px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.guide-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #080810;
}
.guide-viewport-inner {
  transform-origin: top center;
  flex-shrink: 0;
}
.guide-app-shot {
  display: block;
  width: 1680px;
  height: 900px;
  border: none;
  background: var(--bg-body);
  object-fit: contain;
  object-position: top center;
}

.guide-role-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.guide-role-badge.all { background: rgba(255,255,255,.1); color: var(--text-secondary); }
.guide-role-badge.test { background: rgba(21,101,192,.25); color: #90caf9; }
.guide-role-badge.admin { background: rgba(231,76,60,.2); color: #ef9a9a; }
.guide-role-badge.muh { background: rgba(52,152,219,.2); color: #81d4fa; }

/* Açıklama içeriği */
.guide-panel-body p {
  margin: 0 0 10px;
  font-size: .88rem;
  line-height: 1.62;
}
.guide-panel-body p:last-child { margin-bottom: 0; }
.guide-panel-body strong {
  font-weight: 800;
  color: #fff;
}
.guide-panel-body ul {
  margin: 8px 0;
  padding-left: 18px;
}
.guide-panel-body li {
  margin-bottom: 7px;
  font-size: .86rem;
  line-height: 1.55;
}
.guide-panel-body .warn {
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 10px;
  background: rgba(231,76,60,.12);
  border-left: 4px solid #e74c3c;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.5;
}
.guide-panel-body .ok {
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 10px;
  background: rgba(46,204,113,.1);
  border-left: 4px solid #2ecc71;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.5;
}

.guide-spot-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.16) 0%, rgba(46, 204, 113, 0.06) 100%);
  border: 1px solid rgba(46, 204, 113, 0.4);
  font-size: .84rem;
  font-weight: 600;
  color: #b8f0cc;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.08);
}
.guide-spot-callout i {
  color: #2ecc71;
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 1rem;
}
.guide-spot-callout strong {
  color: #5dffa0;
  font-weight: 900;
}

@media (max-width: 960px) {
  .guide-root { padding: 8px 0 40px; }
  .guide-root > .site-wrap--wide { padding: 0 10px; }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-rail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.35) 0%, rgba(21, 101, 192, 0.15) 100%);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 68px;
    z-index: 40;
  }
  .guide-rail-toggle span { flex: 1; text-align: left; }
  .guide-rail-chevron {
    transition: transform .2s ease;
    opacity: .85;
    font-size: .85rem;
  }
  .guide-rail-toggle.is-open .guide-rail-chevron { transform: rotate(180deg); }

  .guide-rail {
    display: none;
    position: static;
    max-height: min(52vh, 420px);
    margin-top: -4px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  .guide-rail.is-open { display: block; }

  .guide-flow { gap: 24px; }

  .guide-step {
    scroll-margin-top: 132px;
    border-radius: 14px;
  }

  .guide-step-head {
    padding: 12px 14px;
  }
  .guide-step-head h3 {
    font-size: 1.05rem;
    margin-top: 8px;
  }
  .guide-step-num {
    width: 30px;
    height: 30px;
    font-size: .8rem;
  }

  .guide-step-grid {
    grid-template-columns: 1fr;
  }

  .guide-step-screen {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .guide-step-screen .app-frame-bar {
    padding: 9px 12px;
    font-size: .72rem;
    line-height: 1.35;
  }

  .guide-viewport {
    height: auto !important;
    overflow: hidden;
  }
  .guide-viewport-inner {
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }
  .guide-app-shot {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    aspect-ratio: 1680 / 900;
    object-fit: cover;
    object-position: top center;
  }

  .guide-step-text {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 14px 16px;
    font-size: .86rem;
  }

  .guide-spot-callout {
    font-size: .8rem;
    padding: 10px 12px;
  }

  .guide-panel-body .ok,
  .guide-panel-body .warn {
    font-size: .8rem;
    padding: 9px 11px;
  }
}

@media (min-width: 961px) {
  .guide-rail-toggle { display: none; }
}

@media (max-width: 600px) {
  .guide-step-head h3 { font-size: .98rem; }
  .guide-rail-link { font-size: .78rem; padding: 8px 9px; }
  .guide-rail-link .gn { width: 28px; height: 28px; font-size: .72rem; }
  .guide-step-text { font-size: .84rem; line-height: 1.58; }
  .guide-role-badge { font-size: .62rem; padding: 3px 8px; }
}
