/* docs.css — /docs ve /en/docs sayfasina ozgu stil. Yalnizca zv.css tokenlari. */

/* zv.css html+body'ye overflow-x:hidden verir; bu body'yi kaydirma kabi yapip position:sticky'yi (header, icindekiler) bozar.
   clip ayni tasma korumasini kaydirma kabi olusturmadan saglar. */
html, body { overflow-x: clip; }

.docs-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 96px;
}

/* Icindekiler: masaustunde yapiskan kenar cubugu */
.docs-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 4px 0;
  font-size: 0.92rem;
}
.docs-toc-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0 12px 10px;
}
.docs-toc ul { list-style: none; }
.docs-toc a {
  display: block;
  padding: 7px 12px;
  color: var(--fg-secondary);
  text-decoration: none;
  border-left: 2px solid var(--border);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.docs-toc a:hover { color: var(--fg); border-left-color: var(--accent); background: var(--accent-dim); }
.docs-toc ul ul a { padding-left: 26px; font-size: 0.86rem; }

/* Mobil icindekiler (details) */
.docs-toc-m { display: none; }

/* Icerik */
.docs-wrap .prose { margin: 0; max-width: 820px; min-width: 0; }
.docs-wrap .prose h2 { scroll-margin-top: 96px; padding-top: .4em; border-top: 1px solid var(--border); }
.docs-wrap .prose h2:first-child { border-top: 0; margin-top: 0; }
.docs-wrap .prose h3 { scroll-margin-top: 96px; }
.docs-wrap .prose h3 code { font-size: .95em; }

/* Komut satiri (kopyala dugmeli) */
.docs-wrap .cmd-line { margin: 0 0 14px; }
.docs-wrap .cmd-text { min-width: 0; font-family: var(--font-mono); font-size: 0.86rem; }
.docs-wrap .cmd-text .cmd-prompt { flex: none; }
.docs-wrap .copy-btn { min-height: 36px; }
.docs-wrap .copy-btn svg { flex: none; }

/* Cok satirli blok */
.docs-wrap pre.code-box { margin: 0 0 1.1em; white-space: pre; overflow-wrap: normal; overflow-x: auto; max-width: 100%; }
.docs-wrap pre.code-box code { overflow-wrap: normal; }

/* Tablo sarmalayici */
.doc-table-wrap { overflow-x: auto; max-width: 100%; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); -webkit-overflow-scrolling: touch; }
.doc-table-wrap table { margin: 0; min-width: 520px; }
.doc-table-wrap th, .doc-table-wrap td { vertical-align: top; }
.doc-table-wrap tr:last-child td { border-bottom: 0; }
.doc-table-wrap td:first-child { white-space: nowrap; }

/* Notlar */
.doc-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 1.2em; padding: 14px 16px;
  background: var(--accent-dim); border: 1px solid var(--border-accent); border-radius: var(--radius-md);
  color: var(--fg-secondary); font-size: 0.94rem; line-height: 1.6;
}
.doc-note svg { flex: none; color: var(--accent); margin-top: 3px; }
.doc-note p { margin: 0; }
.doc-note.warn { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.35); }
.doc-note.warn svg { color: #f59e0b; }

/* Plan etiketi */
.plan-tag {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  background: var(--violet-dim); border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--fg); font-size: 0.76rem; font-weight: 600; font-family: var(--font-sans);
  vertical-align: middle; white-space: nowrap;
}

/* Adim listesi */
.doc-steps { list-style: none; counter-reset: step; padding-left: 0 !important; display: grid; gap: 14px; }
.doc-steps > li { counter-increment: step; position: relative; padding-left: 48px; min-height: 34px; }
.doc-steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-dim); border: 1px solid var(--border-accent); color: var(--accent);
  font-weight: 700; font-family: var(--font-mono); font-size: 0.9rem;
}
.doc-steps > li > strong { color: var(--fg); display: block; margin-bottom: 4px; }
.doc-steps .cmd-line { margin-top: 8px; }

/* Alt CTA */
.docs-cta { margin-top: 2.4em; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.docs-cta h2 { margin-top: 0 !important; border-top: 0 !important; padding-top: 0 !important; }
.docs-cta .hero-actions { margin-bottom: 0; justify-content: flex-start; }

@media (max-width: 1024px) {
  .docs-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-toc { display: none; }
  .docs-toc-m { display: block; margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
  .docs-toc-m > summary {
    list-style: none; cursor: pointer; min-height: 48px; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-weight: 600; color: var(--fg);
  }
  .docs-toc-m > summary::-webkit-details-marker { display: none; }
  .docs-toc-m > summary svg { transition: transform .2s ease; flex: none; }
  .docs-toc-m[open] > summary svg { transform: rotate(180deg); }
  .docs-toc-m ul { list-style: none; padding: 0 8px 10px; }
  .docs-toc-m a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--fg-secondary); text-decoration: none; border-radius: var(--radius-sm); }
  .docs-toc-m a:hover { color: var(--fg); background: var(--accent-dim); }
  .docs-toc-m ul ul a { padding-left: 28px; font-size: 0.92rem; }
}

@media (max-width: 768px) {
  .docs-wrap { padding-bottom: 64px; }
  .docs-wrap .prose h2 { scroll-margin-top: 88px; }
  .docs-wrap .prose h3 { scroll-margin-top: 88px; }
  .doc-steps > li { padding-left: 44px; }
  .docs-cta { padding: 18px; }
  .docs-cta .hero-actions { align-items: stretch; }
}

@media (max-width: 400px) {
  .docs-wrap .prose h2 { scroll-margin-top: 80px; font-size: 1.35rem; }
  .docs-wrap .prose h3 { scroll-margin-top: 80px; }
}
