/* Okito documentation shell — GitBook-like layout using Okito brand tokens */
:root {
  --okito-docs-blue: #134a98;
  --okito-docs-green: #81bc44;
  --okito-docs-ink: #0e0f11;
  --okito-docs-muted: #5b6573;
  --okito-docs-line: #d7dee8;
  --okito-docs-bg: #f7f9fc;
  --okito-docs-panel: #ffffff;
  --okito-docs-hint-info: #e8f1fb;
  --okito-docs-hint-warning: #fff6e5;
  --okito-docs-hint-success: #eef8e8;
}

/* Detay sayfaları (OkitoDocsPage) — sol menülü shell */
.okito-docs-shell {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(19, 74, 152, 0.06), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, var(--okito-docs-bg) 40%, #fff 100%);
  min-height: 60vh;
  /* Fixed site header (~90–110px) — keep breadcrumbs/sidebar below it */
  padding-top: 130px;
}

/* Kategori / bölüm listing — eski Getting Started tasarımı; sol menü yok */
.okito-docs-section-listing .okito-docs-section-desc {
  color: var(--okito-docs-muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 8px;
  max-width: 36em;
}

.okito-docs-topbar {
  padding: 12px 0 20px;
}

.okito-docs-topbar .docs-detail-parent-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #0e0f11;
}

.okito-docs-breadcrumb {
  margin-bottom: 28px !important;
}

.okito-docs-menu-toggle {
  display: none;
  border: 1px solid var(--okito-docs-line);
  background: var(--okito-docs-panel);
  color: var(--okito-docs-ink);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
}

.okito-docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 32px;
  align-items: start;
  padding-bottom: 80px;
}

.okito-docs-sidebar__inner,
.okito-docs-toc {
  position: sticky;
  top: 140px;
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.okito-docs-nav__section {
  margin-bottom: 22px;
}

/* GitBook: bölüm adı menü linki değil, listenin üstünde etiket */
.okito-docs-nav__heading {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--okito-docs-ink);
  margin: 0 0 6px;
  padding: 0;
  line-height: 1.3;
}

.okito-docs-nav__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 1px solid #e5eaf0;
}

.okito-docs-nav__link {
  display: block;
  padding: 5px 0 5px 12px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  border-left: 2px solid transparent;
  margin-left: -13px;
  padding-left: 14px;
}

.okito-docs-nav__link:hover {
  color: var(--okito-docs-blue);
}

.okito-docs-nav__link.is-active {
  color: var(--okito-docs-blue);
  font-weight: 600;
  border-left-color: var(--okito-docs-blue);
}

.okito-docs-header {
  margin-bottom: 28px;
}

.okito-docs-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--okito-docs-ink);
  margin: 0 0 12px;
}

