/* ForumİSG – temel tema. Marka rengi admin ayarından --brand olarak gelir. */
:root {
  --brand: #e8590c;
  --brand-ink: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --bg: #f5f6f8;
  --bg-elev: #ffffff;
  --bg-sunk: #eef0f3;
  --ink: #16191f;
  --ink-2: #444b57;
  --muted: #6b7280;
  --line: #e3e6eb;
  --ok: #2f9e44;
  --warn: #f08c00;
  --danger: #e03131;
  --info: #1c7ed6;
  --expert: #5f3dc4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --bg-elev: #171b21; --bg-sunk: #1d222a; --ink: #eef0f3; --ink-2: #c4c9d2;
    --muted: #8b93a1; --line: #2a303a; --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --bg-elev: #171b21; --bg-sunk: #1d222a; --ink: #eef0f3; --ink-2: #c4c9d2;
  --muted: #8b93a1; --line: #2a303a; --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.danger { color: var(--danger) !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 56px; min-height: 60vh; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--bg-elev); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* ---------- Üst bant & başlık ---------- */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: .88rem; padding: 7px 16px; font-weight: 500; }
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg-elev) 88%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-size: 1.2rem; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent); }
.mainnav { display: flex; gap: 4px; margin-left: 8px; }
.mainnav a { color: var(--ink-2); font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 9px; }
.mainnav a:hover, .mainnav a.active { background: var(--bg-sunk); color: var(--ink); text-decoration: none; }
.nav-auth-mobile { display: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--bg-sunk); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
.menu-toggle { display: none; }

