/*
 * yz sözlük — tasarım sistemi (tek dosya)
 * Açık ve koyu tema aynı token setinden üretilir. Etkileşimlerde yerleşimi değiştiren
 * (boyut, kenar, konum) animasyon yoktur: yalnızca renk, gölge ve opaklık değişir.
 */

/* =========================================================================
   1. Tokenlar
   ========================================================================= */

:root {
    color-scheme: light;

    --bg: #f5f5f2;
    --bg-deep: #ecece7;
    --surface: #ffffff;
    --surface-2: #f8f8f6;
    --surface-3: #f0f0ec;
    --ink: #16161b;
    --ink-2: #3f3f47;
    --muted: #7b7b85;
    --faint: #a5a5ad;
    --line: #e6e6e1;
    --line-2: #d8d8d2;

    --brand: #f2542d;
    --brand-ink: #d9431e;
    --brand-soft: #fdebe5;
    --brand-line: #f8c5b6;
    --on-brand: #ffffff;

    --ai: #0f8f83;
    --ai-soft: #e1f3f1;
    --prompt: #5b4fe0;
    --prompt-soft: #ecebfd;
    --good: #1c8a4a;
    --good-soft: #e3f4ea;
    --warn: #b7791f;
    --warn-soft: #fbf1dc;
    --bad: #d23b3b;
    --bad-soft: #fbe7e7;

    --code-bg: #15151c;
    --code-head: #1d1d26;
    --code-ink: #e9e9f1;
    --code-muted: #8d8da0;
    --code-line: #2a2a36;

    --shadow-1: 0 1px 2px rgba(22, 22, 27, .04), 0 1px 1px rgba(22, 22, 27, .03);
    --shadow-2: 0 1px 2px rgba(22, 22, 27, .04), 0 4px 14px -4px rgba(22, 22, 27, .08);
    --shadow-3: 0 2px 6px rgba(22, 22, 27, .05), 0 18px 40px -12px rgba(22, 22, 27, .18);
    --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);

    --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

    --r-xs: 6px;
    --r-sm: 9px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --pill: 999px;

    --header-h: 64px;
    --subnav-h: 0px;
    --stack-h: calc(var(--header-h) + var(--subnav-h));
    --frame-w: 272px;
    --rail-w: 316px;
    --gap: 24px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --t: .18s;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d0d10;
    --bg-deep: #08080a;
    --surface: #16161b;
    --surface-2: #1b1b21;
    --surface-3: #222229;
    --ink: #f1f1f4;
    --ink-2: #c5c5cd;
    --muted: #8e8e99;
    --faint: #62626c;
    --line: #26262d;
    --line-2: #33333c;
    --brand: #ff6a42;
    --brand-ink: #ff8661;
    --brand-soft: #2b1812;
    --brand-line: #5a2a1c;
    --on-brand: #140905;
    --ai: #3cc7b8;
    --ai-soft: #0f2825;
    --prompt: #8f86ff;
    --prompt-soft: #1f1c3b;
    --good: #4cc47d;
    --good-soft: #10271a;
    --warn: #e0a643;
    --warn-soft: #2a2111;
    --bad: #ff6b6b;
    --bad-soft: #2d1414;
    --code-bg: #0b0b0f;
    --code-head: #121218;
    --code-line: #23232d;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px -6px rgba(0, 0, 0, .5);
    --shadow-3: 0 2px 8px rgba(0, 0, 0, .45), 0 24px 48px -12px rgba(0, 0, 0, .7);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0d0d10;
        --bg-deep: #08080a;
        --surface: #16161b;
        --surface-2: #1b1b21;
        --surface-3: #222229;
        --ink: #f1f1f4;
        --ink-2: #c5c5cd;
        --muted: #8e8e99;
        --faint: #62626c;
        --line: #26262d;
        --line-2: #33333c;
        --brand: #ff6a42;
        --brand-ink: #ff8661;
        --brand-soft: #2b1812;
        --brand-line: #5a2a1c;
        --on-brand: #140905;
        --ai: #3cc7b8;
        --ai-soft: #0f2825;
        --prompt: #8f86ff;
        --prompt-soft: #1f1c3b;
        --good: #4cc47d;
        --good-soft: #10271a;
        --warn: #e0a643;
        --warn-soft: #2a2111;
        --bad: #ff6b6b;
        --bad-soft: #2d1414;
        --code-bg: #0b0b0f;
        --code-head: #121218;
        --code-line: #23232d;
        --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px -6px rgba(0, 0, 0, .5);
        --shadow-3: 0 2px 8px rgba(0, 0, 0, .45), 0 24px 48px -12px rgba(0, 0, 0, .7);
    }
}

/* Kategori / yazar tonu: data-hue 0-11 -> --h */
:root { --h: 14; }
[data-hue] { --h: 14; }
[data-hue="1"] { --h: 38; }  [data-hue="2"] { --h: 60; }  [data-hue="3"] { --h: 95; }
[data-hue="4"] { --h: 140; } [data-hue="5"] { --h: 168; } [data-hue="6"] { --h: 192; }
[data-hue="7"] { --h: 212; } [data-hue="8"] { --h: 234; } [data-hue="9"] { --h: 256; }
[data-hue="10"] { --h: 286; } [data-hue="11"] { --h: 326; }

/* =========================================================================
   2. Temel
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--stack-h) + 16px); }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; letter-spacing: -.015em; overflow-wrap: anywhere; }
p, li, dd { overflow-wrap: anywhere; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
table { border-collapse: collapse; width: 100%; }
kbd { font: 600 11px/1 var(--mono); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
code { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); }
::selection { background: color-mix(in srgb, var(--brand) 24%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 17px; height: 17px; }
.icon-xs { width: 14px; height: 14px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--mono); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.spacer, .act-spacer { flex: 1 1 auto; }

/* =========================================================================
   3. Yerleşim
   ========================================================================= */

.site-header {
    position: sticky; top: 0; z-index: 40;
    height: var(--header-h);
    display: flex; align-items: center; gap: 16px;
    padding: 0 max(20px, calc((100vw - 1440px) / 2 + 24px));
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: var(--font-display); }
.brand-mark {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--ink); color: var(--bg);
    font: 800 15px/1 var(--font-display); letter-spacing: -.04em;
    position: relative;
}
.brand-mark::after {
    content: ""; position: absolute; right: -3px; bottom: -3px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--brand); border: 2.5px solid var(--bg);
}
.brand-word { font-weight: 750; font-size: 18px; letter-spacing: -.03em; }
.brand-caret { display: none; }

.search { position: relative; flex: 1 1 auto; max-width: 520px; margin-left: 12px; }
.search .search-icon { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search-input {
    width: 100%; height: 40px;
    padding: 0 64px 0 40px;
    border-radius: var(--pill);
    border: 1px solid var(--line);
    background: var(--surface);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.search-input::placeholder { color: var(--faint); }
.search-input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-kbd {
    position: absolute; right: 6px; top: 50%; translate: 0 -50%;
    display: inline-flex; align-items: center; gap: 2px;
    height: 28px; padding: 0 9px; border-radius: var(--pill);
    background: var(--surface-3); color: var(--muted); font: 600 11px/1 var(--mono);
}
.search-kbd:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.header-avatar { display: grid; place-items: center; width: 40px; height: 40px; }
.site-header .menu-toggle { display: none; }

.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; transform-origin: left; transform: scaleX(0); background: var(--brand); opacity: 0; }
.nav-progress.is-loading { opacity: 1; animation: nav-load 8s cubic-bezier(.1, .7, .1, 1) forwards; }
@keyframes nav-load { from { transform: scaleX(0); } to { transform: scaleX(.92); } }

.shell {
    display: grid;
    grid-template-columns: var(--frame-w) minmax(0, 1fr);
    gap: var(--gap);
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px max(20px, 24px) 64px;
    align-items: start;
}
.has-rail .shell { grid-template-columns: var(--frame-w) minmax(0, 1fr) var(--rail-w); }
.content { min-width: 0; outline: none; }
.content > * + * { margin-top: 16px; }

.sol-frame {
    position: sticky; top: calc(var(--stack-h) + 20px);
    max-height: calc(100vh - var(--stack-h) - 40px);
    display: flex; flex-direction: column; gap: 12px;
    min-width: 0;
}
.frame-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
.frame-link {
    display: flex; align-items: center; gap: 6px; min-width: 0;
    height: 42px; padding: 0 10px;
    border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--line);
    font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; color: var(--ink-2);
    transition: border-color var(--t), color var(--t), background-color var(--t);
}
.frame-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-link:hover { color: var(--ink); border-color: var(--line-2); }
.frame-link[aria-current="page"] { border-color: var(--brand-line); color: var(--brand-ink); background: var(--brand-soft); }
.frame-link-prompt .icon { color: var(--prompt); }
.frame-link-prompt:hover, .frame-link-prompt[aria-current="page"] { border-color: color-mix(in srgb, var(--prompt) 40%, var(--line)); color: var(--prompt); background: var(--prompt-soft); }

.frame-tabs {
    flex: none;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
    padding: 4px; border-radius: var(--r);
    background: var(--surface-3);
}
.frame-tab {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
    height: 34px; padding: 0 6px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--muted);
    transition: color var(--t), background-color var(--t), box-shadow var(--t);
}
.frame-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-tab .icon { width: 15px; height: 15px; }
.frame-tab:hover { color: var(--ink); }
.frame-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.frame-tab[aria-selected="true"] .icon { color: var(--brand); }

.frame-body {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
    margin-right: -6px; padding-right: 6px;
}
.frame-body.is-loading { opacity: .5; transition: opacity var(--t); }
.frame-widgets:not(:empty) { margin-top: 12px; display: grid; gap: 12px; }
.frame-foot { flex: none; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 4px 0; font-size: 12px; color: var(--faint); }
.frame-foot a:hover { color: var(--ink); }

.right-rail { display: grid; gap: 16px; min-width: 0; align-content: start; }

.scrim { display: none; }

.bottom-nav { display: none; }
.fab { display: none; }

.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 30;
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3);
    opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.to-top-track { fill: none; stroke: var(--line); stroke-width: 2.5; }
.to-top-ring { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: var(--progress, 1); stroke-linecap: round; }
.to-top > .icon { position: relative; width: 18px; height: 18px; }

/* =========================================================================
   4. Temel bileşenler
   ========================================================================= */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 16px; border-radius: var(--pill);
    border: 1px solid var(--line-2); background: var(--surface);
    font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
    color: var(--ink);
    transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn:hover { border-color: var(--faint); }
