/*
 * StockMount API dokümantasyonu.
 * Renk, yazı ve köşe değerleri stockmount.com tasarım sistemindeki --ds-* değerleriyle aynıdır.
 */

@font-face {
    font-family: "Manrope";
    src: local("Manrope"), url("../fonts/manrope-var.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #ff0068;
    --brand-hover: #e0005c;
    --brand-deep: #c20050;
    --brand-soft: #ffe3ea;
    --on-brand: #fff;

    --bg: #ebebeb;
    --sheet: #fff;
    --sheet-alt: #f5f5f6;
    --text: #292929;
    --muted: #5c5c5c;
    --subtle: #8a8a8a;
    --border: #e2e2e5;
    --border-strong: #8f8f8f;
    --input-border: #7a7a7a;
    --link: var(--brand-deep);
    --ink: #292929;
    --on-ink: #fff;

    --success: #176f41;
    --success-soft: #e3f5ea;
    --warning: #9a4a00;
    --warning-soft: #fff1dd;
    --danger: #b91c1c;
    --danger-soft: #fde8e8;

    --code-bg: #292929;
    --code-text: #f5f5f6;
    --code-muted: #c4c4c4;

    /* Koyu bant (ana sayfadaki "Üç adımda ilk istek") */
    --band-bg: #292929;
    --band-text: #fff;

    --shadow-card: 0 8px 24px #2929291a;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --header-top: 12px;
    --header-height: 60px;
    --header-offset: calc(var(--header-top) + var(--header-height));
    --sidebar-width: 264px;
    --duration-fast: .15s;
    --ease: cubic-bezier(.4, 0, .2, 1);

    color-scheme: light;
}

/* Gece teması (varsayılan). Sunucu <html data-theme="dark|light"> yazar; seçim "sm-docs-theme" çerezindedir. */
:root[data-theme="dark"] {
        --brand-hover: #ff2a7d;
        --brand-deep: #ff4d94;
        --brand-soft: #421523;

        --bg: #1f1f1f;
        --sheet: #292929;
        --sheet-alt: #1f1f1f;
        --text: #fff;
        --muted: #b8b8b8;
        --subtle: #7a7a7a;
        --border: #3f3f3f;
        --border-strong: #8a8a8a;
        --input-border: #8a8a8a;
        --ink: #fff;
        --on-ink: #292929;

        --success: #5fd48f;
        --success-soft: #15321f;
        --warning: #f5b25a;
        --warning-soft: #3a2a10;
        --danger: #ff8a8a;
        --danger-soft: #3d1717;

        --code-bg: #141414;
        --band-bg: #141414;
        --shadow-card: 0 8px 24px #00000073;

        color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
    :root { --duration-fast: 0s; }
}

/* ─── Temel ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-offset) + 16px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }

h1, h2, h3 { color: var(--text); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 36px; line-height: 44px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 22px; line-height: 28px; font-weight: 700; margin: 40px 0 12px; }
h3 { font-size: 17px; line-height: 24px; font-weight: 700; margin: 28px 0 8px; }

p { margin: 0 0 16px; }

code {
    font-family: var(--font-mono);
    font-size: .875em;
    background: var(--sheet-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1px 5px;
    overflow-wrap: anywhere;
}

pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    background: var(--brand); color: var(--on-brand); padding: 8px 16px; border-radius: var(--radius-md);
}
.skip-link:focus { top: 16px; }

.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }

[hidden] { display: none !important; }

/* ─── Üst menü ──────────────────────────────────────────────────────────── */

.topbar {
    position: sticky;
    top: var(--header-top);
    z-index: 40;
    padding: 0 12px;
}

.topbar-inner {
    max-width: 1400px;
    height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 12px 0 16px;
    background: var(--sheet);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand .logo { height: 28px; width: auto; }
.brand { color: var(--text); }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.brand-tag {
    font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .08em;
    color: var(--brand-deep); background: var(--brand-soft);
    padding: 3px 8px; border-radius: var(--radius-full);
}

.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a {
    color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 700;
    padding: 8px 12px; border-radius: var(--radius-md);
    transition: color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.topnav a:hover { color: var(--text); background: var(--sheet-alt); }
.topnav a.active { color: var(--text); background: var(--sheet-alt); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-switch { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px; }
.lang-switch:hover { color: var(--text); }

.session { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.session-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.session-label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }

.icon-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 0; border-radius: var(--radius-md);
    background: transparent; color: var(--text); cursor: pointer;
}
.icon-button:hover { background: var(--sheet-alt); }
.nav-toggle { display: none; }

.link-button {
    border: 0; background: none; padding: 4px; cursor: pointer;
    color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* ─── Düğmeler ve formlar ───────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: var(--radius-full);
    font: inherit; font-size: 15px; line-height: 20px; font-weight: 700;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-secondary { background: var(--ink); color: var(--on-ink); }
.btn-secondary:hover { background: var(--muted); color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

input[type="text"], input[type="password"], input[type="search"], input:not([type]), textarea {
    width: 100%;
    font: inherit; font-size: 15px; color: var(--text);
    background: var(--sheet);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }

.field-label { display: block; font-size: 14px; font-weight: 700; margin: 16px 0 6px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; margin: 12px 0 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }

.form-error {
    margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-md);
    background: var(--danger-soft); color: var(--danger); font-size: 14px; line-height: 20px;
}

/* ─── Sayfa yerleşimi ───────────────────────────────────────────────────── */

.shell {
    max-width: 1424px;
    margin: 0 auto;
    padding: 24px 12px 0;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-offset) + 24px);
    max-height: calc(100vh - var(--header-offset) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 4px 24px 12px;
    scrollbar-width: thin;
}

.sidebar-search { position: sticky; top: 0; background: var(--bg); padding-bottom: 12px; z-index: 1; }

.sidenav-section { margin-bottom: 24px; }
.sidenav-title {
    margin: 0 0 6px; padding: 0 10px;
    font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--subtle);
}
.sidenav .sidenav-title a { display: inline; color: inherit; text-decoration: none; padding: 0; box-shadow: none; }
.sidenav-title a:hover, .sidenav-title a.active { color: var(--brand-deep); background: none; }
.sidenav-group { margin: 2px 0 0; }
.sidenav-group > summary {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-md);
    font-size: 13px; line-height: 20px; font-weight: 700; color: var(--muted); cursor: pointer; list-style: none;
}
.sidenav-group > summary::-webkit-details-marker { display: none; }
.sidenav-group > summary::before {
    content: ""; flex-shrink: 0; width: 6px; height: 6px; margin: 0 2px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
}
.sidenav-group[open] > summary::before { transform: rotate(45deg); }
.sidenav-group > summary:hover { background: var(--sheet); color: var(--text); }
.sidenav-group > a { margin-left: 12px; }
.sidenav-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--subtle); }
.sidenav a {
    display: block; padding: 5px 10px; border-radius: var(--radius-md);
    color: var(--text); text-decoration: none; font-size: 14px; line-height: 20px;
}
.sidenav a:hover { background: var(--sheet); }
.sidenav a.active { background: var(--sheet); color: var(--brand-deep); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.sidenav a.endpoint-link { font-family: var(--font-mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidenav a.is-removed { color: var(--subtle); text-decoration: line-through; }
.sidenav-empty { padding: 0 10px; font-size: 14px; color: var(--muted); }

.sidebar-backdrop { display: none; }

.content {
    min-width: 0;
    background: var(--sheet);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 48px 56px;
    margin-bottom: 24px;
}
.content:focus { outline: none; }

.footer { padding: 8px 12px 32px; }
.footer-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 12px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    font-size: 14px; color: var(--muted);
}
.footer-links { display: flex; gap: 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* stockmount.com iframe'i: sayfa kendi başlığını gösterir, burada üst menü ve alt bilgi gizlenir. */
.embedded .topbar, .embedded .footer { display: none; }
.embedded .shell { padding-top: 12px; }
.embedded .sidebar { top: 12px; max-height: calc(100vh - 24px); }
html.embedded { scroll-padding-top: 16px; }

/* ─── İçerik ────────────────────────────────────────────────────────────── */

.page-head { margin-bottom: 32px; }
.page-head h1 { margin-bottom: 12px; }
.eyebrow {
    margin: 0 0 12px;
    font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-deep);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 760px; }

.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose table { margin-bottom: 16px; }

ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
ol.steps > li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-deep);
    font-size: 13px; font-weight: 800; line-height: 26px; text-align: center;
}

