/* KuryeX geliştirici dokümanı */
:root {
  --dc-bg: #0b1220;
  --dc-panel: #0f192b;
  --dc-panel-2: #121f35;
  --dc-code: #08101d;
  --dc-line: rgba(148, 163, 184, 0.16);
  --dc-line-2: #22324a;
  --dc-text: #c7d3df;
  --dc-muted: #8a9bb0;
  --dc-head: #f4f8fb;
  --dc-accent: #34d399;
  --dc-accent-2: #6ee7b7;
  --dc-warn: #fbbf24;
  --dc-info: #60a5fa;
  --dc-top-h: 60px;
  --dc-side-w: 264px;
  --dc-toc-w: 220px;
  --dc-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--dc-top-h) + 16px); -webkit-text-size-adjust: 100%; }
body.dc {
  margin: 0;
  background: var(--dc-bg);
  color: var(--dc-text);
  font: 15px/1.7 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.dc a { color: var(--dc-accent-2); text-decoration: none; }
.dc a:hover { text-decoration: underline; }
.dc code { font-family: var(--dc-mono); font-size: 0.85em; }
.dc-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--dc-accent); color: #022c22; border-radius: 6px; }
.dc-skip:focus { left: 8px; }

/* Üst bar */
.dc-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  height: var(--dc-top-h); padding: 0 20px;
  background: rgba(11, 18, 32, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dc-line);
}
.dc-brand { display: flex; align-items: center; gap: 8px; color: var(--dc-head) !important; font-weight: 800; font-size: 17px; text-decoration: none !important; }
.dc-brand img { border-radius: 7px; }
.dc-brand em { font-style: normal; font-weight: 600; color: var(--dc-accent); padding: 1px 7px; border: 1px solid rgba(52, 211, 153, 0.35); border-radius: 999px; font-size: 12px; }
.dc-top-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.dc-top-links a { color: var(--dc-muted); font-size: 14px; font-weight: 600; }
.dc-top-links a:hover { color: var(--dc-head); text-decoration: none; }
.dc-top-links .dc-top-cta { color: #022c22; background: var(--dc-accent); padding: 7px 14px; border-radius: 8px; }
.dc-top-links .dc-top-cta:hover { color: #022c22; background: var(--dc-accent-2); }
.dc-menu-btn { display: none; width: 40px; height: 40px; margin-left: -8px; padding: 10px 9px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.dc-menu-btn span { display: block; height: 2px; margin: 4px 0; background: var(--dc-head); border-radius: 2px; }

/* Yerleşim */
.dc-shell { display: grid; grid-template-columns: var(--dc-side-w) minmax(0, 1fr) var(--dc-toc-w); max-width: 1440px; margin: 0 auto; }
.dc-sidebar {
  position: sticky; top: var(--dc-top-h); align-self: start;
  height: calc(100vh - var(--dc-top-h)); overflow-y: auto;
  padding: 24px 14px 24px 20px; border-right: 1px solid var(--dc-line);
}
.dc-nav-group { margin-bottom: 22px; }
.dc-nav-group p { margin: 0 0 6px 10px; color: var(--dc-head); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dc-nav-group ul { list-style: none; margin: 0; padding: 0; }
.dc-nav-group a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--dc-muted); font-size: 14px; line-height: 1.4; }
.dc-nav-group a:hover { color: var(--dc-head); background: rgba(148, 163, 184, 0.08); text-decoration: none; }
.dc-nav-group a.is-active { color: var(--dc-accent-2); background: rgba(52, 211, 153, 0.1); font-weight: 700; }
.dc-sidebar-foot { display: grid; gap: 6px; margin-top: 8px; padding: 16px 10px 0; border-top: 1px solid var(--dc-line); }
.dc-sidebar-foot a { color: var(--dc-muted); font-size: 13px; }
.dc-backdrop { display: none; }

.dc-main { min-width: 0; padding: 36px 48px 80px; }
.dc-article { max-width: 820px; outline: none; }
.dc-toc { position: sticky; top: var(--dc-top-h); align-self: start; max-height: calc(100vh - var(--dc-top-h)); overflow-y: auto; padding: 36px 20px 24px 8px; }
.dc-toc p { margin: 0 0 8px; color: var(--dc-head); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dc-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--dc-line); }
.dc-toc li a { display: block; padding: 4px 0 4px 12px; color: var(--dc-muted); font-size: 13px; line-height: 1.4; }
.dc-toc li.lvl-3 a { padding-left: 24px; font-size: 12.5px; }
.dc-toc a:hover { color: var(--dc-head); text-decoration: none; }

/* Başlık */
.dc-head { padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--dc-line); }
.dc-kicker { margin: 0 0 6px; color: var(--dc-accent); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.dc-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dc-head h1 { margin: 0; color: var(--dc-head); font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; }
.dc-lead { margin: 10px 0 0; color: var(--dc-muted); font-size: 17px; }
.dc-copy-page {
  flex: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  padding: 7px 12px; border: 1px solid var(--dc-line-2); border-radius: 8px;
  background: var(--dc-panel); color: var(--dc-text); font: 600 13px/1 inherit; cursor: pointer;
}
.dc-copy-page::before { content: ''; width: 12px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; box-shadow: 3px -3px 0 -1.5px var(--dc-panel), 3px -3px 0 0 currentColor; }
.dc-copy-page:hover { border-color: var(--dc-accent); color: var(--dc-head); }

/* Gövde tipografisi */
.dc-body h2 { margin: 44px 0 12px; color: var(--dc-head); font-size: 23px; line-height: 1.3; letter-spacing: -0.01em; }
.dc-body h3 { margin: 30px 0 10px; color: var(--dc-head); font-size: 18px; }
.dc-body h4 { margin: 22px 0 8px; color: var(--dc-head); font-size: 14px; letter-spacing: 0.02em; }
.dc-body h2:first-child { margin-top: 0; }
.dc-body p { margin: 0 0 14px; }
.dc-body ul { margin: 0 0 14px; padding-left: 20px; }
.dc-body li { margin: 4px 0; }
.dc-body :not(pre) > code { padding: 1px 6px; border-radius: 5px; background: var(--dc-panel-2); color: var(--dc-accent-2); overflow-wrap: anywhere; }
.dc-body strong { color: var(--dc-head); }
.dc-loading { color: var(--dc-muted); }

/* Tablo */
.dc-table { overflow-x: auto; margin: 10px 0 20px; border: 1px solid var(--dc-line-2); border-radius: 10px; }
.dc-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dc-table th, .dc-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--dc-line); }
.dc-table th { background: var(--dc-panel); color: var(--dc-head); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.dc-table tr:last-child td { border-bottom: 0; }
.dc-table td:first-child { white-space: nowrap; }
.dc-type { color: #c4b5fd; font-family: var(--dc-mono); font-size: 12.5px; }

/* Kod */
.dc-code, .dc-tabs { margin: 10px 0 20px; border: 1px solid var(--dc-line-2); border-radius: 10px; background: var(--dc-code); overflow: hidden; }
.dc-code-head, .dc-tabs-bar { display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 6px 0 12px; background: var(--dc-panel); border-bottom: 1px solid var(--dc-line-2); }
.dc-code-head span { color: var(--dc-muted); font: 12.5px var(--dc-mono); }
.dc-code-head--bare { min-height: 0; padding: 0; border: 0; background: transparent; position: relative; }
.dc-code-head--bare .dc-copy { position: absolute; right: 6px; top: 6px; z-index: 1; }
.dc-tabs-bar { overflow-x: auto; scrollbar-width: none; padding-left: 4px; }
.dc-tabs-bar::-webkit-scrollbar { display: none; }
.dc-tab { flex: none; padding: 10px 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dc-muted); font: 600 13px/1 inherit; cursor: pointer; }
.dc-tab:hover { color: var(--dc-head); }
.dc-tab.is-active { color: var(--dc-accent-2); border-bottom-color: var(--dc-accent); }
.dc-copy { flex: none; margin-left: auto; padding: 5px 10px; border: 1px solid var(--dc-line-2); border-radius: 6px; background: var(--dc-panel-2); color: var(--dc-muted); font: 600 12px/1 inherit; cursor: pointer; }
.dc-copy:hover { color: var(--dc-head); border-color: var(--dc-accent); }
.dc pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #dbe7f3; font: 13px/1.65 var(--dc-mono); tab-size: 2; }
.dc pre code { font-size: inherit; }
.tk-key { color: #93c5fd; }
.tk-str { color: #86efac; }
.tk-num { color: #fca5a5; }
.tk-kw { color: #c4b5fd; }
.tk-com { color: #64748b; font-style: italic; }

/* İstek satırı */
.dc-request { margin: 10px 0 20px; }
.dc-request .dc-tabs { margin: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.dc-request-line { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--dc-line-2); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--dc-panel-2); overflow-x: auto; }
.dc-request-line code { color: var(--dc-head); white-space: nowrap; }
.dc-method { flex: none; display: inline-block; min-width: 52px; padding: 2px 7px; border-radius: 5px; font: 800 11.5px/1.6 var(--dc-mono); text-align: center; letter-spacing: 0.03em; }
.dc-method--get { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
.dc-method--post { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.dc-method--put { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }
.dc-method--patch { background: rgba(196, 181, 253, 0.16); color: #c4b5fd; }
.dc-method--delete { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }

/* Not kutuları */
.dc-callout { margin: 16px 0 22px; padding: 14px 16px; border: 1px solid var(--dc-line-2); border-left: 3px solid var(--dc-info); border-radius: 8px; background: rgba(96, 165, 250, 0.06); }
.dc-callout strong { display: block; margin-bottom: 4px; color: var(--dc-head); }
.dc-callout--warn { border-left-color: var(--dc-warn); background: rgba(251, 191, 36, 0.06); }

/* Kartlar */
.dc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 26px; }
.dc-card { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--dc-line-2); border-radius: 12px; background: var(--dc-panel); color: var(--dc-text) !important; text-decoration: none !important; transition: border-color 0.15s, transform 0.15s; }
.dc-card:hover { border-color: var(--dc-accent); transform: translateY(-1px); }
.dc-card strong { color: var(--dc-head); font-size: 15.5px; }
.dc-card span { color: var(--dc-muted); font-size: 14px; line-height: 1.5; }
.dc-card .dc-card-kicker { color: var(--dc-accent); font: 700 11.5px var(--dc-mono); }

/* Adımlar ve akış */
.dc-steps { counter-reset: step; list-style: none; margin: 14px 0 24px; padding: 0; }
.dc-steps li { counter-increment: step; position: relative; display: grid; gap: 2px; padding: 0 0 16px 42px; }
.dc-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(52, 211, 153, 0.14); color: var(--dc-accent-2); font: 800 13px/28px var(--dc-mono); text-align: center; }
.dc-steps li::after { content: ''; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--dc-line-2); }
.dc-steps li:last-child::after { display: none; }
.dc-steps strong { color: var(--dc-head); }
.dc-flow { list-style: none; display: grid; gap: 10px; margin: 14px 0 24px; padding: 0; }
.dc-flow li { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--dc-line-2); border-radius: 10px; background: var(--dc-panel); }
.dc-flow-n { flex: none; width: 26px; height: 26px; border-radius: 7px; background: rgba(52, 211, 153, 0.14); color: var(--dc-accent-2); font: 800 13px/26px var(--dc-mono); text-align: center; }
.dc-flow div { display: grid; }
.dc-flow strong { color: var(--dc-head); }

/* OpenAPI */
.dc-op { padding: 22px 0 10px; border-top: 1px solid var(--dc-line); scroll-margin-top: calc(var(--dc-top-h) + 16px); }
.dc-op-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; font-size: 16px !important; overflow-wrap: anywhere; }
.dc-op-title code { color: var(--dc-head); font-size: 15px; }
.dc-op-summary { color: var(--dc-text); }
.dc-op-auth { color: var(--dc-muted); font-size: 13.5px; }
.dc-op-index { display: grid; margin: 8px 0 18px; border: 1px solid var(--dc-line-2); border-radius: 10px; overflow: hidden; }
.dc-op-index a { display: grid; grid-template-columns: auto minmax(0, auto) 1fr; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--dc-line); color: var(--dc-text); font-size: 14px; }
.dc-op-index a:last-child { border-bottom: 0; }
.dc-op-index a:hover { background: var(--dc-panel); text-decoration: none; }
.dc-op-index code { color: var(--dc-head); white-space: nowrap; }
.dc-op-index span:last-child { color: var(--dc-muted); text-align: right; }

/* SSS ve günlük */
.dc-faq details { border: 1px solid var(--dc-line-2); border-radius: 10px; background: var(--dc-panel); margin-bottom: 10px; }
.dc-faq summary { padding: 14px 16px; color: var(--dc-head); font-weight: 700; cursor: pointer; list-style-position: inside; }
.dc-faq details p { margin: 0; padding: 0 16px 14px; color: var(--dc-text); }
.dc-changelog section { position: relative; padding: 0 0 8px 22px; border-left: 1px solid var(--dc-line-2); }
.dc-changelog section::before { content: ''; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--dc-accent); }
.dc-changelog h2 { margin: 0 0 6px !important; font-size: 18px !important; }
.dc-changelog time { color: var(--dc-accent); font: 700 14px var(--dc-mono); margin-right: 6px; }