.usermenu { position: relative; }
.usermenu-btn { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.usermenu-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
[data-dropdown].open .dropdown { display: block; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.dropdown-head span { color: var(--muted); font-size: .82rem; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg-sunk); text-decoration: none; }

.verify-bar { background: color-mix(in srgb, var(--warn) 14%, var(--bg-elev)); border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); font-size: .9rem; }
.verify-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer; text-decoration: none !important; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-ghost { background: var(--bg-elev); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-sunk); }
.btn-light { background: var(--bg-elev); color: var(--ink); border-color: var(--line); }
.btn-link { background: none; border: 0; color: var(--brand); padding: 8px 0; font-weight: 600; }
.btn-sm { padding: 6px 12px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Bildirimler ---------- */
.flashes { display: grid; gap: 8px; margin-bottom: 20px; }
.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid; font-size: .93rem; font-weight: 500; }
.flash-success { background: color-mix(in srgb, var(--ok) 10%, var(--bg-elev)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.flash-error { background: color-mix(in srgb, var(--danger) 10%, var(--bg-elev)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.flash-warning { background: color-mix(in srgb, var(--warn) 12%, var(--bg-elev)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.flash-info { background: color-mix(in srgb, var(--info) 10%, var(--bg-elev)); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.flash-x { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }

/* ---------- Rozetler & etiketler ---------- */
.badge, .tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-sunk); color: var(--ink-2); vertical-align: middle; margin-left: 4px; letter-spacing: .01em; }
.badge-verified { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); padding: 2px 6px; }
.badge-expert, .tag-expert { background: color-mix(in srgb, var(--expert) 14%, transparent); color: var(--expert); }
.badge-staff { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.badge-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.tag-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
:root[data-theme="dark"] .badge-expert { color: #b197fc; }

/* ---------- Avatar ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--bg-sunk); }
.avatar-initials { display: inline-grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: .02em; }
.avatar-xl { box-shadow: 0 0 0 5px var(--bg-elev), var(--shadow); }

/* ---------- Kartlar ---------- */
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-soft { background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.card h3 { margin-bottom: .7em; }

/* ---------- Ana sayfa ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 36px 40px; border-radius: 22px; background:
  radial-gradient(900px 300px at 0% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%),
  linear-gradient(135deg, var(--bg-elev), var(--bg-elev)); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); margin-bottom: .35em; }
.hero p { color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-card { background: var(--bg-sunk); border-radius: 18px; padding: 18px; display: grid; gap: 12px; transform: rotate(1.5deg); }
.hero-card-row { display: flex; align-items: center; gap: 10px; background: var(--bg-elev); border-radius: 12px; padding: 12px; opacity: .75; }
.dot { width: 28px; height: 28px; border-radius: 50%; }
.dot-a { background: #1c7ed6; } .dot-b { background: #2f9e44; }
.line { height: 9px; border-radius: 5px; background: var(--line); }
.w70 { width: 70%; } .w50 { width: 50%; }
.hero-card-q { background: var(--bg-elev); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-card-q p { margin: 10px 0; font-weight: 700; }
.hc-head { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); }
.hc-head .tag { margin-left: auto; }
.hc-ava { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--expert) 16%, transparent); }
.hc-file { display: inline-flex; gap: 6px; font-size: .84rem; font-weight: 600; background: var(--bg-sunk); padding: 6px 10px; border-radius: 8px; }
.hc-file span { color: var(--muted); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-sunk); font-size: 1.3rem; }
.stat strong { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.stat span:last-child { color: var(--muted); font-size: .84rem; }

.home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.cat-grid { display: grid; gap: 10px; }
.cat-grid-sm { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 20px; }
.cat-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; position: relative; overflow: hidden; }
.cat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.cat-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--c) 50%, var(--line)); transform: translateY(-1px); }
.cat-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; font-size: 1.45rem; background: color-mix(in srgb, var(--c) 13%, transparent); }
.cat-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cat-title { font-weight: 700; font-size: 1rem; }
.cat-desc { color: var(--muted); font-size: .87rem; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.cat-subs span { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg-sunk); color: var(--ink-2); }
.cat-count { flex: none; text-align: center; display: grid; min-width: 54px; }
.cat-count strong { font-size: 1.15rem; }
.cat-count small { color: var(--muted); font-size: .75rem; }

.side .card { padding: 18px; }
.join-card { background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: #fff; border: 0; }
.join-card .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.member-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; }
.member-list a { color: var(--ink); }

.empty { text-align: center; padding: 30px 16px; color: var(--muted); background: var(--bg-elev); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-lg { padding: 56px 20px; }
.empty-lg h1, .empty-lg h2 { color: var(--ink); }
.empty-ico { font-size: 2.6rem; display: block; margin-bottom: 8px; }
.err-code { font-size: 3.5rem; margin: 0; color: var(--brand); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .87rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.page-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.page-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; font-size: 1.8rem; background: color-mix(in srgb, var(--c) 14%, transparent); flex: none; }
.page-head h1 { margin: 0; }
.page-head p { margin: 2px 0 0; }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 16px; }
.form.narrow { max-width: 440px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field input, .field select, .field textarea, .prefix { width: 100%; font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink); background: var(--bg-elev); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input:disabled { background: var(--bg-sunk); color: var(--muted); }
.prefix { display: flex; align-items: center; padding: 0 0 0 13px; }
.prefix em { font-style: normal; color: var(--muted); }
.prefix input { border: 0; box-shadow: none !important; padding-left: 4px; background: transparent; }
.prefix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hint { font-weight: 500; color: var(--muted); font-size: .8rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 1rem; opacity: .6; padding: 6px; }
.meter { height: 5px; border-radius: 3px; background: var(--bg-sunk); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.auth { display: grid; place-items: center; padding: 10px 0 30px; }
.auth-card { width: 100%; max-width: 440px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-lg); }
.auth-wide { grid-template-columns: 1fr 1.1fr; max-width: 960px; margin: 0 auto; gap: 30px; align-items: start; place-items: start stretch; }
.auth-wide .auth-card { max-width: none; }
.auth-side { padding: 30px 6px; }
.auth-side h2 { font-size: 1.6rem; font-weight: 800; }
.perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); font-size: 1.3rem; flex: none; }
.perks strong { display: block; }
.perks small { color: var(--muted); font-size: .88rem; }

/* ---------- Profil ---------- */
.profile { margin-bottom: 18px; }
.profile-cover { height: 140px; border-radius: 18px 18px 0 0; background:
  radial-gradient(600px 200px at 20% 0%, color-mix(in srgb, var(--c) 70%, transparent), transparent),
  linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 45%, #111)); }
.profile-main { border-radius: 0 0 18px 18px; margin-top: -1px; padding-top: 0; }
.profile-top { display: flex; gap: 18px; align-items: flex-end; margin-top: -44px; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 200px; padding-bottom: 4px; }
.profile-id h1 { margin: 0; }
.profile-id p { margin: 0 0 6px; }
.badges .badge:first-child { margin-left: 0; }
.profile-bio { margin: 18px 0 0; color: var(--ink-2); }
.profile-meta { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.profile-stats { display: flex; gap: 12px; margin-top: 18px; }
.profile-stats div { background: var(--bg-sunk); border-radius: 12px; padding: 10px 18px; display: grid; text-align: center; }
.profile-stats strong { font-size: 1.25rem; }
.profile-stats span { color: var(--muted); font-size: .82rem; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.simple-list li:last-child { border-bottom: 0; }

/* ---------- Ayarlar ---------- */
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.tabs { display: grid; gap: 4px; position: sticky; top: 84px; }
.tabs a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.tabs a:hover { background: var(--bg-sunk); text-decoration: none; }
.tabs a.active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.settings-card { padding: 26px; }
.callout { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, var(--expert) 9%, var(--bg-elev)); border: 1px solid color-mix(in srgb, var(--expert) 25%, transparent); }
.callout p { margin: 6px 0 10px; color: var(--ink-2); }
.avatar-edit { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.avatar-preview img, .avatar-preview .avatar { width: 128px; height: 128px; }
.file-drop { display: grid; gap: 4px; padding: 22px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.drag { border-color: var(--brand); background: var(--brand-soft); }
.file-drop input { font-size: .85rem; }
.narrow-card { max-width: 680px; margin: 0 auto; }

.prose-card { max-width: 820px; margin: 0 auto; padding: 32px; }
.prose { color: var(--ink-2); }
.prose h2 { margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-elev); padding-top: 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid > div > a:not(.logo) { display: block; color: var(--ink-2); padding: 3px 0; }
.logo-footer { margin-bottom: 12px; }
.free-pill { display: inline-block; font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; padding-bottom: 26px; font-size: .82rem; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .hero-card { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .auth-wide { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .hide-sm { display: none; }
  .usermenu-name { display: none; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; box-shadow: var(--shadow-lg); }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px; }
  .nav-auth-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .nav-auth-mobile a { text-align: center; border: 1px solid var(--line); }
  .nav-auth-mobile a:last-child { background: var(--brand); color: #fff; border-color: var(--brand); }
  .settings { grid-template-columns: 1fr; }
  .tabs { position: static; grid-auto-flow: column; overflow-x: auto; }
  .tabs a { white-space: nowrap; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .auth-card, .settings-card, .prose-card { padding: 22px 18px; }
  .profile-cover { height: 100px; }
  .cat-count { display: none; }
  body { font-size: 15px; }
}

/* =================== 2. AŞAMA: FORUM =================== */
.topsearch { flex: 1; max-width: 320px; margin-left: auto; position: relative; display: flex; align-items: center; }
.topsearch svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.topsearch input { width: 100%; font: inherit; font-size: .9rem; padding: 9px 12px 9px 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-sunk); color: var(--ink); }
.topsearch input:focus { outline: none; border-color: var(--brand); background: var(--bg-elev); box-shadow: 0 0 0 4px var(--brand-soft); }
.topsearch + .topbar-actions { margin-left: 8px; }
.search-mobile { display: none; }
.tag-pin { background: color-mix(in srgb, var(--warn) 16%, transparent); color: #b35c00; }
.tag-new { background: var(--brand); color: #fff; }
.tag-op { background: var(--bg-sunk); color: var(--muted); margin: 4px 0 0; }
.warn { color: var(--warn); }
.ok { color: var(--ok) !important; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }

.recent { margin-bottom: 26px; }
.tlist { display: grid; gap: 8px; }
.trow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trow-pinned { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 4%, var(--bg-elev)); }
.trow-main { min-width: 0; }
.trow-title { font-size: 1rem; margin: 0 0 3px; line-height: 1.4; }
.trow-title a { color: var(--ink); }
.trow-title .tag { margin: 0 4px 0 0; font-size: .66rem; }
.trow-meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.trow-meta a { color: var(--ink-2); font-weight: 600; }
.trow-meta .badge { margin-left: 0; }
.trow-cat { color: var(--c) !important; }
.trow-stats { display: flex; gap: 6px; }
.trow-num { display: grid; text-align: center; min-width: 58px; padding: 4px 6px; border-radius: 10px; background: var(--bg-sunk); }
.trow-num strong { font-size: 1rem; line-height: 1.2; }
.trow-num small { font-size: .7rem; color: var(--muted); }
.trow-num.zero { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.trow-last { display: grid; min-width: 120px; font-size: .84rem; font-weight: 600; text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.chip small { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg-sunk); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a { padding: 6px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.seg a.on { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow); }
.seg a:hover { text-decoration: none; }
.page-head-text { flex: 1; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .gap { border: 0; background: none; }
.pager a:hover { text-decoration: none; border-color: var(--brand); }

/* Konu sayfası */
.topic-head { margin-bottom: 16px; }
.topic-head h1 { margin: 6px 0 8px; }
.topic-tags .tag:first-child { margin-left: 0; }
.topic-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; }
.post { display: grid; grid-template-columns: 170px 1fr; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; scroll-margin-top: 80px; }
.post-op { border-top: 4px solid var(--brand); }
.post-best { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 15%, transparent); }
.post-hidden { opacity: .55; }
.post:target { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.post-author { padding: 18px 14px; background: var(--bg-sunk); text-align: center; display: grid; justify-items: center; align-content: start; gap: 8px; border-right: 1px solid var(--line); }
.post-author-info { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.post-author-name { font-weight: 700; color: var(--ink); word-break: break-word; }
.post-author-badges .badge { margin: 2px; }
.post-body { padding: 18px 20px 12px; min-width: 0; }
.post-top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.post-top .tag { margin-left: auto; }
.prose { overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.prose blockquote { margin: 0 0 1em; padding: 8px 14px; border-left: 4px solid var(--line); background: var(--bg-sunk); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--bg-sunk); padding: 1px 6px; border-radius: 5px; }
.prose h3 { margin-top: 1em; }
.edited { font-size: .8rem; margin: 10px 0 0; }
.post-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 8px; }
.post-actions form { display: inline; }
.post-actions .btn-link { font-size: .85rem; color: var(--muted); padding: 4px 0; cursor: pointer; }
.post-actions .btn-link:hover { color: var(--brand); text-decoration: none; }
.post-actions .btn-link.ok { color: var(--ok); }
.report summary { list-style: none; cursor: pointer; font-size: .85rem; color: var(--muted); }
.report summary::-webkit-details-marker { display: none; }
.report[open] { flex-basis: 100%; }
.report-form { display: flex; gap: 8px; margin-top: 8px; align-items: flex-start; }
.report-form textarea { flex: 1; font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); }
.best { background: color-mix(in srgb, var(--ok) 7%, var(--bg-elev)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: var(--radius); padding: 16px 20px; margin: 4px 0 16px; }
.best-head { font-weight: 800; color: var(--ok); margin-bottom: 8px; }
.replies-title { margin: 26px 0 12px; font-size: 1.1rem; }
.reply { margin-top: 26px; }
.related { margin-top: 26px; }

/* Dosyalar */
.files { display: grid; gap: 8px; margin-top: 14px; }
.file { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.file-pending { border-style: dashed; border-color: var(--warn); }
.file-ico { font-size: 1.7rem; flex: none; }
.file-ico.big { font-size: 3rem; }
.file-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.file-info { flex: 1; min-width: 0; display: grid; }
.file-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.file-info small { font-size: .78rem; }
.file-actions { display: flex; gap: 6px; flex: none; }
.file-drop-sm { padding: 14px; }
.picked { list-style: none; margin: 6px 0 0; padding: 0; font-size: .82rem; font-weight: 500; text-align: left; }
.picked li { padding: 2px 0; }
.picked .bad { color: var(--danger); }

/* PDF görüntüleyici */
.pdf-page { margin: -8px 0; }
.pdf-bar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; }
.pdf-name { flex: 1; min-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-ctrl { display: flex; align-items: center; gap: 8px; }
.pdf-ctrl .icon-btn { width: 34px; height: 34px; font-size: 1.1rem; font-weight: 700; }
.pdf-pages { display: grid; gap: 14px; justify-items: center; overflow-x: auto; }
.pdf-sheet { background: #fff; box-shadow: var(--shadow-lg); border-radius: 4px; width: 100%; display: flex; justify-content: center; }
.pdf-sheet canvas { display: block; max-width: none; }

/* Editör */
.editor { border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-elev); overflow: hidden; }
.editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.editor-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--bg-sunk); }
.editor-bar button { font: inherit; font-size: .82rem; font-weight: 600; padding: 5px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); cursor: pointer; }
.editor-bar button:hover, .editor-bar button.on { background: var(--bg-elev); color: var(--ink); }
.editor-preview-btn { margin-left: auto; }
.editor textarea { display: block; width: 100%; border: 0; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; resize: vertical; min-height: 140px; }
.editor textarea:focus { outline: none; }
.editor-preview { padding: 14px; min-height: 140px; }
.form-page { max-width: 860px; margin: 0 auto; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.searchbar { display: flex; gap: 8px; margin-bottom: 16px; }
.searchbar input { flex: 1; font: inherit; font-size: 1.05rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-elev); color: var(--ink); }
.side-list li { display: block; font-size: .9rem; }

/* =================== YÖNETİM PANELİ =================== */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.admin-nav { position: sticky; top: 84px; display: grid; gap: 2px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.admin-nav-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 10px; }
.admin-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.admin-nav a:hover { background: var(--bg-sunk); text-decoration: none; }
.admin-nav a.active { background: var(--brand-soft); color: var(--brand); }
.admin-nav .count { margin-left: auto; background: var(--danger); color: #fff; font-size: .72rem; padding: 1px 7px; border-radius: 999px; }
.admin-nav-back { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 !important; padding-top: 12px !important; }
.admin-main { min-width: 0; }
.admin-main h1 small { font-size: 1rem; font-weight: 600; }
.todo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.todo a { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 12%, var(--bg-elev)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); font-weight: 600; }
.todo-ok { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 10%, var(--bg-elev)); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; }
.kpi span { color: var(--muted); font-size: .84rem; font-weight: 600; }
.kpi strong { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.kpi small { color: var(--muted); font-size: .78rem; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 150px; align-items: end; }
.bar-col { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; }
.bar-col small { color: var(--muted); font-size: .72rem; }
.bar-pair { display: flex; gap: 2px; align-items: flex-end; justify-content: center; }
.bar { width: 40%; min-height: 2px; border-radius: 3px 3px 0 0; }
.bar-a { background: var(--info); }
.bar-b { background: var(--brand); }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters input, .filters select { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); }
.filters input[type=search] { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; padding: 0; }
.table-wrap h3 { padding: 16px 18px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .actions { white-space: nowrap; text-align: right; }
.table-sm td { padding: 7px 12px; }
.row-banned td { opacity: .6; }
.user-cell { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.user-cell span { display: grid; line-height: 1.3; }
.user-card { display: flex; gap: 18px; align-items: center; }
.user-card h1 { font-size: 1.4rem; margin: 0; }
.user-card p { margin: 2px 0; }
.row-between { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.quote { background: var(--bg-sunk); border-radius: 10px; padding: 10px 14px; margin: 10px 0; color: var(--ink-2); }
.reported { border-left: 3px solid var(--line); padding-left: 12px; margin: 10px 0; display: grid; gap: 4px; }
.reported p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.decide { margin-top: 12px; }
.admin-2col { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.field input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
.admin-files { display: grid; gap: 10px; margin-top: 14px; }
.admin-file { display: flex; gap: 16px; align-items: center; margin: 0; }
.admin-file-prev { width: 90px; height: 90px; display: grid; place-items: center; background: var(--bg-sunk); border-radius: 10px; overflow: hidden; flex: none; }
.admin-file-prev img { width: 100%; height: 100%; object-fit: cover; }
.admin-file-info { display: grid; gap: 4px; min-width: 0; }
.settings-group { display: grid; gap: 14px; }
.settings-group legend { font-weight: 800; padding: 0 6px; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.mono { font-family: ui-monospace, Consolas, monospace !important; font-size: .88rem !important; }

@media (max-width: 1100px) {
  .topsearch { display: none; }
  .search-mobile { display: grid; }
}
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; grid-template-columns: none; }
  .admin-nav-title, .admin-nav-back { display: none; }
  .admin-nav a { white-space: nowrap; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-2col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .trow { grid-template-columns: auto 1fr auto; padding: 12px; gap: 10px; }
  .trow-ava .avatar { width: 36px !important; height: 36px !important; }
  .trow-num { min-width: 48px; }
  .post { grid-template-columns: 1fr; }
  .post-author { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .post-author .avatar { width: 40px !important; height: 40px !important; font-size: 15px !important; }
  .post-author-info { justify-items: start; }
  .post-author-info .tag-op { display: none; }
  .post-body { padding: 14px; }
  .file { flex-wrap: wrap; }
  .file-actions { width: 100%; }
  .file-actions .btn { flex: 1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pdf-bar { top: 64px; }
  .page-head { flex-wrap: wrap; }
}

.file-drop { position: relative; }
.file-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop .picked { position: relative; z-index: 1; pointer-events: none; }

/* =================== VİDEO, PAYLAŞ, REKLAM =================== */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 720px; margin: 0 0 1em; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1f2937, #111827); cursor: pointer; }
.video-short { aspect-ratio: 9 / 16; max-width: 320px; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.video:hover img { transform: scale(1.03); }
.video-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border: 0; background: none; padding: 0; cursor: pointer; }
.video:hover .video-play rect { fill: #ff0033; }
.video-src { position: absolute; left: 10px; bottom: 8px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.share-label { font-size: .82rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: currentColor; text-decoration: none; }
.share svg { width: 16px; height: 16px; flex: none; }
.share .s-wa { color: #1a9e53; } .share .s-x { color: var(--ink); } .share .s-fb { color: #1877f2; } .share .s-li { color: #0a66c2; } .share .s-tg { color: #229ed9; }
.share .s-native { display: none; }
.has-native-share .share .s-native { display: inline-flex; background: var(--brand); color: #fff; border-color: var(--brand); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: .9rem; z-index: 100; box-shadow: var(--shadow-lg); animation: pop .15s ease-out; }

.ad { margin: 16px 0; text-align: center; overflow: hidden; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-side { min-height: 0; }
.side .ad { margin-top: 0; }
.tlist .ad { margin: 4px 0; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 90; display: flex; gap: 14px; align-items: center; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: .88rem; }
.cookie p { margin: 0; flex: 1; color: var(--ink-2); }
@media (max-width: 760px) { .share a span, .share button span { display: none; } .share a, .share button { padding: 0 10px; } .cookie { flex-direction: column; align-items: stretch; } }
.ad:not(:has(ins[data-ad-status="filled"])) .ad-label { display: none; }

/* =================== MANŞET SLIDER =================== */
.slider { position: relative; margin-bottom: 18px; border-radius: 22px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { --c: var(--brand); flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; padding: 34px 40px 48px; min-height: 340px;
  background: radial-gradient(900px 300px at 0% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 60%); }
.slide-text { min-width: 0; }
.slide-text p { color: var(--ink-2); font-size: 1.02rem; max-width: 56ch; }
.slide-title-lg { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); margin-bottom: .35em; }
.slide-title { font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); font-weight: 800; margin: 10px 0 10px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide-title a { color: var(--ink); }
.slide-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slide-badge { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); padding: 5px 11px; border-radius: 999px; }
.slide-cat { font-size: .82rem; font-weight: 600; color: var(--muted); }
.slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; font-weight: 600; margin-top: -4px; }
.slide-meta .avatar { font-size: 11px !important; }
.slide .hero-cta { margin-top: 18px; }
.slide .btn-primary { background: var(--c); box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 30%, transparent); }
.slide-side { display: flex; justify-content: center; }
.reply-card { width: 100%; max-width: 420px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.reply-card p { margin: 12px 0 8px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.reply-card .hc-head .avatar { font-size: 12px !important; }
.reply-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 18px; background: var(--bg-sunk); box-shadow: none; }
.slide-art { display: grid; place-items: center; }
.slide-art span { display: grid; place-items: center; width: 180px; height: 180px; border-radius: 40px; font-size: 5rem; background: color-mix(in srgb, var(--c) 14%, var(--bg-elev)); transform: rotate(-4deg); box-shadow: var(--shadow-lg); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; }
.slider:hover .slider-nav, .slider-nav:focus-visible { opacity: 1; }
.slider-nav.prev { left: 10px; } .slider-nav.next { right: 10px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: color-mix(in srgb, var(--ink) 22%, transparent); cursor: pointer; transition: width .25s, background .25s; }
.slider-dots button[aria-selected="true"] { width: 28px; background: var(--brand); }
@media (max-width: 960px) {
  .slide { grid-template-columns: 1fr; padding: 26px 22px 46px; min-height: 0; gap: 18px; }
  .slide .hero-card, .slide-art { display: none; }
  .reply-card { transform: none; max-width: none; box-shadow: none; background: var(--bg-sunk); }
  .slider-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }
.preview-list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.preview-list .slide-badge, .table .slide-badge { font-size: .66rem; padding: 2px 8px; }
.slide-text > p, .reply-card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .slide-text > p, .reply-card p { -webkit-line-clamp: 3; } .slide .btn-lg { width: 100%; } }

/* =================== YAZAR KARTI, PROFİL PENCERESİ =================== */
.ava-btn { border: 0; background: none; padding: 0; cursor: zoom-in; border-radius: 50%; }
.ava-btn:focus-visible { outline: 3px solid var(--brand-soft); }
.ava-wrap { position: relative; display: inline-block; line-height: 0; }
.online { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: #2f9e44; border: 2px solid var(--bg-elev); }
.online.big { width: 22px; height: 22px; right: 10px; bottom: 10px; border-width: 4px; }
.ava-btn .avatar { transition: transform .15s, box-shadow .15s; }
.ava-btn:hover .avatar { transform: scale(1.05); box-shadow: 0 0 0 4px var(--brand-soft); }
.author-title { line-height: 1.3; }
.author-facts { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; width: 100%; text-align: left; font-size: .78rem; color: var(--ink-2); }
.author-facts li { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.author-facts li span { width: 16px; flex: none; text-align: center; }
.author-msg { margin-top: 10px; width: 100%; }
.pmodal { border: 0; padding: 0; border-radius: 22px; width: min(400px, calc(100vw - 32px)); background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.pmodal::backdrop { background: rgba(10, 14, 20, .55); backdrop-filter: blur(3px); }
.pmodal[open] { animation: pop .18s ease-out; }
.pmodal-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 1.4rem; cursor: pointer; }
.pcard { text-align: center; padding-bottom: 22px; }
.pcard-cover { height: 110px; background: radial-gradient(400px 120px at 20% 0%, color-mix(in srgb, var(--brand) 70%, transparent), transparent), linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #111)); }
.pcard-photo { position: relative; width: 160px; height: 160px; margin: -80px auto 12px; }
.pcard-photo img, .pcard-photo .avatar { width: 160px !important; height: 160px !important; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--bg-elev), var(--shadow-lg); font-size: 60px !important; }
.pcard h2 { margin: 0; font-size: 1.35rem; }
.pcard > p { margin: 2px 16px 8px; }
.pcard .badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.pcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 20px 0; }
.pcard-stats div { background: var(--bg-sunk); border-radius: 12px; padding: 8px 4px; display: grid; }
.pcard-stats strong { font-size: 1.2rem; }
.pcard-stats span { font-size: .75rem; color: var(--muted); }
.pcard-facts { list-style: none; margin: 14px 24px 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--ink-2); }
.pcard-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 20px 0; }
.pcard-actions .btn { flex: 1; }

/* =================== BEĞEN / OKUNMA =================== */
.votes { display: inline-flex; gap: 6px; margin-right: 4px; }
.votes form { display: inline; }
.vote { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); font: inherit; font-size: .85rem; cursor: pointer; transition: transform .1s, background .15s, border-color .15s; }
.vote b { font-weight: 700; min-width: 8px; }
.vote:hover:not(:disabled) { border-color: var(--ink-2); }
.vote:active:not(:disabled) { transform: scale(.94); }
.vote:disabled { cursor: default; opacity: .75; }
.vote-up[aria-pressed="true"] { background: color-mix(in srgb, var(--ok) 14%, var(--bg-elev)); border-color: var(--ok); color: var(--ok); }
.vote-down[aria-pressed="true"] { background: color-mix(in srgb, var(--danger) 12%, var(--bg-elev)); border-color: var(--danger); color: var(--danger); }
.vote.pop span { animation: bump .3s ease-out; }
@keyframes bump { 50% { transform: scale(1.45); } }
.reads { font-size: .82rem; color: var(--muted); margin-right: 6px; }

/* =================== MESAJLAŞMA =================== */
.msg-btn { position: relative; }
.msg-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .7rem; display: grid; place-items: center; border: 2px solid var(--bg-elev); }
.dropdown .count { background: var(--danger); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
.msg-page { max-width: 820px; margin: 0 auto; }
.msg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.msg-head h1 { margin: 0; }
.inbox { padding: 6px; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); }
.inbox-row:hover { background: var(--bg-sunk); text-decoration: none; }
.inbox-row.unread { background: var(--brand-soft); }
.inbox-row.unread .inbox-last { color: var(--ink); font-weight: 600; }
.inbox-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inbox-top { display: flex; align-items: center; gap: 4px; }
.inbox-top small { margin-left: auto; white-space: nowrap; }
.inbox-last { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .count { background: var(--brand); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 99px; }
.tick { font-size: .78rem; color: var(--muted); letter-spacing: -2px; }
.tick.seen { color: var(--info); }
.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 480px; padding: 0; overflow: hidden; margin: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.chat-who { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; line-height: 1.3; }
.chat-who:hover { text-decoration: none; }
.chat-menu { position: relative; }
.chat-menu summary { list-style: none; }
.chat-menu summary::-webkit-details-marker { display: none; }
.dropdown-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 10; display: grid; }
.dropdown-pop a, .dropdown-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.dropdown-pop a:hover, .dropdown-pop button:hover { background: var(--bg-sunk); text-decoration: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; background:
  radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 0) 0 0 / 22px 22px, var(--bg-sunk); }
.chat-older { align-self: center; font-size: .85rem; margin-bottom: 8px; }
.chat-empty { margin: auto; text-align: center; display: grid; justify-items: center; gap: 6px; max-width: 320px; }
.chat-day { align-self: center; margin: 8px 0; }
.chat-day span { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--bg-elev); padding: 3px 12px; border-radius: 99px; box-shadow: var(--shadow); }
.msg { display: flex; align-items: flex-end; gap: 4px; max-width: 78%; }
.msg-me { align-self: flex-end; flex-direction: row-reverse; }
.msg-them { align-self: flex-start; }
.msg-bubble { padding: 8px 12px 6px; border-radius: 16px; background: var(--bg-elev); box-shadow: 0 1px 1px rgba(0,0,0,.06); min-width: 70px; }
.msg-me .msg-bubble { background: color-mix(in srgb, var(--brand) 16%, var(--bg-elev)); border-bottom-right-radius: 5px; }
.msg-them .msg-bubble { border-bottom-left-radius: 5px; }
.msg-text { overflow-wrap: anywhere; line-height: 1.45; }
.msg-meta { display: flex; justify-content: flex-end; gap: 4px; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.msg.new { animation: pop .2s ease-out; }
.msg-more summary { list-style: none; cursor: pointer; color: var(--muted); padding: 0 4px; opacity: 0; }
.msg:hover .msg-more summary, .msg-more[open] summary { opacity: 1; }
.msg-more summary::-webkit-details-marker { display: none; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg-elev); position: relative; }
.chat-form textarea { flex: 1; resize: none; font: inherit; font-size: 1rem; line-height: 1.4; max-height: 140px; padding: 10px 14px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--bg-sunk); color: var(--ink); }
.chat-form textarea:focus { outline: none; border-color: var(--brand); background: var(--bg-elev); }
.chat-form .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.1rem; }
.chat-count { position: absolute; right: 70px; top: -22px; font-size: .72rem; color: var(--muted); background: var(--bg-elev); padding: 1px 8px; border-radius: 99px; }
.chat-count.warn { color: var(--danger); font-weight: 700; }
.chat-blocked { padding: 14px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-elev); }
@media (max-width: 760px) {
  .chat { height: calc(100vh - 100px); border-radius: 0; margin: -24px -16px 0; border-left: 0; border-right: 0; }
  .msg { max-width: 88%; }
  .msg-more summary { opacity: 1; }
  .author-msg { display: none; }
  .author-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; border: 0; margin: 2px 0 0; padding: 0; font-size: .74rem; }
  .author-facts li:nth-child(n+4) { display: none; }
  .post-author .ava-btn .avatar { width: 40px !important; height: 40px !important; font-size: 15px !important; }
}
@media (max-width: 480px) {
  .logo-text { display: none; }
  .topbar-inner { gap: 10px; }
  .topbar-actions { gap: 6px; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .usermenu-btn { padding: 2px 4px 2px 2px; gap: 2px; }
}

/* =================== BİLDİRİM, TAKİP, SEVİYE, PWA =================== */
.topic-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.follow { display: flex; gap: 6px; margin-top: 10px; }
.follow form { display: inline; }
.follow .chip { cursor: pointer; font: inherit; font-size: .84rem; font-weight: 600; }
.follow .chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.lvl { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin: 3px 2px 0; background: var(--bg-sunk); color: var(--ink-2); }
.lvl-2 { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.lvl-3 { background: color-mix(in srgb, #f59f00 16%, transparent); color: #b07400; }
.lvl-4 { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.lvl-5 { background: linear-gradient(90deg, #f59f00, #e8590c); color: #fff; }
.online-list { display: flex; flex-wrap: wrap; gap: 6px; }
.online-list .online { width: 10px; height: 10px; right: 0; bottom: 0; }
.push-card { margin-bottom: 16px; }
.push-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.push-row > div { flex: 1; min-width: 200px; }
.push-row p { margin: 2px 0 0; }
.push-ico { font-size: 2rem; }
.push-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.email-pref .check { font-size: .86rem; }
.notif .notif-type { position: absolute; right: -4px; bottom: -4px; font-size: .8rem; background: var(--bg-elev); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; box-shadow: var(--shadow); line-height: 1; }
.notif-sys { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); font-size: 1.2rem; line-height: 1; }
.notif-text { white-space: normal; color: var(--ink) !important; }
.dot-unread { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.msg-more { position: relative; }
.msg-pop { min-width: 190px; bottom: calc(100% + 4px); top: auto; }
.msg-me .msg-pop { right: 0; }
.msg-them .msg-pop { left: 0; right: auto; }
.msg-pop form { display: block; }
.msg-recalled .msg-bubble { background: transparent !important; border: 1px dashed var(--line); box-shadow: none; color: var(--muted); }
.draft-note { font-size: .78rem; color: var(--muted); padding: 4px 14px; }
.mention { font-weight: 700; background: var(--brand-soft); padding: 0 5px; border-radius: 6px; text-decoration: none !important; }
.editor { position: relative; }
.mention-box { position: absolute; left: 12px; bottom: 8px; z-index: 20; min-width: 240px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; display: grid; }
.mention-box button { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--ink); font: inherit; }
.mention-box button:hover { background: var(--bg-sunk); }
.mention-box img, .mb-ini { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem; }
.mention-box small { color: var(--muted); font-size: .75rem; }

[hidden] { display: none !important; }
.mainnav a, .logo-text, .topbar .btn { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 761px) { .mainnav { margin-left: 0; } .mainnav a { padding: 8px 8px; } }
@media (max-width: 1024px) and (min-width: 761px) { .mainnav a[target="_blank"], .mainnav a[href$="iletisim"] { display: none; } }