.okito-docs-description {
  color: var(--okito-docs-muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.okito-docs-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--okito-docs-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.okito-docs-meta code {
  background: #eef3f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--okito-docs-blue);
}

.okito-docs-body {
  color: #243247;
  font-size: 16px;
  line-height: 1.7;
}

/* RichText (TipTap) + Markdown HTML — ortak tipografi */
.okito-docs-body > *:first-child {
  margin-top: 0;
}

.okito-docs-body p {
  margin: 0 0 1em;
}

.okito-docs-body ul,
.okito-docs-body ol {
  margin: 0.75em 0 1em;
  padding-left: 1.4em;
}

.okito-docs-body li {
  margin: 0.25em 0;
}

.okito-docs-body a {
  color: var(--okito-docs-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.okito-docs-body a:hover {
  color: var(--okito-docs-ink);
}

.okito-docs-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.okito-docs-body blockquote {
  margin: 1em 0;
  padding: 0.75em 1em;
  border-left: 4px solid var(--okito-docs-blue);
  background: var(--okito-docs-panel);
  color: #3a4a5c;
}

.okito-docs-body h2,
.okito-docs-body h3,
.okito-docs-body h4 {
  color: var(--okito-docs-ink);
  margin-top: 1.6em;
  scroll-margin-top: 100px;
}

.okito-docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  border: 1px solid var(--okito-docs-line);
  background: #fff;
  font-size: 15px;
}

.okito-docs-body th,
.okito-docs-body td {
  border: 1px solid var(--okito-docs-line);
  padding: 12px 14px;
  vertical-align: top;
}

.okito-docs-body tr:first-child th,
.okito-docs-body tr:first-child td {
  background: #eff6ff;
  font-weight: 600;
}

.okito-docs-body pre,
.okito-docs-md-raw {
  background: #0f1b2d;
  color: #e8eef7;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  position: relative;
}

.okito-docs-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.okito-docs-body :not(pre) > code {
  background: #eef3f9;
  color: var(--okito-docs-blue);
  padding: 2px 6px;
  border-radius: 4px;
}

.okito-docs-code-wrap {
  position: relative;
}

.okito-docs-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.okito-docs-hint {
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  border-left: 4px solid var(--okito-docs-blue);
  background: var(--okito-docs-hint-info);
}

.okito-docs-hint--warning {
  border-left-color: #d5971c;
  background: var(--okito-docs-hint-warning);
}

.okito-docs-hint--success {
  border-left-color: var(--okito-docs-green);
  background: var(--okito-docs-hint-success);
}

.okito-docs-hint--danger {
  border-left-color: #c0392b;
  background: #fdecea;
}

.okito-docs-content-ref {
  border: 1px solid var(--okito-docs-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  background: var(--okito-docs-panel);
}

.okito-docs-content-ref a {
  font-weight: 600;
  color: var(--okito-docs-blue);
  text-decoration: none;
}

@media (max-width: 991px) {
  .okito-docs-shell {
    padding-top: 100px;
  }
}

.okito-docs-toc__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--okito-docs-muted);
  margin: 0 0 10px;
}

.okito-docs-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.okito-docs-toc__item a {
  display: block;
  color: var(--okito-docs-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
}

.okito-docs-toc__item a:hover,
.okito-docs-toc__item a.is-active {
  color: var(--okito-docs-blue);
}

.okito-docs-toc__item--h3,
.okito-docs-toc__item--h4,
.okito-docs-toc__item--h5,
.okito-docs-toc__item--h6 {
  padding-left: 12px;
}

.okito-docs-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--okito-docs-line);
}

.okito-docs-prevnext__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  border: 1px solid var(--okito-docs-line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--okito-docs-panel);
  color: var(--okito-docs-ink);
}

.okito-docs-prevnext__link--next {
  text-align: right;
}

.okito-docs-prevnext__label {
  font-size: 12px;
  color: var(--okito-docs-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.okito-docs-prevnext__title {
  font-weight: 600;
  color: var(--okito-docs-blue);
}

.okito-docs-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.okito-docs-page-list__link {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--okito-docs-line);
  border-radius: 10px;
  margin-bottom: 12px;
  text-decoration: none;
  background: var(--okito-docs-panel);
}

.okito-docs-page-list__title {
  display: block;
  font-weight: 700;
  color: var(--okito-docs-ink);
}

.okito-docs-page-list__desc {
  display: block;
  margin-top: 4px;
  color: var(--okito-docs-muted);
  font-size: 14px;
}

.okito-docs-sidebar__close {
  display: none;
}

.okito-docs-backdrop {
  display: none;
}

@media (max-width: 1199px) {
  .okito-docs-layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  }

  .okito-docs-layout__toc {
    display: none;
  }
}

@media (max-width: 991px) {
  .okito-docs-menu-toggle {
    display: inline-flex;
  }

  .okito-docs-layout {
    grid-template-columns: 1fr;
  }

  .okito-docs-layout__sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    z-index: 1200;
    background: var(--okito-docs-panel);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 24px rgba(15, 27, 45, 0.12);
    padding: 20px;
  }

  body.okito-docs-nav-open .okito-docs-layout__sidebar {
    transform: translateX(0);
  }

  body.okito-docs-nav-open .okito-docs-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(14, 15, 17, 0.35);
    z-index: 1100;
  }

  .okito-docs-sidebar__close {
    display: block;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    margin-left: auto;
    margin-bottom: 12px;
    position: relative;
  }

  .okito-docs-sidebar__close span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--okito-docs-ink);
    top: 17px;
  }

  .okito-docs-sidebar__close span:first-child {
    transform: rotate(45deg);
  }

  .okito-docs-sidebar__close span:last-child {
    transform: rotate(-45deg);
  }

  .okito-docs-sidebar__inner,
  .okito-docs-toc {
    position: static;
    max-height: none;
  }

  .okito-docs-prevnext {
    grid-template-columns: 1fr;
  }
}