/* Sayfa geçişi */
.dc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dc-line); }
.dc-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--dc-line-2); border-radius: 10px; color: var(--dc-text); }
.dc-pager a:hover { border-color: var(--dc-accent); text-decoration: none; }
.dc-pager a span { color: var(--dc-muted); font-size: 13px; }
.dc-pager a strong { color: var(--dc-head); }
.dc-pager .is-next { text-align: right; }

/* Duyarlı */
@media (max-width: 1180px) {
  .dc-shell { grid-template-columns: var(--dc-side-w) minmax(0, 1fr); }
  .dc-toc { display: none; }
}
@media (max-width: 860px) {
  .dc-top { padding: 0 16px; }
  .dc-menu-btn { display: block; }
  .dc-top-links a:not(.dc-top-cta) { display: none; }
  .dc-shell { display: block; }
  .dc-sidebar {
    position: fixed; z-index: 35; top: 0; left: 0;
    width: min(300px, 86vw); height: 100%; height: 100dvh;
    padding-top: calc(var(--dc-top-h) + 20px);
    background: var(--dc-bg);
    transform: translateX(-100%); transition: transform 0.2s ease;
  }
  .dc-menu-open .dc-sidebar { transform: none; }
  .dc-menu-open { overflow: hidden; }
  .dc-menu-open .dc-backdrop { display: block; position: fixed; z-index: 30; inset: 0; background: rgba(2, 6, 23, 0.6); }
  .dc-main { padding: 24px 16px 64px; }
  .dc-head-row { flex-direction: column; gap: 10px; }
  .dc-copy-page { margin-top: 0; }
  .dc-op-index a { grid-template-columns: auto 1fr; }
  .dc-op-index span:last-child { grid-column: 1 / -1; text-align: left; }
  .dc-pager { grid-template-columns: 1fr; }
  .dc pre { font-size: 12.5px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-sidebar, .dc-card { transition: none; }
}