.btn:active { background: var(--surface-3); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-primary:active { background: var(--brand-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; color: var(--ink); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-write { padding: 0 16px 0 13px; }

.icon-btn {
    position: relative;
    display: inline-grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%;
    color: var(--ink-2);
    transition: background-color var(--t), color var(--t);
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn[aria-current="page"] { color: var(--brand); }

.badge {
    position: absolute; top: 4px; right: 3px;
    min-width: 17px; height: 17px; padding: 0 5px; border-radius: var(--pill);
    display: grid; place-items: center;
    background: var(--brand); color: var(--on-brand);
    font: 700 10px/1 var(--font); font-variant-numeric: tabular-nums;
    border: 2px solid var(--bg);
}
.badge.bump { animation: pop .4s var(--ease); }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--pill); background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.chip-btn {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    height: 34px; padding: 0 13px; border-radius: var(--pill);
    border: 1px solid var(--line); background: var(--surface);
    font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
    transition: background-color var(--t), border-color var(--t), color var(--t);
}
.chip-btn:hover { border-color: var(--line-2); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.tag {
    display: inline-flex; align-items: center; gap: 4px; flex: none;
    height: 22px; padding: 0 8px; border-radius: var(--pill);
    background: var(--surface-3); color: var(--ink-2);
    font-size: 11.5px; font-weight: 650; line-height: 1; white-space: nowrap;
}
.tag .icon { width: 12px; height: 12px; }
.tag-admin { background: var(--brand-soft); color: var(--brand-ink); }
.tag-mod { background: color-mix(in srgb, #2f7de1 14%, var(--surface)); color: #2f7de1; }
.tag-ai { background: var(--ai-soft); color: var(--ai); }
.tag-sprout { background: var(--good-soft); color: var(--good); }
.tag-prompt { background: var(--prompt-soft); color: var(--prompt); }

.live-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--good); opacity: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow a:hover { color: var(--ink); }
.page-title { font-size: clamp(24px, 3vw, 32px); font-weight: 780; letter-spacing: -.03em; }
.lead { color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.section-title {
    display: flex; align-items: baseline; gap: 8px;
    font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
    margin: 28px 0 12px;
}
.section-title .icon { align-self: center; color: var(--brand); }
.section-title span { font-size: 13px; font-weight: 450; letter-spacing: 0; text-transform: none; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 650; color: var(--brand-ink); }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.notice, .alert, .banner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 13px 16px; border-radius: var(--r);
    border: 1px solid var(--line); background: var(--surface);
    font-size: 14px; color: var(--ink-2);
}
.notice a { color: var(--brand-ink); font-weight: 600; }
.alert { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); background: var(--bad-soft); color: var(--bad); }
.banner { justify-content: space-between; }
.banner-accent { border-color: var(--brand-line); background: var(--brand-soft); color: var(--ink); }
.banner-ai { border-color: color-mix(in srgb, var(--ai) 30%, var(--line)); background: var(--ai-soft); color: var(--ink); }

.empty { padding: 20px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; text-align: center; }
.empty a { color: var(--brand-ink); font-weight: 600; }
.empty-state {
    display: grid; justify-items: center; gap: 10px; text-align: center;
    padding: 44px 24px; border-radius: var(--r-lg);
    border: 1px dashed var(--line-2); color: var(--muted);
}
.empty-state p { max-width: 44ch; }
.empty-icon { width: 34px; height: 34px; color: var(--faint); stroke-width: 1.5; }

/* Formlar */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, fieldset.field > legend { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.optional, .req { font-weight: 400; color: var(--muted); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea,
.entry-form textarea, .entry-form input[type="text"], .modal textarea, .search-form input, .vault input, .row-form input {
    width: 100%; min-height: 42px;
    padding: 9px 13px; border-radius: var(--r-sm);
    border: 1px solid var(--line-2); background: var(--surface);
    color: var(--ink); outline: none;
    transition: border-color var(--t), box-shadow var(--t);
}
textarea.input, .field textarea, .entry-form textarea, .modal textarea { line-height: 1.6; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .entry-form textarea:focus, .entry-form input:focus,
.modal textarea:focus, .search-form input:focus, .vault input:focus, .row-form input:focus { border-color: var(--brand); box-shadow: var(--ring); }
::placeholder { color: var(--faint); }
select.input, .field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-sm { min-height: 34px !important; padding: 5px 10px !important; font-size: 13px; }
.input-xs { min-height: 30px !important; padding: 4px 8px !important; font-size: 12.5px; width: auto !important; }
.code-input { font-family: var(--mono); font-size: 13px; }
.field-error { color: var(--bad); font-size: 13px; }
input[type="file"] { font-size: 13px; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 10px; height: 34px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; }

.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input, .theme-option input { accent-color: var(--brand); width: 16px; height: 16px; flex: none; }

.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex: none; }
.switch input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: var(--pill); background: var(--line-2); transition: background-color var(--t); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--t) var(--ease); }
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }

.grid-form, .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span-2, .full { grid-column: 1 / -1; }
.inline-form { display: inline-flex; margin: 0; }
.row-form { display: flex; gap: 8px; align-items: center; }
.submit-row, .form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.counter { margin-right: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--bad); font-weight: 700; }

/* Kartlar / paneller */
.panel {
    padding: 22px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
}
.panel + .panel, .panel-gap { margin-top: 16px; }
.panel-title { font-size: 16px; font-weight: 720; letter-spacing: -.01em; margin-bottom: 14px; }
.cat-form-head .panel-title { margin: 0; }

/* Avatar */
.avatar {
    display: inline-grid; place-items: center; flex: none;
    width: 36px; height: 36px; border-radius: 50%;
    background: hsl(var(--h) 70% 92%);
    color: hsl(var(--h) 55% 32%);
    font: 700 13px/1 var(--font-display); letter-spacing: -.02em;
    object-fit: cover; user-select: none;
}
:root[data-theme="dark"] .avatar:not(.avatar-photo) { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 75% 78%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar:not(.avatar-photo) { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 75% 78%); } }
.avatar-photo { background: var(--surface-3); }
.avatar-xs { width: 22px; height: 22px; font-size: 9px; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-md { width: 38px; height: 38px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }
.avatar-xl { width: 88px; height: 88px; font-size: 30px; }

/* Segment & sekmeler */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--pill); background: var(--surface-3); flex: none; }
.seg a { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--pill); font-size: 13px; font-weight: 600; color: var(--muted); transition: color var(--t), background-color var(--t); }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.tabs a { position: relative; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.tabs a[aria-current] { color: var(--ink); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a, .pagination-current {
    display: inline-flex; align-items: center; gap: 4px;
    height: 38px; padding: 0 14px; border-radius: var(--pill);
    font-size: 14px; font-weight: 600;
}
.pagination a { border: 1px solid var(--line); background: var(--surface); }
.pagination a:hover { border-color: var(--line-2); }
.pagination-current { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Tablolar */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { font-size: 14px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table th.num, .table td.num { text-align: right; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Toast */
.toast-region { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast {
    padding: 11px 18px; border-radius: var(--pill);
    background: var(--ink); color: var(--bg);
    font-size: 14px; font-weight: 550; box-shadow: var(--shadow-3);
    animation: toast-in .28s var(--ease);
}
.toast[data-error], .toast.is-error { background: var(--bad); color: #fff; }
.toast.is-leaving { animation: toast-out .22s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* Modal & palet */
.modal {
    width: min(92vw, 480px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl);
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3);
    margin: auto;
}
.modal::backdrop { background: rgba(10, 10, 14, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .22s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.985); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 22px; }
.modal-head h2 { font-size: 17px; }
.modal-body { display: grid; gap: 10px; padding: 8px 22px 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }

.palette { width: min(94vw, 600px); margin-top: 12vh; }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-search input { flex: 1; min-width: 0; height: 32px; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
.palette-list { max-height: min(60vh, 440px); overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.palette-item {
    display: flex; align-items: center; gap: 12px; width: 100%;
    height: 44px; padding: 0 12px; border-radius: var(--r-sm);
    font-size: 14.5px; text-align: left; color: var(--ink-2);
}
.palette-item .icon { color: var(--muted); }
.palette-item span { flex: none; font-weight: 600; color: var(--ink); }
.palette-item small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; text-align: right; }
.palette-item:hover, .palette-item[aria-selected="true"] { background: var(--surface-3); }
.palette-item[aria-selected="true"] .icon { color: var(--brand); }
.palette-results:not(:empty) { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

/* Öneri kutusu */
.suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
    padding: 6px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3);
    max-height: 360px; overflow-y: auto;
}
.suggest-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; text-align: left; }
.suggest-item > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item:hover, .suggest-item[aria-selected="true"] { background: var(--surface-3); }
.suggest-count { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Reklam */
.ad-slot { position: relative; display: grid; place-items: center; padding: 18px 12px 12px; border-radius: var(--r); border: 1px dashed var(--line-2); overflow: hidden; }
.ad-label { position: absolute; top: 5px; left: 9px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* =========================================================================
   5. Başlık listesi (sol frame ve akış sayfaları)
   ========================================================================= */

.topic-list { display: grid; }
.topic-list li { min-width: 0; }
.topic-list a {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    min-height: 38px; padding: 7px 10px; border-radius: var(--r-sm);
    font-size: 14px; color: var(--ink-2);
    transition: background-color var(--t), color var(--t);
}
.topic-list a:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.topic-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-count { flex: none; min-width: 26px; text-align: right; font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.topic-badge { flex: none; font-size: 11px; font-weight: 700; color: var(--ai); }
.topic-list a[data-heat="7"] .topic-count, .topic-list a[data-heat="8"] .topic-count,
.topic-list a[data-heat="9"] .topic-count, .topic-list a[data-heat="10"] .topic-count { color: var(--brand); }
.topic-list a[data-heat="9"]::before, .topic-list a[data-heat="10"]::before {
    content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
    width: 3px; height: 16px; border-radius: 0 3px 3px 0; background: var(--brand);
}

.feed > h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 780; letter-spacing: -.03em; margin-bottom: 14px; }
.content > .feed > .topic-list, .home-feed .topic-list, .search .topic-list {
    padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.content > .feed > .topic-list a, .home-feed .topic-list a, .search .topic-list a { min-height: 44px; padding: 10px 14px; font-size: 15px; color: var(--ink); }
.content > .feed > .topic-list a:hover, .home-feed .topic-list a:hover, .search .topic-list a:hover { background: var(--surface-2); box-shadow: none; }
.content > .feed > .topic-list li + li, .home-feed .topic-list li + li, .search .topic-list li + li { border-top: 1px solid var(--line); }

.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pill {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
    height: 34px; padding: 0 13px; border-radius: var(--pill);
    background: var(--surface); border: 1px solid var(--line);
    font-size: 13.5px; font-weight: 550; color: var(--ink-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: border-color var(--t), color var(--t);
}
.topic-pill span { flex: none; font-size: 11.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.topic-pill:hover { border-color: var(--line-2); color: var(--ink); }

/* =========================================================================
   6. Entry kartı ve entry içeriği
   ========================================================================= */

.entry {
    position: relative;
    padding: 20px 22px 12px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    transition: box-shadow var(--t), border-color var(--t);
}
.entry + .entry, .entry + .ad-slot, .ad-slot + .entry { margin-top: 14px; }
.entry:hover { box-shadow: var(--shadow-2); }
.entry:target { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-2); }
.entry-rookie { background: color-mix(in srgb, var(--good-soft) 40%, var(--surface)); border-style: dashed; }
.entry-has-prompt { border-color: color-mix(in srgb, var(--prompt) 22%, var(--line)); }

.entry-topic { font-size: 17px; font-weight: 720; letter-spacing: -.015em; margin-bottom: 12px; line-height: 1.35; }
.entry-topic a:hover { color: var(--brand-ink); }

.entry-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0; }
.entry-sign { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1 1 auto; }
.entry-sign .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px hsl(var(--h) 60% 70% / .55); transition: box-shadow var(--t); }
.entry-sign:hover .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px hsl(var(--h) 70% 55%); }
.entry-sign-text { display: grid; gap: 1px; min-width: 0; }
.entry-author-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.entry-author { font-weight: 700; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-sign:hover .entry-author { color: var(--brand-ink); }
.entry-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.entry-edited::before, .entry-read::before { content: "·"; margin-right: 6px; }
.entry::before {
    content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, hsl(var(--h) 75% 58%), color-mix(in srgb, var(--brand) 70%, transparent), transparent);
    opacity: 0; transition: opacity .3s var(--ease);
}
.entry:hover::before, .entry:target::before { opacity: 1; }
.vote-score {
    display: inline-grid; place-items: center; min-width: 32px; height: 34px; padding: 0 4px;
    font: 750 13px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--muted);
}
.vote-score.is-up { color: var(--good); }
.vote-score.is-down { color: var(--bad); }
.vote-score-solo { height: 28px; padding: 0 10px; margin-right: 6px; border-radius: var(--pill); background: var(--surface-2); }
.entry-flags { display: flex; align-items: center; gap: 6px; flex: none; }
.entry-index {
    display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 7px;
    border-radius: var(--pill); background: var(--surface-3);
    font: 700 11.5px/1 var(--mono); color: var(--muted);
}

.entry-body { font-size: 15.5px; line-height: 1.72; color: var(--ink); overflow-wrap: anywhere; }
.entry-body > * + * { margin-top: .85em; }
.entry-body a { color: var(--brand-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.entry-body a:hover { text-decoration-color: currentColor; }
.entry-body .bkz, .entry-body .ara { text-decoration: none; font-weight: 550; }
.entry-body .bkz:hover, .entry-body .ara:hover { text-decoration: underline; }
.entry-body .mention, .entry-body .bkz-author { text-decoration: none; font-weight: 650; color: var(--ink); background: var(--surface-3); padding: 0 5px; border-radius: 5px; }
.entry-body .entry-ref { font-family: var(--mono); font-size: .9em; text-decoration: none; }
.entry-body .ext::after { content: "\2197"; font-size: .8em; margin-left: 2px; }
.entry-body blockquote { position: relative; padding: 10px 14px 10px 40px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); font-style: italic; }
.entry-body blockquote::before { content: "\201C"; position: absolute; left: 12px; top: 2px; font: 800 34px/1 Georgia, serif; color: var(--brand); opacity: .55; }
.entry-body del { color: var(--muted); }
.entry-body mark { background: color-mix(in srgb, var(--warn) 25%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.entry-body :not(pre) > code { padding: 1px 6px; border-radius: 5px; background: var(--surface-3); font-size: .86em; }
.spoiler-inline { background: var(--ink); color: transparent; border-radius: 4px; cursor: pointer; transition: color var(--t), background-color var(--t); }
.spoiler-inline.is-revealed { background: var(--surface-3); color: inherit; }
details.spoiler { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
details.spoiler > summary { cursor: pointer; padding: 9px 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); list-style: none; }
details.spoiler > summary::-webkit-details-marker { display: none; }
details.spoiler > summary::before { content: "+"; display: inline-block; width: 14px; font-family: var(--mono); }
details.spoiler[open] > summary::before { content: "\2212"; }
details.spoiler > :not(summary) { padding: 0 14px 12px; }
.entry-media { margin-top: 1em; }
.entry-media img { border-radius: var(--r); border: 1px solid var(--line); max-height: 560px; width: auto; }
.entry-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.entry-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kod ve prompt blokları: her iki temada koyu, sabit yükseklikli başlık çubuğu */
.code-block {
    margin: 1em 0 0;
    border-radius: var(--r);
    background: var(--code-bg);
    border: 1px solid var(--code-line);
    overflow: hidden;
    color: var(--code-ink);
    box-shadow: var(--shadow-1);
}
.code-block figcaption {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    height: 42px; padding: 0 8px 0 14px;
    background: var(--code-head); border-bottom: 1px solid var(--code-line);
    font-size: 12.5px;
}
.code-kind {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    height: 22px; padding: 0 9px; border-radius: var(--pill);
    font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255, 255, 255, .08); color: var(--code-muted);
}
.code-prompt .code-kind { background: color-mix(in srgb, #8f86ff 22%, transparent); color: #b8b1ff; }
.code-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--code-ink); }
.code-code .code-title { font-family: var(--mono); color: var(--code-muted); font-weight: 500; }
.code-meta { flex: none; padding: 0 8px; height: 20px; display: inline-flex; align-items: center; border-radius: 5px; border: 1px solid var(--code-line); color: var(--code-muted); font: 500 11px/1 var(--mono); }
.code-copy {
    margin-left: auto; flex: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 104px; height: 28px; border-radius: 7px;
    background: rgba(255, 255, 255, .06); color: var(--code-ink);
    font-size: 12px; font-weight: 600;
    transition: background-color var(--t), color var(--t);
}
.code-copy:hover { background: rgba(255, 255, 255, .12); }
.code-copy.is-done { background: color-mix(in srgb, #4cc47d 22%, transparent); color: #7fe0a6; }
.code-block pre {
    margin: 0; padding: 14px 16px 16px;
    max-height: 420px; overflow: auto;
    font: 13.5px/1.65 var(--mono); tab-size: 4;
    scrollbar-width: thin; scrollbar-color: var(--code-line) transparent;
}
.code-prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.code-block code { font-size: inherit; background: none; padding: 0; color: inherit; }
.entry-body > .code-block { margin-top: 1em; }

.entry-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.entry-actions { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.entry-id { flex: none; font: 600 12px/1 var(--mono); color: var(--faint); padding: 6px 4px; }
.entry-id:hover { color: var(--brand-ink); }
.vote-group { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: var(--pill); background: var(--surface-2); margin-right: 6px; }
.act {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-width: 34px; height: 34px; padding: 0 9px; border-radius: var(--pill);
    color: var(--muted); font-size: 13px; font-weight: 600;
    transition: color var(--t), background-color var(--t);
}
.act .icon { width: 17px; height: 17px; }
.act:hover { background: var(--surface-3); color: var(--ink); }
.act-up[aria-pressed="true"] { color: var(--good); background: var(--good-soft); }
.act-down[aria-pressed="true"] { color: var(--bad); background: var(--bad-soft); }
.act-fav[aria-pressed="true"] { color: #e0a100; }
.act-fav[aria-pressed="true"] .icon { fill: currentColor; }
.act-count { min-width: 1ch; font-variant-numeric: tabular-nums; }
.act-count:empty { display: none; }
.act.pop .icon { animation: pop .35s var(--ease); }
.act.burst::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid currentColor; opacity: 0; animation: burst .5s var(--ease); pointer-events: none; }
@keyframes burst { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pop { 50% { transform: scale(1.25); } }

/* =========================================================================
   7. Ana sayfa
   ========================================================================= */

.home > * + * { margin-top: 20px; }
.hero {
    position: relative; overflow: hidden;
    padding: 30px 30px 26px;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    isolation: isolate;
}
.hero::before {
    content: ""; position: absolute; z-index: -1; right: -120px; top: -160px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
}
.hero::after {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
    -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
}
.hero-title { margin-top: 12px; font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; max-width: 16ch; }
.hero-title em { font-style: normal; color: var(--brand); }
.hero-sub { margin-top: 12px; max-width: 54ch; color: var(--ink-2); font-size: 15.5px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 560px; }
.stat-strip > div { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.stat-strip dt { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-strip dd { font: 780 24px/1.2 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-pills { margin-top: 20px; max-height: 76px; overflow: hidden; }

.ai-card {
    padding: 20px 22px; border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--ai-soft), var(--surface) 70%);
    border: 1px solid color-mix(in srgb, var(--ai) 22%, var(--line));
}
.ai-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ai-card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ai); }
.ai-card-text { color: var(--ink); font-size: 15px; }
.theme-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.theme-chip { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.theme-chip strong { font-size: 13.5px; }
.theme-chip a { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-chip a:hover { color: var(--ai); }

.first-run { position: relative; overflow: hidden; display: grid; justify-items: start; gap: 10px; padding: 32px; border-radius: var(--r-xl); background: var(--ink); color: var(--bg); }
.first-run h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.first-run p { max-width: 52ch; opacity: .75; }
.first-run-orb { position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand), transparent); opacity: .55; }
.first-run .btn { position: relative; margin-top: 6px; }

.card-stack { display: grid; gap: 14px; }
.card-stack .entry + .entry { margin-top: 0; }
.card-rank { position: relative; min-width: 0; }
.card-rank .entry-rail { margin-top: 44px; }
.card-rank::before {
    content: attr(data-rank);
    position: absolute; z-index: 1; left: 22px; top: 20px;
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--surface-3); color: var(--ink-2);
    font: 800 14px/1 var(--font-display); font-variant-numeric: tabular-nums;
}
.card-rank[data-rank="1"]::before { background: var(--brand); color: var(--on-brand); }
.card-rank[data-rank="2"]::before, .card-rank[data-rank="3"]::before { background: var(--brand-soft); color: var(--brand-ink); }

/* =========================================================================
   8. Başlık sayfası
   ========================================================================= */

.topic > * + * { margin-top: 14px; }
.topic-header {
    padding: 22px 24px 18px; border-radius: var(--r-xl);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.topic-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.topic-header h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.topic-header h1 a:hover { color: var(--brand-ink); }
.topic-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.topic-stats strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.pulse-wrap { display: inline-flex; align-items: center; width: 120px; height: 28px; }
.pulse { width: 120px; height: 28px; overflow: visible; }
.pulse-line { fill: none; stroke: var(--brand); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pulse-area { fill: color-mix(in srgb, var(--brand) 12%, transparent); }
.pulse-dot { fill: var(--brand); }
.topic-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.topic-missing { padding: 24px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.read-progress {
    position: fixed; left: 0; right: 0; top: var(--stack-h); height: 2px; z-index: 39;
    background: var(--brand); transform-origin: left; transform: scaleX(0); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
    .read-progress { animation: read-grow linear both; animation-timeline: scroll(root); }
    @keyframes read-grow { to { transform: scaleX(1); } }
}

.mod-panel, .ai-summary { margin-top: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.mod-panel > summary, .ai-summary > summary {
    display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
    padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.mod-panel > summary::-webkit-details-marker, .ai-summary > summary::-webkit-details-marker { display: none; }
.ai-summary { background: var(--ai-soft); border-color: color-mix(in srgb, var(--ai) 22%, var(--line)); }
.ai-summary > summary { color: var(--ai); }
.ai-summary p { padding: 0 14px 14px; font-size: 14.5px; }
.mod-panel > form { padding: 4px 14px 14px; }
.mod-panel > form + form { border-top: 1px solid var(--line); padding-top: 14px; }

.category-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 10px; border-radius: var(--pill);
    background: hsl(var(--h) 80% 94%); color: hsl(var(--h) 55% 32%);
    font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.category-chip span { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.category-chip:hover { background: hsl(var(--h) 75% 89%); }
:root[data-theme="dark"] .category-chip { background: hsl(var(--h) 35% 17%); color: hsl(var(--h) 80% 78%); }
:root[data-theme="dark"] .category-chip:hover { background: hsl(var(--h) 35% 22%); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .category-chip { background: hsl(var(--h) 35% 17%); color: hsl(var(--h) 80% 78%); }
    :root:not([data-theme="light"]) .category-chip:hover { background: hsl(var(--h) 35% 22%); }
}

/* =========================================================================
   9. Yazma / editör
   ========================================================================= */

.compose > * + * { margin-top: 18px; }
.compose-head { display: grid; gap: 8px; }
.entry-form {
    display: grid; gap: 12px;
    padding: 18px; border-radius: var(--r-xl);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.topic .entry-form { margin-top: 24px; }
.entry-form > label:not(.visually-hidden) { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.compose-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; }
.compose-row > .field:only-child { grid-column: 1 / -1; }
.compose-title { position: relative; }
.compose-title input { font-size: 17px !important; font-weight: 650; }
.compose-title .hint { min-height: 20px; }
.entry-form textarea#body { min-height: 180px; font-size: 15.5px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.toolbar-group { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-3); }
.toolbar button {
    display: inline-flex; align-items: center; gap: 5px;
    height: 30px; padding: 0 10px; border-radius: 7px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
    transition: background-color var(--t), color var(--t);
}
.toolbar button:hover { background: var(--surface); color: var(--ink); }
.toolbar-accent { background: var(--prompt-soft); }
.toolbar-accent button { color: var(--prompt); }
.toolbar-accent button:hover, .toolbar-accent button[aria-expanded="true"] { background: var(--prompt); color: #fff; }

.prompt-panel {
    display: grid; gap: 12px;
    padding: 16px; border-radius: var(--r-lg);
    background: color-mix(in srgb, var(--prompt-soft) 55%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--prompt) 30%, var(--line));
}
.prompt-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.prompt-panel-head strong { font-size: 14.5px; color: var(--prompt); }
.prompt-panel-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.prompt-panel-row .field[hidden] + * { grid-column: 1 / -1; }
.prompt-panel textarea {
    width: 100%; min-height: 150px; padding: 12px 14px; border-radius: var(--r-sm);
    border: 1px solid var(--code-line); background: var(--code-bg); color: var(--code-ink);
    font: 13.5px/1.6 var(--mono); resize: vertical; outline: none;
}
.prompt-panel textarea:focus { border-color: var(--prompt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--prompt) 28%, transparent); }
.prompt-panel textarea::placeholder { color: var(--code-muted); }
.prompt-panel-foot { display: flex; justify-content: flex-end; gap: 8px; }
.prompt-panel .btn-primary { background: var(--prompt); border-color: var(--prompt); color: #fff; box-shadow: none; }
.prompt-panel .btn-primary:hover { background: color-mix(in srgb, var(--prompt) 85%, #000); }

.entry-edit > h1, .entry-single > h1 { font-size: 22px; font-weight: 780; margin-bottom: 14px; }

/* =========================================================================
   10. Sayfalar
   ========================================================================= */

.page-hero {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 24px; border-radius: var(--r-xl);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.page-hero > div { flex: 1 1 280px; min-width: 0; display: grid; gap: 6px; }
.page-hero-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex: none; background: var(--brand-soft); color: var(--brand); }
.page-hero-icon .icon { width: 26px; height: 26px; }
.page-hero-prompt { background: linear-gradient(135deg, var(--prompt-soft), var(--surface) 65%); border-color: color-mix(in srgb, var(--prompt) 25%, var(--line)); }
.page-hero-prompt .page-hero-icon { background: var(--code-bg); color: #b8b1ff; }
.page-hero-prompt .btn-primary { background: var(--prompt); border-color: var(--prompt); color: #fff; box-shadow: none; }
.prompts-page > * + * { margin-top: 14px; }
.prompts-page .section-title { margin-top: 28px; }

/* Kategoriler */
.categories > * + * { margin-top: 18px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.category-card {
    display: grid; gap: 6px; align-content: start; min-width: 0;
    padding: 18px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
    transition: border-color var(--t), box-shadow var(--t);
}
.category-card:hover { border-color: hsl(var(--h) 60% 70%); box-shadow: var(--shadow-2); }
.category-card strong, .category-card h2, .category-card h3 { font-size: 16px; font-weight: 720; }
.category-glyph {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 12px;
    background: hsl(var(--h) 80% 93%); color: hsl(var(--h) 55% 35%);
    font: 800 18px/1 var(--font-display);
}
:root[data-theme="dark"] .category-glyph { background: hsl(var(--h) 35% 18%); color: hsl(var(--h) 80% 76%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .category-glyph { background: hsl(var(--h) 35% 18%); color: hsl(var(--h) 80% 76%); } }
.category-desc { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-count { font-size: 12px; font-weight: 650; color: hsl(var(--h) 50% 45%); }
.category-page > * + * { margin-top: 14px; }
.category-hero {
    display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: center;
    padding: 24px; border-radius: var(--r-xl);
    background: linear-gradient(135deg, hsl(var(--h) 80% 95%), var(--surface) 70%);
    border: 1px solid var(--line);
}
:root[data-theme="dark"] .category-hero { background: linear-gradient(135deg, hsl(var(--h) 30% 14%), var(--surface) 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .category-hero { background: linear-gradient(135deg, hsl(var(--h) 30% 14%), var(--surface) 70%); } }
.category-hero .category-glyph { grid-row: span 3; width: 60px; height: 60px; font-size: 26px; border-radius: 16px; }
.category-hero .lead { grid-column: 2; }

/* Profil */
.profile > * + * { margin-top: 14px; }

/* Ayarlar */
.settings > * + * { margin-top: 16px; }
.settings-head { display: grid; gap: 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.settings-grid .panel + .panel { margin-top: 0; }
.avatar-field { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar-field .field { flex: 1 1 220px; }
.theme-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-picker legend { margin-bottom: 8px; }
.theme-option { display: grid; gap: 8px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; transition: border-color var(--t); }
.theme-option:has(input:checked) { border-color: var(--brand); box-shadow: var(--ring); }
.theme-option input { position: absolute; opacity: 0; }
.theme-option > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.theme-swatch { display: block; height: 48px; border-radius: 8px; border: 1px solid var(--line); }
.theme-swatch-light { background: linear-gradient(135deg, #ffffff 50%, #f2542d 50% 58%, #f5f5f2 58%); }
.theme-swatch-dark { background: linear-gradient(135deg, #16161b 50%, #ff6a42 50% 58%, #0d0d10 58%); }
.theme-swatch-system { background: linear-gradient(90deg, #ffffff 50%, #16161b 50%); }
.danger-zone { border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--line)); border-radius: var(--r); padding: 0 14px; }
.danger-zone > summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--bad); }
.danger-zone[open] { padding-bottom: 14px; }

/* Arama */
.search-form { display: flex; gap: 8px; }
.search-form input { height: 46px; font-size: 16px; border-radius: var(--pill) !important; padding: 0 20px !important; }
section.search > * + * { margin-top: 16px; }
section.search h1 { font-size: 24px; font-weight: 780; }
section.search h2 { font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 24px; }
.search-entries { display: grid; gap: 10px; }
.search-entries li > a, .search-entries li {
    min-width: 0;
}
.search-entries li > a { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.search-entries li > a:hover { border-color: var(--line-2); }

/* Bildirimler */
.notifications > * + * { margin-top: 16px; }
.notif-list { display: grid; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.notif { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif.is-unread { background: color-mix(in srgb, var(--brand-soft) 50%, var(--surface)); }
.notif-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--surface-3); color: var(--ink-2); }
.notif.is-unread .notif-icon { background: var(--brand); color: var(--on-brand); }
.notif-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.notif-text a { font-weight: 650; }
.notif-time { font-size: 12px; color: var(--muted); }

/* Mesajlar */
.messages > * + * { margin-top: 16px; }
.messages-head { display: grid; gap: 6px; }
.e2e-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ai); }
.inbox { display: grid; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; transition: background-color var(--t); }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.is-unread .inbox-main strong { color: var(--brand-ink); }
.inbox-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inbox-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-preview { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.inbox-meta { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12px; color: var(--muted); }
.chat { display: grid; gap: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.chat-peer { font-weight: 750; font-size: 16px; }
.chat-head .e2e-note { margin-left: auto; }
.chat-log { display: grid; gap: 6px; align-content: start; min-height: 320px; max-height: 60vh; overflow-y: auto; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.bubble-row { display: flex; }
.bubble-row.is-mine { justify-content: flex-end; }
.bubble { max-width: min(78%, 520px); padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time, .bubble small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.is-mine .bubble { border-radius: 16px 16px 5px 16px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.is-mine .bubble time, .is-mine .bubble small { color: inherit; opacity: .7; }
.bubble.is-failed { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 40px; max-height: 180px; padding: 9px 12px; border: 0; background: none; resize: none; outline: none; }
.composer-send { background: var(--brand); color: var(--on-brand); }
.composer-send:hover { background: var(--brand-ink); color: var(--on-brand); }
.vault { display: grid; gap: 12px; max-width: 420px; margin: 20px auto; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.vault h2 { font-size: 18px; }

/* Giriş / kayıt */
.auth {
    width: 100%; max-width: 440px; margin: 16px auto 0;
    padding: 30px; border-radius: var(--r-xl);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.auth > * + * { margin-top: 16px; }
.auth h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.auth .btn-primary { width: 100%; height: 44px; }
.auth-links { font-size: 14px; color: var(--muted); text-align: center; }
.auth-links a { color: var(--brand-ink); font-weight: 600; }

/* Statik sayfa / tek entry */
.page { padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); max-width: 780px; }
.page h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.page section + section { margin-top: 22px; }
.page h2 { font-size: 18px; margin-bottom: 8px; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 10px; }
.page ul { list-style: disc; padding-left: 20px; }
.entry-single > * + * { margin-top: 14px; }

/* Kurulum ekranı ortak parçaları */
.setup { max-width: 640px; margin: 40px auto; }
.setup-head { display: grid; gap: 8px; margin-bottom: 20px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.step { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: var(--surface-3); font-size: 13px; font-weight: 600; color: var(--muted); }
.step[aria-current] { background: var(--ink); color: var(--bg); }
.success-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--good-soft); color: var(--good); }
.cron { font-family: var(--mono); font-size: 12.5px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--code-bg); color: var(--code-ink); overflow-x: auto; white-space: pre; }
.code { font: 700 13px/1 var(--mono); letter-spacing: .12em; color: var(--brand); }

/* =========================================================================
   11. Widget'lar
   Kural: sabit satır yükseklikleri, tek satır + üç nokta, sayılar tabular;
   hover yalnızca renk değiştirir. Hiçbir widget içerik yüklenince boy değiştirmez.
   ========================================================================= */

.widget {
    position: relative; min-width: 0; overflow: hidden;
    padding: 16px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
    contain: layout paint;
}
.widget-head { display: flex; align-items: center; gap: 10px; height: 30px; margin-bottom: 12px; min-width: 0; }
.widget-head h2 { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 720; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.widget-icon .icon { width: 16px; height: 16px; }
.widget-live { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--good); }
.widget-refresh { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: var(--muted); transition: color var(--t), background-color var(--t); }
.widget-refresh:hover { background: var(--surface-3); color: var(--ink); }
.widget-refresh.is-spinning .icon { animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.widget .more-link { margin-top: 10px; font-size: 13px; }
.widget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }

/* istatistik */
.widget-stats .widget-icon { background: var(--good-soft); color: var(--good); }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-tile { min-width: 0; padding: 10px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); display: grid; }
.stat-tile dt { order: 2; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tile dd { order: 1; font: 780 18px/1.25 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tile-hero {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px;
    padding: 14px; background: var(--ink); border-color: var(--ink); color: var(--bg);
}
.stat-tile-hero dt { order: 0; grid-column: 1 / -1; color: color-mix(in srgb, var(--bg) 65%, transparent); }
.stat-tile-hero dd { font-size: 30px; line-height: 1.15; }
.stat-unit { order: 2; font-size: 13px; color: color-mix(in srgb, var(--bg) 65%, transparent); }

/* yükselenler */
.widget-rising .widget-icon { background: var(--brand-soft); color: var(--brand); }
.rising-list { display: grid; counter-reset: none; }
.rising-list a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px; margin: 0 -8px; border-radius: var(--r-sm); font-size: 14px; transition: background-color var(--t); }
.rising-list a:hover { background: var(--surface-2); }
.rising-rank { width: 22px; flex: none; text-align: center; font: 800 13px/1 var(--font-display); color: var(--faint); font-variant-numeric: tabular-nums; }
.rising-list li:first-child .rising-rank { color: var(--brand); }
.rising-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rising-badge { display: inline-flex; align-items: center; gap: 2px; flex: none; height: 22px; min-width: 52px; justify-content: center; padding: 0 7px; border-radius: var(--pill); background: var(--good-soft); color: var(--good); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rising-badge.is-new { background: var(--brand-soft); color: var(--brand-ink); }

/* günün yazarları */
.widget-writers .widget-icon { background: color-mix(in srgb, #e0a100 16%, var(--surface)); color: #c28a00; }
.writer-list { display: grid; gap: 2px; }
.writer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; height: 52px; padding: 0 8px; margin: 0 -8px; border-radius: var(--r-sm); transition: background-color var(--t); }
.writer:hover { background: var(--surface-2); }
.writer-ring { grid-row: span 2; display: grid; place-items: center; }
.writer.is-top .writer-ring .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #e0a100; }
.writer-name { align-self: end; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.writer-meta { align-self: start; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.writer-rank { grid-column: 3; grid-row: 1 / span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); font: 800 11px/1 var(--font-display); color: var(--muted); }
.writer.is-top .writer-rank { background: #e0a100; color: #fff; }

/* rastgele entry */
.widget-random { background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); }
.widget-random .widget-icon { background: var(--prompt-soft); color: var(--prompt); }
.random-quote { position: relative; height: 118px; overflow: hidden; padding-left: 14px; border-left: 3px solid var(--prompt); transition: opacity .2s var(--ease); }
.random-quote p { font-size: 14.5px; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.random-quote.is-loading { opacity: .3; }
.random-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; margin-top: 10px; font-size: 13px; min-width: 0; }
.random-topic { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.random-topic:hover { color: var(--brand-ink); }
.random-meta > span { display: inline-flex; align-items: center; gap: 8px; flex: none; max-width: 50%; color: var(--muted); }
.random-meta > span > a:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.random-link { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: var(--bg); }

/* kategoriler */
.widget-categories .widget-icon { background: color-mix(in srgb, #2f7de1 14%, var(--surface)); color: #2f7de1; }
.category-cloud { display: flex; flex-wrap: wrap; gap: 6px; max-height: 128px; overflow: hidden; }

/* son entry'ler */
.widget-latest .widget-icon { background: var(--ai-soft); color: var(--ai); }
.timeline { display: grid; }
.timeline li { position: relative; padding-left: 18px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: -10px; width: 1.5px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ai); }
.timeline a { display: grid; gap: 1px; height: 70px; padding: 1px 0 10px; min-width: 0; }
.timeline strong { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline a:hover strong { color: var(--ai); }
.timeline-text { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-meta { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* yeni promptlar */
.widget-prompts { background: var(--code-bg); border-color: var(--code-line); color: var(--code-ink); }
.widget-prompts .widget-icon { background: color-mix(in srgb, #8f86ff 22%, transparent); color: #b8b1ff; }
.widget-prompts .widget-head h2 { color: var(--code-ink); }
.prompt-mini-list { display: grid; gap: 8px; }
.prompt-mini { display: grid; gap: 4px; height: 84px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); border: 1px solid var(--code-line); min-width: 0; transition: border-color var(--t), background-color var(--t); }
.prompt-mini:hover { border-color: color-mix(in srgb, #8f86ff 55%, transparent); background: rgba(255, 255, 255, .06); }
.prompt-mini-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-mini-code { font: 12px/1.45 var(--mono); color: var(--code-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-mini-meta { font-size: 11.5px; color: #b8b1ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-prompts .more-link { color: #b8b1ff; }

/* gündem özeti */
.widget-digest { background: linear-gradient(180deg, var(--ai-soft), var(--surface) 75%); border-color: color-mix(in srgb, var(--ai) 22%, var(--line)); }
.widget-digest .widget-icon { background: var(--ai); color: #fff; }
.digest-text { font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.digest-theme { display: grid; gap: 1px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.digest-theme strong { font-size: 12.5px; color: var(--ai); }
.digest-theme a { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.digest-theme a:hover { color: var(--ink); }

/* duyuru */
.widget-announce { color: #fff; border: 0; background: var(--brand); isolation: isolate; }
.widget-announce.announce-ai { background: linear-gradient(140deg, #0f8f83, #0b6d64); }
.widget-announce.announce-ink { background: var(--ink); color: var(--bg); }
.widget-announce .widget-icon { background: rgba(255, 255, 255, .18); color: inherit; }
.widget-announce .widget-head h2 { color: inherit; }
.announce-orb { position: absolute; z-index: -1; right: -50px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent); }
.announce-text { font-size: 14.5px; line-height: 1.55; opacity: .95; }
.announce-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 34px; padding: 0 14px; border-radius: var(--pill); background: rgba(255, 255, 255, .95); color: #16161b; font-size: 13px; font-weight: 700; }
.announce-ink .announce-cta { background: var(--brand); color: #fff; }

/* özel html */
.widget-html-body { font-size: 14px; overflow-wrap: anywhere; }
.widget-html-body img, .widget-html-body iframe { max-width: 100%; }

/* =========================================================================
   12. Yönetim
   ========================================================================= */

.admin > * + * { margin-top: 16px; }
.admin-head { display: grid; gap: 12px; }
.admin-tabs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px;
    padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.admin-tabs a {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    height: 40px; padding: 0 12px; border-radius: var(--r-sm);
    font-size: 13.5px; font-weight: 600; color: var(--ink-2);
    transition: background-color var(--t), color var(--t);
}
.admin-tabs a .icon { color: var(--muted); transition: color var(--t); }
.admin-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.admin-tabs a[aria-current] { background: var(--ink); color: var(--bg); }
.admin-tabs a[aria-current] .icon { color: var(--brand); }
.admin-tabs a .count-pill { margin-left: auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 0; }
a.kpi:hover { border-color: var(--line-2); }
.kpi strong, .kpi dd, .kpi b { font: 800 26px/1.15 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi span, .kpi dt { font-size: 12.5px; color: var(--muted); }
.kpi-ai { background: var(--ai-soft); border-color: color-mix(in srgb, var(--ai) 25%, var(--line)); }
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--stack-h) + 20px); display: grid; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.settings-nav a:hover { background: var(--surface); }
.settings-groups { display: grid; gap: 16px; }
.settings-group { scroll-margin-top: calc(var(--stack-h) + 20px); }
.cat-form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cat-form-head > div { min-width: 0; flex: 1; }
.decision { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.is-off { opacity: .65; }
.hue-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.hue-swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; background: hsl(var(--h) 70% 55%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.hue-swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hue-swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px hsl(var(--h) 70% 55%); }
.review, .report-row, .held { display: grid; gap: 12px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-report { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--ai-soft); font-size: 14px; }
.ai-verdict { font-size: 14px; color: var(--ai); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13.5px; }
.pro { color: var(--good); } .pro::before { content: "+ "; font-weight: 700; }
.con { color: var(--bad); } .con::before { content: "\2212 "; font-weight: 700; }
.samples > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.sample { margin-top: 8px; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.report-notes { font-size: 13.5px; color: var(--ink-2); }
.held { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.score-ring {
    --level: 0;
    position: relative; display: grid; place-items: center; align-content: center; flex: none;
    width: 52px; height: 52px; border-radius: 50%;
    background: conic-gradient(var(--ai) calc(var(--level) * 10%), var(--line) 0);
}
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-ring > * { position: relative; }
.score-ring strong { font-size: 15px; line-height: 1; }
.score-ring span { font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.score-ring[data-level="1"] { --level: 1; } .score-ring[data-level="2"] { --level: 2; } .score-ring[data-level="3"] { --level: 3; }
.score-ring[data-level="4"] { --level: 4; } .score-ring[data-level="5"] { --level: 5; } .score-ring[data-level="6"] { --level: 6; }
.score-ring[data-level="7"] { --level: 7; } .score-ring[data-level="8"] { --level: 8; } .score-ring[data-level="9"] { --level: 9; }
.score-ring[data-level="10"] { --level: 10; }
.log-list { display: grid; font-size: 13.5px; }
.log-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ban-form { display: grid; gap: 12px; }

/* =========================================================================
   13. Hareket (yerleşim değiştirmeyen, azaltılmış hareket tercihine saygılı)
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
    .live-dot::after { animation: live 2s var(--ease) infinite; }
    @keyframes live { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
    .pulse-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .15s var(--ease) forwards; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html.theme-transition::view-transition-old(root), html.theme-transition::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-transition::view-transition-new(root) { z-index: 1; }

/* =========================================================================
   14. Duyarlı düzen
   ========================================================================= */

@media (max-width: 1280px) {
    :root { --frame-w: 248px; --rail-w: 292px; --gap: 20px; }
}

@media (max-width: 1140px) {
    .has-rail .shell { grid-template-columns: var(--frame-w) minmax(0, 1fr); }
    .right-rail { grid-column: 2; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; margin-top: 8px; }
}

@media (max-width: 900px) {
    :root { --header-h: 58px; }
    .site-header { gap: 8px; padding: 0 12px; }
    .site-header .menu-toggle { display: inline-grid; }
    .brand-word { display: none; }
    .search { margin-left: 4px; }
    .search-kbd { display: none; }
    .search-input { padding-right: 14px; }
    .hide-sm { display: none !important; }
    .shell, .has-rail .shell { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 96px; gap: 16px; }
    .right-rail { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
    .sol-frame {
        position: fixed; z-index: 50; top: 0; bottom: 0; left: 0;
        width: min(86vw, 320px); max-height: none;
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
        background: var(--bg); border-right: 1px solid var(--line); box-shadow: var(--shadow-3);
        transform: translateX(-104%); visibility: hidden;
        transition: transform .28s var(--ease), visibility 0s .28s;
    }
    .frame-open .sol-frame { transform: none; visibility: visible; transition: transform .28s var(--ease); }
    .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(10, 10, 14, .4); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
    .frame-open .scrim { opacity: 1; pointer-events: auto; }
    .frame-open { overflow: hidden; }

    .bottom-nav {
        position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
        height: calc(62px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--surface) 90%, transparent);
        backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
        border-top: 1px solid var(--line);
    }
    .bottom-nav > a, .bottom-nav > button { position: relative; display: grid; justify-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
    .bottom-nav .icon { width: 21px; height: 21px; }
    .bottom-nav [aria-current="page"] { color: var(--brand); }
    .bottom-nav .badge { top: -4px; right: calc(50% - 18px); }
    .bottom-write > span { display: grid; place-items: center; width: 44px; height: 32px; border-radius: 12px; background: var(--brand); color: var(--on-brand); }
    .bottom-write { color: var(--ink) !important; }
    .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
    .toast-region { bottom: calc(80px + env(safe-area-inset-bottom)); }
    .fab { display: none; }

    .settings-layout { grid-template-columns: minmax(0, 1fr); }
    .settings-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
    .settings-nav a { flex: none; }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .hero { padding: 22px 18px; border-radius: var(--r-lg); }
    .stat-strip { gap: 8px; }
    .stat-strip > div { padding: 10px; }
    .stat-strip dd { font-size: 20px; }
    .entry { padding: 16px 16px 10px; border-radius: var(--r); }
    .entry-body { font-size: 15px; }
    .entry-head { flex-wrap: wrap; row-gap: 8px; }
    .entry-sign { flex: 1 1 58%; }
    .entry-flags { flex-wrap: wrap; }
    .card-rank .entry-rail { margin-top: 14px; }
    .card-rank .entry { padding-top: 54px; }
    .card-rank::before { left: 16px; top: 16px; width: 28px; height: 28px; }
    .topic-header, .page-hero, .category-hero, .entry-form, .auth, .page { padding-left: 16px; padding-right: 16px; }
    .compose-row, .grid-form, .grid-2, .prompt-panel-row, .pros-cons { grid-template-columns: minmax(0, 1fr); }
    .theme-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .code-block pre { font-size: 12.5px; padding: 12px; }
    .code-copy { width: 38px; }
    .code-copy span { display: none; }
    .toolbar-group { flex-wrap: wrap; }
    .palette { margin-top: 6vh; }
    .palette-item small { display: none; }
}


/* =========================================================================
   15. Yazar bilgi kutusu
   ========================================================================= */

.user-card {
    position: fixed; z-index: 70; width: 320px; overflow: hidden;
    border-radius: 20px; background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 60px -18px rgba(15, 15, 30, .35);
    opacity: 0; transform: translateY(6px) scale(.98); transform-origin: top left;
    transition: opacity .16s var(--ease), transform .2s var(--ease);
    pointer-events: auto;
}
.user-card.is-above { transform-origin: bottom left; transform: translateY(-6px) scale(.98); }
.user-card.is-open { opacity: 1; transform: none; }
.user-card-cover {
    position: relative; height: 84px;
    background:
        radial-gradient(circle at 15% 120%, hsl(var(--h) 85% 62% / .7), transparent 60%),
        radial-gradient(circle at 90% -30%, hsl(calc(var(--h) + 60) 85% 64% / .65), transparent 60%),
        linear-gradient(120deg, hsl(var(--h) 70% 90%), hsl(calc(var(--h) + 40) 70% 92%));
}
.user-card-cover::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .45) 1px, transparent 1px); background-size: 14px 14px;
    mask-image: linear-gradient(100deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000);
}
:root[data-theme="dark"] .user-card-cover:not([class*="cover-"]) { background: radial-gradient(circle at 15% 120%, hsl(var(--h) 70% 45% / .7), transparent 60%), radial-gradient(circle at 90% -30%, hsl(calc(var(--h) + 60) 70% 50% / .6), transparent 60%), linear-gradient(120deg, hsl(var(--h) 30% 16%), hsl(calc(var(--h) + 40) 30% 12%)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .user-card-cover:not([class*="cover-"]) { background: radial-gradient(circle at 15% 120%, hsl(var(--h) 70% 45% / .7), transparent 60%), radial-gradient(circle at 90% -30%, hsl(calc(var(--h) + 60) 70% 50% / .6), transparent 60%), linear-gradient(120deg, hsl(var(--h) 30% 16%), hsl(calc(var(--h) + 40) 30% 12%)); } }
.user-card-top { position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px; margin-top: -34px; }
.user-card-top .avatar { width: 68px; height: 68px; font-size: 23px; box-shadow: 0 0 0 4px var(--surface), var(--shadow-2); }
.user-card-top .user-card-go { margin-bottom: 4px; }
.user-card-id { display: grid; gap: 6px; padding: 10px 16px 0; min-width: 0; }
.user-card-name { font: 820 19px/1.15 var(--font-display); letter-spacing: -.03em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card-name:hover { color: var(--brand-ink); }
.user-card-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.user-card-handle { font: 600 12px/1 var(--mono); color: var(--muted); }
.user-card-bio { padding: 10px 16px 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.user-card-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 16px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.user-card-stats > div { display: grid; gap: 1px; text-align: center; min-width: 0; }
.user-card-stats > div + div { border-left: 1px solid var(--line); }
.user-card-stats dd { font: 800 16px/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.user-card-stats dt { font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.user-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 14px; font-size: 12px; color: var(--muted); }
.user-card-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card-go { flex: none; height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 700; transition: background-color var(--t); }
.user-card-go:hover { background: var(--brand); color: var(--on-brand); }

/* =========================================================================
   16. Dekorasyon
   ========================================================================= */

body::before {
    content: ""; position: fixed; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 300px at 12% -60px, color-mix(in srgb, var(--brand) 11%, transparent), transparent 70%),
        radial-gradient(520px 280px at 88% -40px, color-mix(in srgb, var(--prompt) 10%, transparent), transparent 70%);
}
.site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 55%, transparent) 30%, color-mix(in srgb, var(--prompt) 50%, transparent) 70%, transparent);
    opacity: .6;
}
.section-title::after { content: ""; flex: 1; align-self: center; height: 1px; margin-left: 6px; background: linear-gradient(90deg, var(--line-2), transparent); }
.hero-title em {
    background: linear-gradient(100deg, var(--brand) 20%, #ff9a3d 50%, var(--prompt) 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.hero .eyebrow { padding: 5px 10px 5px 8px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--line); letter-spacing: .06em; }
.stat-strip > div { position: relative; overflow: hidden; }
.stat-strip > div::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, var(--brand), transparent); opacity: .5; }
.widget::after {
    content: ""; position: absolute; inset: 0 0 auto; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 45%, transparent), transparent);
    opacity: 0; transition: opacity .3s var(--ease);
}
.widget:hover::after { opacity: 1; }
.widget-prompts::after, .widget-announce::after { display: none; }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-120%);
}
.card-rank[data-rank="1"]::before { background: linear-gradient(135deg, var(--brand), #ff9a3d); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.card-rank[data-rank="1"] .entry { border-color: var(--brand-line); }
.page-hero-icon, .widget-icon, .category-glyph { position: relative; }
.topic-header { position: relative; overflow: hidden; isolation: isolate; }
.topic-header::before {
    content: ""; position: absolute; z-index: -1; right: -80px; top: -120px; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 10%, transparent), transparent);
}

/* =========================================================================
   17. Animasyon (yalnızca transform/opaklık; yerleşim kaymaz)
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.is-in) { opacity: 0; }
    .reveal.is-in { animation: reveal-in .55s var(--ease) var(--d, 0ms) both; }
    @keyframes reveal-in { from { opacity: 0; transform: translateY(14px); } }

    .hero-title em { animation: shimmer 6s ease-in-out infinite alternate; }
    @keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

    .hero::before { animation: float-a 14s ease-in-out infinite alternate; }
    .topic-header::before { animation: float-a 16s ease-in-out infinite alternate; }
    body::before { animation: glow 12s ease-in-out infinite alternate; }
    @keyframes float-a { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }
    @keyframes glow { from { opacity: .75; } to { opacity: 1; } }

    .brand-mark::after { animation: dot 2.6s var(--ease) infinite; }
    @keyframes dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
    .brand:hover .brand-mark { animation: wiggle .5s var(--ease); }
    @keyframes wiggle { 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }

    .btn-primary:hover::after { animation: sheen .8s var(--ease); }
    @keyframes sheen { to { transform: translateX(120%); } }

    .widget:hover .widget-icon .icon, .frame-link:hover .icon, .admin-tabs a:hover .icon { animation: nudge .45s var(--ease); }
    @keyframes nudge { 40% { transform: translateY(-2px) rotate(-6deg); } }

    .topic-list a .topic-title { transition: color var(--t); }
    .entry-sign:hover .avatar { animation: pop .4s var(--ease); }
    .code-copy.is-done .icon { animation: pop .35s var(--ease); }
    .stat-tile-hero dd { animation: reveal-in .6s var(--ease) both; }
}

/* =========================================================================
   18. Gömülü içerik ve bağlantı kartı (sabit oranlar: yüklenirken kayma olmaz)
   ========================================================================= */

.embed {
    margin-top: 1em; max-width: 100%;
    border-radius: var(--r-lg); overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--line);
}
.embed iframe { display: block; width: 100%; border: 0; background: var(--surface-3); }
.embed-video iframe { aspect-ratio: 16 / 9; height: auto; }
.embed-dikey { max-width: 340px; }
.embed-dikey iframe { aspect-ratio: 9 / 16; height: auto; max-height: 720px; }
.embed-tiktok iframe { aspect-ratio: auto; height: 740px; }
.embed-gonderi { max-width: 550px; }
.embed-gonderi iframe { height: 520px; }
.embed-x iframe { height: 420px; }
.embed-ses iframe { height: 352px; }
.embed-ses-kisa iframe { height: 152px; }
.embed-soundcloud iframe { height: 166px; }
.embed-kod iframe { height: 420px; }
.embed figcaption {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    height: 38px; padding: 0 12px; border-top: 1px solid var(--line);
    font-size: 12.5px; color: var(--muted);
}
.embed figcaption a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.embed figcaption a:hover { color: var(--brand-ink); }
.embed-provider { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink-2); }
.embed-provider::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--prov, var(--brand)); }
.embed-youtube { --prov: #ff0033; } .embed-x { --prov: #111; } .embed-instagram { --prov: #e1306c; }
.embed-facebook { --prov: #1877f2; } .embed-tiktok { --prov: #25f4ee; } .embed-spotify { --prov: #1db954; }
.embed-soundcloud { --prov: #ff5500; } .embed-reddit { --prov: #ff4500; } .embed-twitch { --prov: #9146ff; }
.embed-vimeo { --prov: #1ab7ea; } .embed-dailymotion { --prov: #0066dc; } .embed-codepen { --prov: #47cf73; }
:root[data-theme="dark"] .embed-x { --prov: #e7e9ea; }

.entry-body .link-card {
    display: flex; align-items: center; gap: 12px; max-width: 560px; min-width: 0;
    height: 64px; padding: 0 14px; border-radius: var(--r);
    background: var(--surface-2); border: 1px solid var(--line);
    text-decoration: none; color: var(--ink);
    transition: border-color var(--t), background-color var(--t);
}
.entry-body .link-card:hover { border-color: var(--brand-line); background: var(--surface); }
.link-card-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--ink); color: var(--bg); font: 800 15px/1 var(--font-display); }
.link-card-text { display: grid; min-width: 0; flex: 1; }
.link-card-host { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card-path { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card-go { flex: none; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--pill); background: var(--surface-3); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.link-card:hover .link-card-go { background: var(--brand); color: var(--on-brand); }

/* =========================================================================
   19. Yapay zekâ çıktısı, anket, kod renkleri
   ========================================================================= */

.code-output { background: var(--surface); border-color: color-mix(in srgb, var(--ai) 30%, var(--line)); color: var(--ink); }
.code-output figcaption { background: var(--ai-soft); border-bottom-color: color-mix(in srgb, var(--ai) 25%, var(--line)); }
.code-output .code-kind { background: var(--ai); color: #fff; }
.code-output .code-title { color: var(--ai); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.code-output pre { font: 14.5px/1.7 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; scrollbar-color: var(--line-2) transparent; }
.code-output .code-copy { background: color-mix(in srgb, var(--ai) 12%, transparent); color: var(--ai); }
.code-output .code-copy:hover { background: color-mix(in srgb, var(--ai) 20%, transparent); }

.tok-com { color: #7f8aa3; font-style: italic; }
.tok-str { color: #a5e28b; }
.tok-num { color: #f7b267; }
.tok-key { color: #c792ea; }
.tok-fn { color: #82aaff; }
.tok-var { color: #ffcb6b; }

.poll {
    position: relative; margin-top: 1em; padding: 14px 14px 40px;
    border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line);
}
.poll figcaption { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.poll-kind { flex: none; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: var(--pill); background: var(--prompt); color: #fff; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.poll-q { font-weight: 700; font-size: 15px; line-height: 1.4; }
.poll ol { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.poll ol > li { position: relative; height: 44px; margin: 0; }
.poll ol > li > .poll-label { display: flex; align-items: center; height: 100%; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-choice {
    --p: 0%;
    position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 100%;
    padding: 0 14px; border-radius: var(--r-sm); overflow: hidden; text-align: left;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink);
    transition: border-color var(--t);
}
button.poll-choice:hover { border-color: var(--prompt); }
.poll-bar { position: absolute; inset: 0 auto 0 0; width: var(--p); background: color-mix(in srgb, var(--prompt) 14%, transparent); transition: width .6s var(--ease); pointer-events: none; }
.poll-choice .poll-label { position: relative; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-pct { position: relative; flex: none; min-width: 40px; text-align: right; font-size: 13px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.poll ol > li.is-mine .poll-choice { border-color: var(--prompt); }
.poll ol > li.is-mine .poll-bar { background: color-mix(in srgb, var(--prompt) 26%, transparent); }
.poll ol > li.is-mine .poll-pct { color: var(--prompt); }
.poll-foot { position: absolute; left: 14px; right: 14px; bottom: 12px; margin: 0 !important; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag-assisted { background: color-mix(in srgb, #2f7de1 12%, var(--surface)); color: #2f7de1; }
.editor-extras { display: grid; gap: 6px; }
.ai-flag { font-size: 13.5px; align-items: flex-start; }
.ai-flag input { margin-top: 3px; }
.editor-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }

.model-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.model-filter a {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
    border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line);
    font: 600 12.5px/1 var(--mono); color: var(--ink-2);
    transition: border-color var(--t), color var(--t), background-color var(--t);
}
.model-filter a span { font-family: var(--font); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.model-filter a:hover { border-color: var(--prompt); color: var(--prompt); }
.model-filter a[aria-current] { background: var(--prompt); border-color: var(--prompt); color: #fff; }
.model-filter a[aria-current] span { color: rgba(255, 255, 255, .75); }


/* =========================================================================
   20. Ödüller: rütbe, rozet, kişiselleştirme
   ========================================================================= */

.cover-gun-batimi { --cover: linear-gradient(120deg, #ff9a5a, #ff5e62 45%, #b44bd8); }
.cover-okyanus { --cover: linear-gradient(120deg, #1fa2ff, #12d8fa 50%, #a6ffcb); }
.cover-orman { --cover: linear-gradient(120deg, #134e3a, #2f8f5b 50%, #b6e388); }
.cover-gece { --cover: radial-gradient(circle at 80% 20%, #6d5dfc 0, transparent 45%), linear-gradient(120deg, #0f1026, #23234a); }
.cover-aurora { --cover: radial-gradient(circle at 20% 110%, #3cffa8 0, transparent 50%), radial-gradient(circle at 80% -10%, #b58cff 0, transparent 55%), linear-gradient(120deg, #0d1b2a, #1b263b); }
.cover-terminal { --cover: repeating-linear-gradient(0deg, rgba(60, 255, 150, .07) 0 2px, transparent 2px 5px), linear-gradient(120deg, #07130c, #0f2a1a); }
.cover-altin { --cover: linear-gradient(120deg, #7a5200, #e0a100 35%, #fff0b3 55%, #c98a00 75%, #6b4600); }
.cover-sade { --cover: linear-gradient(120deg, var(--brand-soft), var(--prompt-soft)); }
.user-card-cover[class*="cover-"] { background: var(--cover); }

/* avatar çerçeveleri */
.frame-ince .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand) !important; }
.frame-cift .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--prompt), 0 0 0 6px var(--surface), 0 0 0 8px var(--brand) !important; }
.frame-isik .avatar, .frame-altin .avatar { position: relative; }
.frame-isik .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px transparent, 0 0 14px 2px color-mix(in srgb, var(--prompt) 55%, transparent) !important; outline: 2.5px solid transparent; background-clip: padding-box; }
.frame-isik .avatar { outline: 3px solid var(--prompt); outline-offset: 2px; }
.frame-altin .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px #e0a100, 0 0 16px 2px rgba(224, 161, 0, .45) !important; }

/* isim rengi */
.has-hue[data-hue] { color: hsl(var(--h) 70% 42%) !important; }
:root[data-theme="dark"] .has-hue[data-hue] { color: hsl(var(--h) 85% 70%) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .has-hue[data-hue] { color: hsl(var(--h) 85% 70%) !important; } }

/* rozet çipi */
.badge-chip {
    --bc: #b0703c; --bb: color-mix(in srgb, var(--bc) 14%, var(--surface));
    display: inline-flex; align-items: center; gap: 5px; flex: none;
    height: 24px; padding: 0 9px 0 7px; border-radius: var(--pill);
    background: var(--bb); color: var(--bc); border: 1px solid color-mix(in srgb, var(--bc) 30%, transparent);
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.badge-chip .icon { width: 13px; height: 13px; }
.badge-chip-xs { width: 22px; height: 22px; padding: 0; justify-content: center; }
.badge-bronz { --bc: #b0703c; }
.badge-gumus { --bc: #6f7f95; }
.badge-altin { --bc: #c28a00; }
.badge-ozel { --bc: var(--prompt); }
:root[data-theme="dark"] .badge-bronz { --bc: #e0a37a; } :root[data-theme="dark"] .badge-gumus { --bc: #b9c6d8; } :root[data-theme="dark"] .badge-altin { --bc: #f4c542; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .badge-bronz { --bc: #e0a37a; }
    :root:not([data-theme="light"]) .badge-gumus { --bc: #b9c6d8; }
    :root:not([data-theme="light"]) .badge-altin { --bc: #f4c542; }
}

/* rütbe */
.rank-chip {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--pill);
    background: hsl(var(--h) 75% 93%); color: hsl(var(--h) 55% 34%);
    font-size: 12px; font-weight: 750; white-space: nowrap;
}
:root[data-theme="dark"] .rank-chip { background: hsl(var(--h) 35% 18%); color: hsl(var(--h) 80% 76%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rank-chip { background: hsl(var(--h) 35% 18%); color: hsl(var(--h) 80% 76%); } }
.rank-level {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
    background: linear-gradient(135deg, hsl(var(--h, 7) 75% 55%), hsl(calc(var(--h, 7) + 30) 80% 60%));
    color: #fff; font: 800 17px/1 var(--font-display); font-variant-numeric: tabular-nums;
    box-shadow: 0 6px 14px -6px hsl(var(--h, 7) 70% 45%);
}
.rank-box { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.rank-box-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-box-head > div { display: grid; min-width: 0; }
.rank-box-head strong { font-size: 16px; font-weight: 780; }
.rank-box-head .hint a { color: var(--brand-ink); font-weight: 600; }
progress.rank-progress, progress.pf-meter {
    -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: var(--pill);
    background: var(--surface-3); overflow: hidden; color: var(--brand);
}
progress.rank-progress::-webkit-progress-bar, progress.pf-meter::-webkit-progress-bar { background: var(--surface-3); border-radius: var(--pill); }
progress.rank-progress::-webkit-progress-value { background: linear-gradient(90deg, hsl(var(--h) 75% 55%), var(--brand)); border-radius: var(--pill); transition: width .6s var(--ease); }
progress.rank-progress::-moz-progress-bar { background: linear-gradient(90deg, hsl(var(--h) 75% 55%), var(--brand)); border-radius: var(--pill); }

.profile-rewards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; margin-top: 16px; position: relative; z-index: 1; }
.badge-shelf { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.badge-shelf-head { display: flex; align-items: baseline; gap: 8px; }
.badge-shelf-head .more-link { margin: 0 0 0 auto; font-size: 12.5px; }
.badge-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 58px; overflow: hidden; }

/* görünüm ayarları */
.look-panel { grid-column: 1 / -1; display: grid; gap: 16px; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.look-option { position: relative; display: grid; gap: 8px; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t), box-shadow var(--t); }
.look-option input { position: absolute; opacity: 0; }
.look-option:has(input:checked) { border-color: var(--brand); box-shadow: var(--ring); }
.look-option.is-locked { cursor: not-allowed; opacity: .55; }
.look-option.is-locked .cover-swatch, .look-option.is-locked .frame-demo { filter: grayscale(.8); }
.look-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.cover-swatch { display: block; height: 46px; border-radius: 8px; background: var(--cover); border: 1px solid var(--line); }
.frame-demo { display: grid; place-items: center; height: 56px; }
.hue-none { background: var(--surface-3) !important; box-shadow: inset 0 0 0 2px var(--line-2) !important; }
.hue-swatch:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.badge-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.badge-pick-item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.badge-pick-item input { accent-color: var(--brand); }
.settings-grid .look-panel { margin-top: 0; }

/* prompt geri bildirimi */
.prompt-feedback {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    margin-top: 14px; padding: 10px 12px; border-radius: var(--r);
    background: color-mix(in srgb, var(--prompt-soft) 60%, var(--surface)); border: 1px solid color-mix(in srgb, var(--prompt) 22%, var(--line));
}
.pf-q { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--prompt); }
.pf-actions { display: inline-flex; gap: 6px; }
.pf-btn {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: var(--pill);
    background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--ink-2);
    transition: border-color var(--t), background-color var(--t), color var(--t);
}
.pf-btn b { font-variant-numeric: tabular-nums; min-width: 1ch; }
button.pf-btn:hover { border-color: var(--line-2); color: var(--ink); }
.pf-yes[aria-pressed="true"] { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.pf-no[aria-pressed="true"] { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.pf-rate { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.pf-rate b { min-width: 36px; text-align: right; color: var(--good); font-variant-numeric: tabular-nums; }
.is-empty .pf-rate b { color: var(--muted); }
progress.pf-meter { width: 90px; height: 6px; }
progress.pf-meter::-webkit-progress-value { background: var(--good); border-radius: var(--pill); }
progress.pf-meter::-moz-progress-bar { background: var(--good); border-radius: var(--pill); }

/* promptlar sıralama çubuğu */
.prompts-bar { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.prompts-bar .section-title { flex: 1; margin: 0; }

/* bilgi kutusu ekleri */
.user-card-badges { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px 16px 0; }
.user-card-badges .badge-chip { height: 22px; font-size: 11px; padding: 0 8px; }
.user-card-more { font-size: 11.5px; font-weight: 700; color: var(--muted); align-self: center; }
.user-card-line .rank-chip, .user-card-line .tag { height: 21px; font-size: 11px; }

/* rozetler sayfası */
.rewards-page > * + * { margin-top: 14px; }
.page-hero-rewards { background: linear-gradient(135deg, color-mix(in srgb, #e0a100 14%, var(--surface)), var(--surface) 65%); }
.page-hero-rewards .page-hero-icon { background: linear-gradient(135deg, #e0a100, #ff8a3d); color: #fff; }
.rank-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rank-step { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.rank-step-text { display: grid; min-width: 0; flex: 1; }
.rank-step-text strong { font-size: 15px; }
.rank-step-text .hint { font-size: 12px; }
.rank-step.is-done { opacity: .7; }
.rank-step.is-current { border-color: hsl(var(--h) 70% 60%); box-shadow: 0 0 0 3px hsl(var(--h) 80% 60% / .18); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.badge-card { --bc: #b0703c; position: relative; display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.badge-card > div { min-width: 0; display: grid; gap: 2px; }
.badge-card strong { font-size: 14.5px; }
.badge-card p { font-size: 13px; color: var(--ink-2); }
.badge-card-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--surface-3); color: var(--faint); }
.badge-card.is-earned .badge-card-icon { background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 85%, #fff), var(--bc)); color: #fff; box-shadow: 0 6px 16px -8px var(--bc); }
.badge-card:not(.is-earned) { background: var(--surface-2); }
.badge-card-check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: #fff; }
.award-feed { display: grid; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.award-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-width: 0; }
.award-feed li + li { border-top: 1px solid var(--line); }
.award-feed-user { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-weight: 650; }
.award-feed-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-feed time { flex: none; font-size: 12px; }

/* yeni rozetler widget'ı */
.widget-badges .widget-icon { background: color-mix(in srgb, #e0a100 16%, var(--surface)); color: #c28a00; }
.award-mini { display: grid; gap: 2px; }
.award-mini-row { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px; margin: 0 -8px; border-radius: var(--r-sm); min-width: 0; transition: background-color var(--t); }
.award-mini-row:hover { background: var(--surface-2); }
.award-mini-icon { --bc: #b0703c; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 80%, #fff), var(--bc)); color: #fff; }
.award-mini-text { display: grid; min-width: 0; }
.award-mini-text strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-mini-text span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
    .frame-isik .avatar { animation: halo 3s ease-in-out infinite alternate; }
    @keyframes halo { from { outline-color: var(--prompt); } to { outline-color: var(--brand); } }
    .badge-card.is-earned:hover .badge-card-icon, .award-mini-row:hover .award-mini-icon { animation: pop .45s var(--ease); }
    .profile-cover.cover-altin, .profile-cover.cover-aurora { background-size: 200% 200%; animation: cover-move 10s ease-in-out infinite alternate; }
    @keyframes cover-move { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
}

@media (max-width: 640px) {
    .profile-rewards { grid-template-columns: minmax(0, 1fr); }
    .pf-rate { margin-left: 0; }
    .prompts-bar { flex-wrap: wrap; }
}


/* =========================================================================
   21. Profil kimlik kartı
   ========================================================================= */

.profile-hero { position: relative; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.profile-cover {
    --cover: radial-gradient(circle at 12% 110%, hsl(var(--h) 85% 62% / .75), transparent 55%),
             radial-gradient(circle at 88% -20%, hsl(calc(var(--h) + 60) 85% 64% / .7), transparent 55%),
             linear-gradient(120deg, hsl(var(--h) 70% 90%), hsl(calc(var(--h) + 40) 70% 92%));
    position: relative; height: 188px; overflow: hidden; background: var(--cover);
}
:root[data-theme="dark"] .profile-cover:not([class*="cover-"]) { --cover: radial-gradient(circle at 12% 110%, hsl(var(--h) 70% 45% / .7), transparent 55%), radial-gradient(circle at 88% -20%, hsl(calc(var(--h) + 60) 70% 50% / .6), transparent 55%), linear-gradient(120deg, hsl(var(--h) 30% 16%), hsl(calc(var(--h) + 40) 30% 12%)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .profile-cover:not([class*="cover-"]) { --cover: radial-gradient(circle at 12% 110%, hsl(var(--h) 70% 45% / .7), transparent 55%), radial-gradient(circle at 88% -20%, hsl(calc(var(--h) + 60) 70% 50% / .6), transparent 55%), linear-gradient(120deg, hsl(var(--h) 30% 16%), hsl(calc(var(--h) + 40) 30% 12%)); } }
.profile-cover::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 18px 18px;
    mask-image: linear-gradient(100deg, transparent 20%, #000 90%); -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 90%);
}
.profile-cover-word {
    position: absolute; right: -6px; bottom: 34px; pointer-events: none; user-select: none; white-space: nowrap;
    font: 900 clamp(56px, 9vw, 104px)/.9 var(--font-display); letter-spacing: -.05em; text-transform: lowercase;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55);
}
.profile-card {
    position: relative; z-index: 1; margin: -64px 18px 0; padding: 18px 20px 16px;
    border-radius: var(--r-xl);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    box-shadow: var(--shadow-3);
}
.profile-card-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.profile-avatar { position: relative; margin-top: -58px; }
.profile-avatar .avatar-xl { width: 104px; height: 104px; font-size: 36px; box-shadow: 0 0 0 5px var(--surface), var(--shadow-2); }
.profile-ident { min-width: 0; display: grid; gap: 6px; }
.profile-ident h1 { font: 850 clamp(24px, 3.2vw, 32px)/1.08 var(--font-display); letter-spacing: -.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.profile-handle { font: 600 13px/1 var(--mono); color: var(--muted); margin-right: 2px; }
.profile-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.profile-actions .btn[aria-pressed="true"] { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: none; }
.profile-actions .icon-btn[aria-pressed="true"] { color: var(--bad); background: var(--bad-soft); }
.profile-bio { margin-top: 14px; max-width: 70ch; font-size: 15px; color: var(--ink-2); white-space: pre-line; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.profile-facts span { display: inline-flex; align-items: center; gap: 5px; }
.profile-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); }
.profile-stats > div { display: grid; gap: 1px; padding: 12px 0 2px; text-align: center; }
.profile-stats > div + div { border-left: 1px solid var(--line); }
.profile-stats dd { font: 820 21px/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.profile-stats dt { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.profile-hero > .profile-rewards { margin: 14px 18px 0; }
.profile-hero > .tabs { margin: 16px 0 0; padding: 0 18px; }

/* =========================================================================
   22. Entry kartı: dikey oy sütunu, büyük ilk harf, tepkiler, yankılar
   ========================================================================= */

.entry.has-rail {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px;
    grid-template-areas: "rail topic" "rail head" "rail body" "rail pf" "rail react" "rail foot";
    padding-left: 16px;
}
.entry.has-rail > .entry-topic { grid-area: topic; }
.entry.has-rail > .entry-head { grid-area: head; }
.entry.has-rail > .entry-body { grid-area: body; }
.entry.has-rail > .prompt-feedback { grid-area: pf; }
.entry.has-rail > .reactions { grid-area: react; }
.entry.has-rail > .entry-foot { grid-area: foot; }
.entry-rail {
    grid-area: rail; align-self: start;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    width: 44px; padding: 4px 0; border-radius: var(--pill);
    background: linear-gradient(180deg, hsl(var(--h) 70% 55% / .10), var(--surface-2) 60%);
    border: 1px solid var(--line);
}
.entry-rail .act { min-width: 34px; width: 34px; padding: 0; }
.entry-rail .vote-score { min-width: 0; height: 26px; font-size: 13px; }
.entry::before { left: 0; right: auto; top: 18px; bottom: 18px; width: 3px; height: auto; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, hsl(var(--h) 75% 58%), transparent); opacity: .55; }
.entry:hover::before { opacity: 1; }
.entry-contested { border-color: color-mix(in srgb, #ff7a1a 35%, var(--line)); }
.tag-contested { background: color-mix(in srgb, #ff7a1a 14%, var(--surface)); color: #e0620a; }

.entry-long .entry-body > p:first-child::first-letter {
    float: left; margin: 6px 10px 0 0;
    font: 850 3.3em/.82 var(--font-display); letter-spacing: -.02em;
    color: hsl(var(--h) 65% 50%);
}
:root[data-theme="dark"] .entry-long .entry-body > p:first-child::first-letter { color: hsl(var(--h) 80% 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .entry-long .entry-body > p:first-child::first-letter { color: hsl(var(--h) 80% 70%); } }

.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.reaction {
    --rc: var(--muted);
    display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--pill);
    background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-2);
    font-size: 12px; font-weight: 650; white-space: nowrap;
    transition: border-color var(--t), background-color var(--t), color var(--t);
}
.reaction .icon { color: var(--rc); }
.reaction b { font-variant-numeric: tabular-nums; color: var(--rc); }
.reaction b:empty { display: none; }
span.reaction { border-style: solid; }
button.reaction:hover { border-style: solid; border-color: var(--rc); }
.reaction[aria-pressed="true"] { border-style: solid; border-color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, var(--surface)); color: var(--rc); }
.reaction-1 { --rc: #d99a00; } .reaction-2 { --rc: #e2457a; } .reaction-3 { --rc: #2f7de1; } .reaction-4 { --rc: #0f8f83; }
.act-echo { color: var(--prompt); }
.act-echo .act-label { font-size: 12px; }
.echo-list { display: grid; gap: 14px; }
.echo-list .entry + .entry { margin-top: 0; }

/* #id önizleme */
.entry-peek { width: 340px; }
.entry-peek-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.entry-peek-topic { flex: 1; min-width: 0; font-weight: 750; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-peek-topic:hover { color: var(--brand-ink); }
.entry-peek-id { flex: none; font: 600 12px/1 var(--mono); color: var(--faint); }
.entry-peek-text { padding: 8px 16px 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* tartışma termometresi */
.heat { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.heat-bar { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.heat-bar span { width: 4px; border-radius: 2px; background: var(--line-2); }
.heat-bar span:nth-child(1) { height: 5px; } .heat-bar span:nth-child(2) { height: 8px; } .heat-bar span:nth-child(3) { height: 11px; } .heat-bar span:nth-child(4) { height: 14px; }
.heat-1 .heat-bar span:nth-child(-n+1), .heat-2 .heat-bar span:nth-child(-n+2), .heat-3 .heat-bar span:nth-child(-n+3), .heat-4 .heat-bar span:nth-child(-n+4) { background: linear-gradient(180deg, #ff3d2e, #ffb020); }
.heat-1 { color: var(--muted); }
.heat-4 { color: #e0620a; border-color: color-mix(in srgb, #ff7a1a 40%, var(--line)); background: color-mix(in srgb, #ff7a1a 10%, var(--surface)); }

@media (prefers-reduced-motion: no-preference) {
    .heat-4 .heat-bar span { animation: flicker 1.2s ease-in-out infinite alternate; transform-origin: bottom; }
    .heat-4 .heat-bar span:nth-child(2) { animation-delay: .2s; } .heat-4 .heat-bar span:nth-child(3) { animation-delay: .4s; }
    @keyframes flicker { to { transform: scaleY(.7); } }
    .reaction[aria-pressed="true"] .icon { animation: pop .35s var(--ease); }
    .profile-cover-word { animation: drift-word 18s ease-in-out infinite alternate; }
    @keyframes drift-word { to { transform: translateX(-24px); } }
}

@media (max-width: 760px) {
    .profile-card-main { grid-template-columns: auto minmax(0, 1fr); }
    .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-stats > div:nth-child(4) { border-left: 0; }
}
@media (max-width: 640px) {
    .profile-cover { height: 150px; }
    .profile-card { margin: -52px 10px 0; padding: 14px; }
    .profile-avatar { margin-top: -48px; }
    .profile-avatar .avatar-xl { width: 80px; height: 80px; font-size: 28px; }
    .profile-hero > .profile-rewards { margin: 12px 10px 0; }
    .entry.has-rail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topic" "head" "body" "pf" "react" "foot"; padding-left: 16px; }
    .entry-rail { grid-area: foot; flex-direction: row; width: auto; padding: 0 4px; align-self: center; justify-self: start; margin-top: 14px; background: var(--surface-2); }
    .entry.has-rail > .entry-foot { padding-left: 128px; }
    .entry-rail .vote-score { min-width: 30px; }
}


/* =========================================================================
   23. Kategori alt menüsü (başlığın altında, yatay; taşarsa kaydırılır, açılır menü yok)
   ========================================================================= */

/* --stack-h kökte hesaplandığından alt menü yüksekliği hem kökte hem body'de yeniden tanımlanır */
:root:has(body.has-catbar), body.has-catbar { --subnav-h: 46px; --stack-h: calc(var(--header-h) + var(--subnav-h)); }
.cat-bar {
    position: sticky; top: var(--header-h); z-index: 39;
    height: var(--subnav-h);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid var(--line);
}
.cat-bar-track {
    display: flex; align-items: center; gap: 4px; height: 100%;
    max-width: 1440px; margin: 0 auto; padding: 0 max(20px, 24px);
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent);
}
.cat-bar-track::-webkit-scrollbar { display: none; }
.cat-link {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    height: 32px; padding: 0 12px; border-radius: var(--pill);
    font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
    transition: background-color var(--t), color var(--t);
}
.cat-link:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 70% 55%); flex: none; }
.cat-link[aria-current="page"] { background: hsl(var(--h) 80% 93%); color: hsl(var(--h) 55% 32%); }
.cat-link-all[aria-current="page"] { background: var(--ink); color: var(--bg); }
.cat-link-all .icon { color: var(--muted); }
:root[data-theme="dark"] .cat-link[data-hue][aria-current="page"] { background: hsl(var(--h) 35% 18%); color: hsl(var(--h) 80% 76%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-link[data-hue][aria-current="page"] { background: hsl(var(--h) 35% 18%); color: hsl(var(--h) 80% 76%); } }
body.has-catbar .site-header { border-bottom-color: transparent; }
body.has-catbar .site-header::after { opacity: 0; }
.cat-bar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 55%, transparent) 30%, color-mix(in srgb, var(--prompt) 50%, transparent) 70%, transparent);
    opacity: .6;
}
@media (max-width: 900px) {
    :root:has(body.has-catbar), body.has-catbar { --subnav-h: 42px; --stack-h: calc(var(--header-h) + var(--subnav-h)); }
    .cat-bar-track { padding: 0 12px; }
    .cat-link { height: 30px; padding: 0 11px; font-size: 13px; }
}

/* boş bkz'ler */
.widget-empty-bkz .widget-icon { background: var(--prompt-soft); color: var(--prompt); }
.widget-lead { margin: -4px 0 10px; font-size: 12.5px; color: var(--muted); }
.empty-bkz-list { display: grid; gap: 2px; }
.empty-bkz-row { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px; margin: 0 -8px; border-radius: var(--r-sm); min-width: 0; transition: background-color var(--t); }
.empty-bkz-row:hover { background: var(--surface-2); }
.empty-bkz-title { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-bkz-title::before { content: "(bkz: "; color: var(--faint); }
.empty-bkz-title::after { content: ")"; color: var(--faint); }
.empty-bkz-refs { flex: none; min-width: 22px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--pill); background: var(--prompt-soft); color: var(--prompt); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.empty-bkz-go { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); transition: background-color var(--t), color var(--t); }
.empty-bkz-row:hover .empty-bkz-go { background: var(--prompt); color: #fff; }
.empty-bkz-page > * + * { margin-top: 16px; }
.empty-bkz-note { border-color: color-mix(in srgb, var(--prompt) 35%, var(--line)); background: color-mix(in srgb, var(--prompt-soft) 50%, transparent); }
.empty-bkz-note strong { color: var(--ink); }
.entry-edit > * + * { margin-top: 16px; }
.entry-edit .page-title a:hover { color: var(--brand-ink); }


/* sol menü sayfalama, sıkı sayfalama */
.frame-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 4px; border-radius: var(--r); background: var(--surface-3); }
.frame-pager span { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.frame-pager .icon-btn { width: 32px; height: 32px; background: var(--surface); box-shadow: var(--shadow-1); }
.frame-pager .icon-btn:disabled { opacity: .35; box-shadow: none; cursor: default; }
.pagination-compact { justify-content: flex-start; flex-wrap: wrap; margin-top: 12px; }
.pagination-compact .pagination-current { padding-left: 4px; }
.pagination-compact a { min-width: 38px; justify-content: center; }