.callout {
    border-left: 4px solid var(--border-strong);
    background: var(--sheet-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 18px;
    margin: 0 0 24px;
    max-width: 760px;
}
.callout p:last-child { margin-bottom: 0; }
.callout-brand { border-left-color: var(--brand); background: var(--brand-soft); }
.callout-warning { border-left-color: var(--warning); background: var(--warning-soft); }
.callout-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.callout-success { border-left-color: var(--success); background: var(--success-soft); }
.callout.small { padding: 10px 14px; margin-bottom: 12px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
    display: inline-flex; align-items: center;
    font-size: 12px; line-height: 16px; font-weight: 700;
    padding: 4px 10px; border-radius: var(--radius-full);
    background: var(--sheet-alt); color: var(--muted);
}
.badge-brand { background: var(--brand-soft); color: var(--brand-deep); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-success { background: var(--success-soft); color: var(--success); }

.tag { font-size: 11px; line-height: 14px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-sm); margin-left: 6px; white-space: nowrap; }
.tag-required { background: var(--brand-soft); color: var(--brand-deep); }

.arrow-link { font-weight: 700; text-decoration: none; }
.arrow-link::after { content: " →"; }

/* ─── Tablolar ──────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
th {
    text-align: left; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); background: var(--sheet-alt);
    padding: 10px 14px; border-bottom: 1px solid var(--border);
}
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td > :last-child { margin-bottom: 0; }
td a code { overflow-wrap: normal; }

.fields .field-name { white-space: nowrap; width: 1%; }
.fields .field-name code { font-weight: 700; background: none; border: 0; padding: 0; font-size: 13px; }
.field-prefix { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.fields .depth-1 .field-name { padding-left: 26px; }
.fields .depth-2 .field-name { padding-left: 38px; }
.fields .depth-3 .field-name, .fields .depth-4 .field-name { padding-left: 50px; }
.type { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.values { margin: 8px 0 0; display: grid; gap: 4px; }
.values div { display: flex; gap: 8px; }
.values dt { flex-shrink: 0; }
.values dd { margin: 0; color: var(--muted); }

.errors-table td:first-child { white-space: nowrap; width: 1%; }
.errors-table tr:target td { background: var(--brand-soft); }
.error-name { display: block; font-size: 12px; color: var(--subtle); margin-top: 4px; }

/* ─── Kod blokları ve sekmeler ──────────────────────────────────────────── */

.code-block { position: relative; margin: 0 0 16px; }
.code-block pre {
    margin: 0;
    background: var(--code-bg); color: var(--code-text);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-family: var(--font-mono); font-size: 13px; line-height: 20px;
    overflow: auto; max-height: 520px;
    tab-size: 2;
}
.copy-button {
    position: absolute; top: 8px; right: 8px;
    font: inherit; font-size: 12px; font-weight: 700;
    color: var(--code-muted); background: #ffffff14; border: 1px solid #ffffff24;
    border-radius: var(--radius-sm); padding: 4px 8px; cursor: pointer;
}
.copy-button:hover { color: #fff; background: #ffffff26; }
.copy-button.inline { position: static; color: var(--muted); background: var(--sheet); border-color: var(--border); }
.copy-button.inline:hover { color: var(--text); }

.tab-list { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tab-list button {
    font: inherit; font-size: 13px; font-weight: 700;
    border: 1px solid var(--border); background: var(--sheet); color: var(--muted);
    border-radius: var(--radius-full); padding: 5px 12px; cursor: pointer;
}
.tab-list button:hover { color: var(--text); }
.tab-list button[aria-selected="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ─── Servis sayfası ────────────────────────────────────────────────────── */

.endpoint-url {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--sheet-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 8px 8px 8px 10px; max-width: 760px;
}
.endpoint-url code { background: none; border: 0; padding: 0; font-size: 14px; flex: 1; min-width: 0; }
.method {
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    background: var(--brand-soft); color: var(--brand-deep);
    padding: 3px 8px; border-radius: var(--radius-sm);
}

.endpoint-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 40px; }
.endpoint-main > section:first-child h2 { margin-top: 0; }
.endpoint-side .panel { margin-top: 32px; }
.panel-title { font-size: 17px; line-height: 24px; margin: 0 0 12px; }

@media (min-width: 1360px) {
    .endpoint-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
    .endpoint-side { position: sticky; top: calc(var(--header-offset) + 24px); max-height: calc(100vh - var(--header-offset) - 48px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
    .endpoint-side .panel:first-child { margin-top: 0; }
    .embedded .endpoint-side { top: 12px; max-height: calc(100vh - 24px); }
}

.tryit {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; background: var(--sheet);
}
.code-input {
    font-family: var(--font-mono); font-size: 13px; line-height: 20px;
    min-height: 180px; resize: vertical; tab-size: 2;
}
.tryit .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.try-result { margin-top: 16px; }
.try-meta { font-size: 14px; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }

.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ─── Servis listesi ────────────────────────────────────────────────────── */

.endpoint-group { margin-bottom: 8px; }
.endpoint-group h2 { margin-top: 32px; margin-bottom: 4px; }
.endpoint-list { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
.endpoint-list li + li { border-top: 1px solid var(--border); }
.endpoint-list a {
    display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; gap: 16px; align-items: center;
    padding: 12px 16px; text-decoration: none; color: var(--text);
}
.endpoint-list a:hover { background: var(--sheet-alt); }
.endpoint-list code { background: none; border: 0; padding: 0; font-weight: 700; font-size: 14px; }
.endpoint-title { color: var(--muted); font-size: 15px; }
.endpoint-list .is-removed code { text-decoration: line-through; color: var(--subtle); }

/* ─── Kartlar (ana sayfa, indirmeler) ───────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 0 0 32px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .cards-2 { grid-template-columns: minmax(0, 1fr); } }
.card, .group-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--sheet); color: var(--text); text-decoration: none;
    transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.card:hover, .group-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); color: var(--text); }
.card-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); }
.card-title { font-size: 17px; line-height: 24px; font-weight: 700; }
.card-text { font-size: 14px; line-height: 20px; color: var(--muted); overflow-wrap: anywhere; }
.card-count { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--subtle); }

.home h2 { margin-top: 48px; margin-bottom: 16px; }
.hero { padding: 16px 0 8px; max-width: 820px; }
.hero h1 { font-size: 48px; line-height: 54px; margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    margin-top: 40px;
}
.fact {
    background: var(--sheet-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600;
}
@media (max-width: 1100px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.fact code { background: none; border: 0; padding: 0; font-size: 14px; }
.fact-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.steps-band { margin-top: 48px; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--band-bg); color: var(--band-text); border: 1px solid var(--border); }
.steps-band h2 { color: var(--band-text); margin: 0 0 20px; }
.steps-band a { color: var(--band-text); }
.steps-band a:hover { color: var(--brand); }
.numbered { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: n; }
.numbered li { counter-increment: n; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 22px; }
.numbered li::before {
    content: counter(n);
    width: 32px; height: 32px; border-radius: 50%; margin-bottom: 8px;
    background: var(--brand); color: #fff; font-weight: 800; line-height: 32px; text-align: center;
}
.numbered span { opacity: .8; }
.home .callout-brand { margin-top: 48px; max-width: none; }

.empty-state { padding: 48px 0; max-width: 560px; }
.empty-state .btn { margin-right: 8px; }

/* ─── Bağlan penceresi ──────────────────────────────────────────────────── */

.dialog {
    width: min(440px, calc(100vw - 32px));
    padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--sheet); color: var(--text); box-shadow: var(--shadow-card);
}
.dialog::backdrop { background: #14141499; }
.dialog-body { padding: 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog .muted { font-size: 14px; line-height: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.form-fields { display: grid; gap: 14px; margin-top: 20px; }
.form-fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }

/* ─── Dar ekranlar ──────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
    .topnav { display: none; }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .shell { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
        width: min(320px, 86vw); max-height: none;
        background: var(--bg); padding: 16px 12px 24px 16px;
        transform: translateX(-100%); transition: transform var(--duration-fast) var(--ease);
        box-shadow: var(--shadow-card);
    }
    .sidebar.open { transform: none; }
    .sidebar-backdrop.open { display: block; position: fixed; inset: 0; z-index: 50; background: #14141466; }
    .embedded .sidebar { top: 0; max-height: none; }
    .content { padding: 28px 20px 40px; }
    .hero h1 { font-size: 36px; line-height: 42px; }
    h1 { font-size: 30px; line-height: 36px; }
}

@media (max-width: 640px) {
    .topbar { padding: 0 8px; }
    .topbar-inner { gap: 8px; padding: 0 8px; }
    .topbar-actions { gap: 4px; }
    .icon-button { width: 36px; }
    .nav-toggle { flex-shrink: 0; }
    .brand { flex-shrink: 1; min-width: 0; }
    .brand .logo { height: 20px; max-width: 100%; }
    .brand-tag { display: none; }
    .btn-sm { padding: 0 12px; }
    .session-label { display: none; }
    .lang-switch { padding: 4px; }
    .shell { padding: 12px 8px 0; }
    .content { padding: 24px 16px 32px; border-radius: var(--radius-md); }
    .hero h1 { font-size: 30px; line-height: 36px; }
    .steps-band { padding: 24px 20px; }
    .endpoint-list a { grid-template-columns: 1fr; gap: 4px; }

    /* Alan tablosu dar ekranda satır satır gösterilir. */
    .fields thead { display: none; }
    .fields tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .fields tr:last-child { border-bottom: 0; }
    .fields td { display: block; padding: 0; border: 0; width: auto; }
    .fields .field-name { white-space: normal; padding-left: 0 !important; }
    .fields .field-type { margin: 2px 0 6px; }
    .fields .depth-1, .fields .depth-2, .fields .depth-3, .fields .depth-4 { padding-left: 26px; }
}

/* ─── Hareket ───────────────────────────────────────────────────────────── */
/* Animasyonlar yalnızca html.motion varken çalışır. early.js bu sınıfı ilk çizimden önce ekler;
   "hareketi azalt" açıksa eklemez ve site animasyonsuz çizilir. Süreler 150–600 ms. */

:root {
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* 1. Sayfa geçişleri: üst menü ve yan menü yerinde kalır, içerik yumuşakça değişir. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}
.topbar { view-transition-name: topbar; }
.sidebar { view-transition-name: sidebar; }
::view-transition-old(root) { animation: 140ms ease-out both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* 2. Açılışta belirme: başlık ve kartlar sırayla, hafifçe yukarı kayarak gelir. */
.motion :is(.page-head, .hero > *, .facts > *, .cards > *, .group-grid > *, .endpoint-grid > *) {
    animation: rise 460ms var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 45ms + 40ms);
}
:is(.hero, .facts, .cards, .group-grid, .endpoint-grid) > :nth-child(2) { --i: 1; }
:is(.hero, .facts, .cards, .group-grid, .endpoint-grid) > :nth-child(3) { --i: 2; }
:is(.hero, .facts, .cards, .group-grid, .endpoint-grid) > :nth-child(4) { --i: 3; }
:is(.hero, .facts, .cards, .group-grid, .endpoint-grid) > :nth-child(5) { --i: 4; }
:is(.hero, .facts, .cards, .group-grid, .endpoint-grid) > :nth-child(n+6) { --i: 5; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* 3. Kartlarda imleci izleyen ışık ve hafif yükselme (site.js --mx/--my değerlerini yazar). */
.card, .group-card { position: relative; overflow: hidden; isolation: isolate; }
.card::before, .group-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
        color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%);
    opacity: 0; transition: opacity .25s var(--ease-out);
}
.card:hover::before, .group-card:hover::before { opacity: 1; }
.motion :is(.card, .group-card) {
    transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .3s var(--ease-out);
}
.motion :is(.card, .group-card):hover { transform: translateY(-3px); }

/* 7. Basma hissi ve Bağlan penceresi */
.motion .btn {
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .4s var(--ease-spring);
}
.motion .btn:active:not(:disabled) { transform: scale(.96); transition-duration: .08s; }
.motion .icon-button { transition: background .15s var(--ease), transform .4s var(--ease-spring); }
.motion .icon-button:active { transform: scale(.88); transition-duration: .08s; }
.dialog::backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.motion .dialog[open] { animation: dialog-in .32s var(--ease-out); }
.motion .dialog[open]::backdrop { animation: backdrop-in .32s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes backdrop-in { from { opacity: 0; } }

/* 4. Kod örneklerinde kayan sekme göstergesi (site.js .tab-indicator ekler ve konumlar). */
.tab-list.has-indicator { position: relative; }
.tab-list.has-indicator button { position: relative; z-index: 1; background: transparent; }
.tab-list.has-indicator button[aria-selected="true"] { background: transparent; border-color: transparent; color: var(--on-brand); }
.tab-indicator {
    position: absolute; z-index: 0; top: 0; left: 0;
    border-radius: var(--radius-full); background: var(--brand); pointer-events: none;
}
.motion .tab-indicator.ready {
    transition: transform .38s var(--ease-out), width .38s var(--ease-out), height .38s var(--ease-out);
}
.motion .tab-list.has-indicator button { transition: color .2s var(--ease); }

/* 5. Kopyala → ✓ Kopyalandı */
.copy-button.is-copied { color: #5fd48f; border-color: #5fd48f66; }
.copy-button.inline.is-copied { color: var(--success); border-color: var(--success); }
.motion .copy-button.is-copied { animation: pop-in .35s var(--ease-spring); }
@keyframes pop-in { from { transform: scale(.85); } }

/* 6. Gönder: bekleme, sonuç durumu, yükleniyor efekti ve yanıtın açılması */
.btn.is-loading::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
}
.btn.is-loading { cursor: progress; }
.btn.is-loading:disabled { opacity: .8; }
.btn.is-success { background: var(--success); color: #fff; }
.btn.is-error { background: var(--danger); color: #fff; }
.motion .btn:is(.is-success, .is-error) { animation: pop-in .4s var(--ease-spring); }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { display: grid; gap: 10px; margin-top: 16px; padding: 18px; border-radius: var(--radius-md); background: var(--code-bg); }
.skeleton span {
    height: 10px; border-radius: var(--radius-full);
    background: linear-gradient(90deg, #ffffff10 0%, #ffffff26 40%, #ffffff10 80%) 0 0 / 300% 100%;
}
.skeleton span:nth-child(2) { width: 72%; }
.skeleton span:nth-child(3) { width: 86%; }
.skeleton span:nth-child(4) { width: 54%; }
.motion .skeleton span { animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.motion .try-result.revealed { animation: rise .4s var(--ease-out); }

/* 8. Ana sayfa başlığı kelime kelime belirir (site.js kelimeleri ayırır).
   Betik çalışmazsa başlık 1,2 sn sonra yine görünür. */
.motion .hero h1:not(.split) { opacity: 0; animation: show 0s 1.2s forwards; }
.motion .hero h1 .word {
    display: inline-block;
    animation: word-in .7s var(--ease-out) backwards;
    animation-delay: calc(var(--w) * 60ms + 60ms);
}
@keyframes show { to { opacity: 1; } }
.motion .hero h1.split { animation: none; }
@keyframes word-in { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }

/* 9. "Üç adımda ilk istek": görünüme girince numaralar sırayla belirir, çizgi soldan sağa dolar. */
.steps-band { container-type: inline-size; }
.numbered { position: relative; }
.numbered li::before { position: relative; z-index: 1; }
@container (min-width: 700px) {
    .numbered::after {
        content: ""; position: absolute; z-index: 0; top: 15px; left: 16px; height: 2px;
        right: calc((100% - 48px) / 3 - 16px);
        background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 35%, transparent));
        transform-origin: left;
    }
}
.motion .steps-band .numbered::after { transform: scaleX(0); transition: transform 1s var(--ease-out) .2s; }
.motion .steps-band.in-view .numbered::after { transform: scaleX(1); }
.motion .steps-band .numbered li::before { animation: pop .5s var(--ease-spring) backwards paused; }
.motion .steps-band .numbered li:nth-child(2)::before { animation-delay: .3s; }
.motion .steps-band .numbered li:nth-child(3)::before { animation-delay: .6s; }
.motion .steps-band.in-view .numbered li::before { animation-play-state: running; }
@keyframes pop { from { opacity: 0; transform: scale(0); } }

/* 10. Logo: ilk girişte (oturum başına bir kez) S karesi gelir, harfler sırayla belirir;
   üzerine gelince S esner, M parlar. */
.logo-mark, .logo-letter { transform-box: fill-box; transform-origin: center; }
.logo-letter:nth-child(2) { --i: 1; }
.logo-letter:nth-child(3) { --i: 2; }
.logo-letter:nth-child(4) { --i: 3; }
.logo-letter:nth-child(5) { --i: 4; }
.logo-letter:nth-child(6) { --i: 5; }
.logo-letter:nth-child(7) { --i: 6; }
.logo-letter:nth-child(8) { --i: 7; }
.logo-letter:nth-child(9) { --i: 8; }
.motion.logo-intro .logo-mark { animation: mark-in .7s var(--ease-spring) backwards .1s; }
.motion.logo-intro .logo-letter { animation: letter-in .5s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 45ms + .35s); }
.motion .brand:hover .logo-mark { animation: mark-wiggle .7s var(--ease-spring); }
.motion .brand:hover .logo-m { animation: m-shine .7s ease-out; }
@keyframes mark-in { from { opacity: 0; transform: scale(.3) rotate(-14deg); } }
@keyframes letter-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes mark-wiggle {
    30% { transform: rotate(-9deg) scale(1.1); }
    60% { transform: rotate(4deg) scale(1.03); }
}
@keyframes m-shine { 40% { filter: brightness(1.45) drop-shadow(0 0 6px #ff0068); } }

/* 11. Gece/gündüz geçişi: yeni tema düğmeden başlayan bir daireyle yayılır (View Transitions).
   Desteklemeyen tarayıcılarda renkler yumuşakça geçer (theme-fade). */
html.vt-theme .topbar, html.vt-theme .sidebar { view-transition-name: none; }
html.vt-theme::view-transition-old(root),
html.vt-theme::view-transition-new(root) { mix-blend-mode: normal; }
html.vt-theme::view-transition-old(root) { animation: none; }
html.vt-theme::view-transition-new(root) { animation: theme-reveal .6s var(--ease-out); }
@keyframes theme-reveal {
    from { clip-path: circle(0 at var(--vt-x) var(--vt-y)); }
    to { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); }
}
html.theme-fade, html.theme-fade * {
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease) !important;
}
.motion .theme-toggle.spin svg { animation: icon-in .5s var(--ease-spring); }
@keyframes icon-in { from { opacity: 0; transform: rotate(-120deg) scale(.4); } }

/* ─── Kod renkleri ──────────────────────────────────────────────────────── */
/* SyntaxHighlighter.cs (sunucu) ve site.js highlightJson (Deneyin yanıtı) bu sınıfları yazar.
   Kod kutuları iki temada da koyu zeminlidir. */
.tk-key { color: #ff8fb8; }
.tk-str { color: #b5e48c; }
.tk-num { color: #ffcb6b; }
.tk-kw { color: #c3a6ff; }
.tk-com { color: #8f8f8f; font-style: italic; }
.tk-var { color: #7dd3fc; }

/* ─── Arama (⌘K) ────────────────────────────────────────────────────────── */
kbd {
    font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 700;
    padding: 0 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--radius-sm);
    background: var(--sheet-alt); color: var(--muted); white-space: nowrap;
}
.search-trigger {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 8px 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--sheet); color: var(--muted); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.search-trigger:hover { border-color: var(--text); color: var(--text); }
.search-trigger span { flex: 1; }
.search-button { display: none; }
@media (max-width: 960px) { .search-button { display: inline-flex; } }
@media (max-width: 640px) { .search-button { display: none; } }

.search-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(76vh, 640px); margin-top: 10vh; overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.search-box input[type="search"] { flex: 1; min-width: 0; padding: 6px 0; border: 0; background: transparent; font-size: 17px; color: var(--text); }
.search-box input[type="search"]:focus-visible { outline: none; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.search-item {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "kind title" "kind sub"; column-gap: 12px;
    padding: 9px 12px; border-radius: var(--radius-md); color: var(--text); text-decoration: none;
}
.search-item:hover { color: var(--text); }
[aria-selected="true"] > .search-item { background: var(--sheet-alt); box-shadow: inset 3px 0 0 var(--brand); }
.search-kind { grid-area: kind; margin-top: 3px; font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.search-title { grid-area: title; font-size: 15px; line-height: 22px; font-weight: 700; }
.kind-api .search-title, .kind-error .search-title { font-family: var(--font-mono); font-size: 14px; }
.search-title mark { background: none; color: var(--brand-deep); }
.search-sub { grid-area: sub; font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { margin: 0; padding: 24px; text-align: center; color: var(--muted); }
.search-hint { margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; line-height: 16px; color: var(--subtle); }

/* ─── Başlık bağlantıları ve "Bu sayfada" ───────────────────────────────── */
.heading-anchor {
    position: relative; margin-left: 8px; color: var(--subtle); font-weight: 600; text-decoration: none;
    opacity: 0; transition: opacity var(--duration-fast) var(--ease);
}
:is(h2, h3):hover > .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
@media (hover: none) { .heading-anchor { opacity: .5; } }
.heading-anchor:hover { color: var(--brand-deep); }
.heading-anchor[data-tip]::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
    padding: 4px 8px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink);
    font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap;
}

.toc { display: none; }
@media (min-width: 1360px) {
    .content.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 200px; column-gap: 48px; align-items: start; }
    .has-toc .toc {
        display: block; position: sticky; top: calc(var(--header-offset) + 24px);
        max-height: calc(100vh - var(--header-offset) - 48px); overflow-y: auto; scrollbar-width: thin;
    }
    .embedded .has-toc .toc { top: 12px; max-height: calc(100vh - 24px); }
}
.toc-title { margin: 0 0 10px; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.toc ul { position: relative; list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--brand-deep); }
.toc-marker { position: absolute; top: 0; left: -2px; width: 2px; border-radius: 2px; background: var(--brand); }

/* ─── Hata kodlarını süzme ──────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.filter-bar .filter-input { max-width: 360px; }
.filter-count { font-size: 14px; color: var(--muted); }

/* ─── Okuma çubuğu ve başa dön ──────────────────────────────────────────── */
.topbar-inner { position: relative; }
.read-progress {
    position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--brand), #ff7a59); transform: scaleX(0); transform-origin: left;
}
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 30;
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--border); border-radius: 50%; background: var(--sheet); color: var(--text);
    box-shadow: var(--shadow-card); cursor: pointer;
    visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility 0s .2s;
}
.to-top.show { visibility: visible; opacity: 1; transition: opacity .2s var(--ease), visibility 0s; }
.to-top:hover { border-color: var(--brand); color: var(--brand-deep); }

/* ─── Deneyin: JSON denetimi ve son istekler ────────────────────────────── */
.code-input.is-invalid { border-color: var(--danger); }
.code-input.is-invalid:focus-visible { outline-color: var(--danger); border-color: var(--danger); }
.json-hint { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--danger); }
.try-history { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.try-history summary { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.try-history .muted { margin: 8px 0 0; }
.try-history ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.history-item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--sheet-alt);
    color: var(--text); font: inherit; font-size: 13px; line-height: 18px; text-align: left; cursor: pointer;
}
.history-item:hover { border-color: var(--brand); }
.history-item .badge { flex-shrink: 0; }
.history-time { flex-shrink: 0; font-family: var(--font-mono); color: var(--muted); }
.history-body { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); color: var(--muted); }

/* ─── Ana sayfa başlığının arkasındaki ışık ─────────────────────────────── */
.content:has(> .home) { overflow: clip; }
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero::before {
    inset: -120px -200px -60px -80px; filter: blur(24px);
    background:
        radial-gradient(38% 46% at 22% 32%, color-mix(in srgb, var(--brand) var(--aurora-brand, 26%), transparent), transparent 70%),
        radial-gradient(34% 42% at 70% 22%, color-mix(in srgb, #8b5cf6 var(--aurora-violet, 20%), transparent), transparent 70%),
        radial-gradient(30% 40% at 86% 78%, color-mix(in srgb, #ff8a3d var(--aurora-orange, 14%), transparent), transparent 70%);
}
/* Koyu zeminde renkler daha az belirgin olduğu için gece temasında güçlendirilir. */
[data-theme="dark"] .hero { --aurora-brand: 40%; --aurora-violet: 34%; --aurora-orange: 22%; --aurora-dots: 22%; }
/* Sağ üstte silikleşen nokta ızgarası */
.hero::after {
    inset: -40px -200px -24px -48px;
    background-image: radial-gradient(color-mix(in srgb, var(--text) var(--aurora-dots, 18%), transparent) 1px, transparent 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(50% 70% at 72% 30%, #000, transparent 75%);
    mask-image: radial-gradient(50% 70% at 72% 30%, #000, transparent 75%);
}

/* ─── Hareket (yeni öğeler) ─────────────────────────────────────────────── */
html.motion { scroll-behavior: smooth; }
.motion .hero::before { animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora {
    50% { transform: translate3d(4%, 6%, 0) scale(1.1) rotate(3deg); }
    100% { transform: translate3d(-4%, -2%, 0) scale(1.05) rotate(-2deg); }
}
.motion .heading-anchor[data-tip]::after { animation: tip-in .25s var(--ease-out); }
@keyframes tip-in { from { opacity: 0; transform: translate(-50%, 4px); } }
.motion .toc-marker.ready { transition: transform .3s var(--ease-out), height .3s var(--ease-out); }
.motion .toc a { transition: color .2s var(--ease); }
.motion .errors-table tr:target td { animation: target-flash 2.4s var(--ease-out); }
@keyframes target-flash { 0%, 25% { background: color-mix(in srgb, var(--brand) 32%, transparent); } }
.motion .to-top { transform: translateY(12px) scale(.9); transition: opacity .2s var(--ease), transform .3s var(--ease-out), visibility 0s .3s; }
.motion .to-top.show { transform: none; transition: opacity .2s var(--ease), transform .4s var(--ease-spring), visibility 0s; }
.motion .search-results [role="option"] { animation: rise .25s var(--ease-out) backwards; }
.motion .search-results [role="option"]:nth-child(2) { animation-delay: 20ms; }
.motion .search-results [role="option"]:nth-child(3) { animation-delay: 40ms; }
.motion .search-results [role="option"]:nth-child(4) { animation-delay: 60ms; }
.motion .search-results [role="option"]:nth-child(n+5) { animation-delay: 80ms; }
.motion .sidenav-group > summary::before { transition: transform .25s var(--ease-out); }
/* Grup açılıp kapanırken yükseklik yumuşakça değişir (destekleyen tarayıcılarda; diğerlerinde anında). */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .motion .sidenav-group { interpolate-size: allow-keywords; }
    .motion .sidenav-group::details-content {
        height: 0; overflow: clip;
        transition: height .3s var(--ease-out), content-visibility .3s allow-discrete;
    }
    .motion .sidenav-group[open]::details-content { height: auto; }
}
