/* =====================================================================
   bildirdim.com — Frontend Design System (MVP)
   Tek stylesheet · Dark (varsayılan) + Light tema
   Saf CSS, harici bağımlılık yok. Fontlar: Inter + Plus Jakarta Sans

   TÜM GLOBAL DEĞİŞİKLİKLER BURADAN: Renk/ölçü/yarıçap değiştirmek için
   aşağıdaki :root ve [data-theme] bloklarındaki custom property'leri düzenle.
   ===================================================================== */

/* ----------------------------------------------------------------------
   0. YEREL FONTLAR (KVKK: Google Fonts CDN yerine kendi sunucumuzdan)
   Variable font'lar: Inter 400-700, Plus Jakarta Sans 600-800
   latin + latin-ext (Türkçe karakterler latin-ext'te: ğ ş ı İ ç ö ü)
   ---------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/jakarta-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/jakarta-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------------
   1. TEMA DEĞİŞKENLERİ
   ---------------------------------------------------------------------- */
:root {
  /* Tipografi */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);

  /* Ölçüler */
  --container: 1340px;
  --left-w: 280px;
  --right-w: 300px;
  --center-w: 760px;
  --header-h: 72px;
  --sticky-top: 88px;

  /* Yarıçaplar */
  --r-card: 20px;
  --r-btn: 12px;
  --r-pill: 999px;
  --r-sm: 10px;

  /* Gölgeler */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.18);
  --shadow-md: 0 8px 24px rgba(0,0,0,.28);
  --shadow-pop: 0 12px 40px rgba(0,0,0,.40);

  /* Geçişler */
  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t: 180ms cubic-bezier(.4,0,.2,1);
}

/* DARK (varsayılan / primary) */
[data-theme="dark"] {
  --bg:            #0B0D12;
  --surface:       #11151C;
  --surface-2:     #151A23;
  --surface-3:     #1B2230;
  --border:        #252D3A;
  --border-strong: #313B4F;
  --text:          #F3F6FB;
  --text-2:        #C4CBD6;
  --muted:         #94A3B8;
  --accent:        #7C5CFF;
  --accent-hover:  #9276FF;
  --accent-soft:   #201A3A;
  --success:       #34D399;
  --danger:        #FB7185;
  --warning:       #FBBF24;
  --on-accent:     #FFFFFF;
  --glow: radial-gradient(circle at top, rgba(124,92,255,0.08), transparent 30%);
  --card-bg: rgba(17,21,28,0.90);
  --header-bg: rgba(11,13,18,0.80);
  color-scheme: dark;
}

/* LIGHT */
[data-theme="light"] {
  --bg:            #F6F7FA;
  --surface:       #FFFFFF;
  --surface-2:     #F1F3F7;
  --surface-3:     #E8EBF1;
  --border:        #E3E7ED;
  --border-strong: #CBD2DD;
  --text:          #0E1320;
  --text-2:        #3B4456;
  --muted:         #69738A;
  --accent:        #6A43FF;
  --accent-hover:  #5A33EB;
  --accent-soft:   #EFEBFF;
  --success:       #0FA968;
  --danger:        #E11D54;
  --warning:       #C77800;
  --on-accent:     #FFFFFF;
  --glow: radial-gradient(circle at top, rgba(106,67,255,0.07), transparent 32%);
  --card-bg: rgba(255,255,255,0.92);
  --header-bg: rgba(246,247,250,0.82);
  --shadow-sm: 0 1px 2px rgba(16,19,32,.06);
  --shadow-md: 0 8px 24px rgba(16,19,32,.08);
  --shadow-pop: 0 12px 40px rgba(16,19,32,.14);
  color-scheme: light;
}

/* ----------------------------------------------------------------------
   2. RESET & TEMEL
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  transition: background var(--t), color var(--t);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.03em;
  word-spacing: 0.1em; /* PJS'in boşluk karakteri dar (0.17em); normale getirir */
  line-height: 1.25;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select { font: inherit; }

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

.num { font-variant-numeric: tabular-nums; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ----------------------------------------------------------------------
   3. HEADER
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(124,92,255,.35);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.brand-name b { color: var(--accent); font-weight: 800; }

/* Arama */
.search {
  flex: 1;
  max-width: 460px;
  position: relative;
  display: flex;
  align-items: center;
}
.search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--t), background var(--t);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--surface); }

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

/* İkon buton */
.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-btn);
  display: grid; place-items: center;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-btn);
  font-weight: 600; font-size: 14px;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t-fast);
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border-strong); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: var(--danger); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Avatar */
.avatar {
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  flex-shrink: 0;
  user-select: none;
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.md { width: 38px; height: 38px; font-size: 14px; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; border-radius: 24px; }

/* ----------------------------------------------------------------------
   4. LAYOUT — 3 KOLON
   ---------------------------------------------------------------------- */
.layout {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: var(--left-w) minmax(0, 1fr) var(--right-w);
  gap: 24px;
  align-items: start;
}
.col-left  { position: sticky; top: var(--sticky-top); }
.col-right { position: sticky; top: var(--sticky-top); }
.col-center { min-width: 0; max-width: var(--center-w); width: 100%; justify-self: center; }

/* 2 kolon varyantı (sağ sidebar olmayan sayfalar: profil, ayarlar, auth) */
.layout.narrow { grid-template-columns: var(--left-w) minmax(0, 1fr); }
.layout.single { grid-template-columns: minmax(0, 1fr); max-width: 720px; }

.sidebar-scroll {
  max-height: calc(100vh - var(--sticky-top) - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

/* ----------------------------------------------------------------------
   5. KART
   ---------------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }

.feed { display: flex; flex-direction: column; gap: 16px; }

/* Panel başlığı (sidebar blokları) */
.panel { margin-bottom: 16px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--muted);
}
.panel-title .dot { color: var(--accent); }

/* ----------------------------------------------------------------------
   6. SOL SIDEBAR — başlık listesi + sekmeler
   ---------------------------------------------------------------------- */
.tabs {
  display: flex; gap: 4px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.tab {
  flex: 1;
  height: 32px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  transition: background var(--t), color var(--t);
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 8px rgba(124,92,255,.3); }

/* başlık satırı */
.topic-list { display: flex; flex-direction: column; }
.topic-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: var(--surface-2); }
.topic-row:hover .topic-row-title { color: var(--text); }
.topic-row-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--t);
}
.topic-row-count {
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

.load-more {
  width: 100%;
  padding: 13px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--border);
  transition: background var(--t);
}
.load-more:hover { background: var(--surface-2); }

/* ----------------------------------------------------------------------
   7. BAŞLIK TİPİ ROZETİ (soru / sözlük) — MVP'nin imza ayrımı
   ---------------------------------------------------------------------- */
.ttype {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: .01em;
  flex-shrink: 0;
  text-transform: lowercase;
}
.ttype svg { width: 12px; height: 12px; }
/* soru — accent (mor) */
.ttype.soru { color: var(--accent); background: var(--accent-soft); }
/* sözlük — nötr */
.ttype.sozluk { color: var(--text-2); background: var(--surface-3); }

/* ----------------------------------------------------------------------
   8. BİLDİRİ (ENTRY) KARTI — feed + başlık sayfası
   ---------------------------------------------------------------------- */
.entry { padding: 20px; }

/* Feed'de bildirinin bağlı olduğu başlık */
.entry-topic {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.entry-topic h3 {
  font-size: 17px; font-weight: 700;
  transition: color var(--t);
}
.entry-topic:hover h3 { color: var(--accent); }
.entry-topic .badge-count { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Bildiri gövde metni */
.entry-body {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.72;
  word-break: break-word;
}
.entry-body p + p { margin-top: 11px; }
.entry-body a { color: var(--accent); }
.entry-body a:hover { text-decoration: underline; }

/* numaralı bildiri (başlık sayfası) */
.entry-num {
  font-size: 12px; font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.entry-num:hover { color: var(--accent); }

/* Alt bilgi + oylama satırı (YATAY) */
.entry-foot {
  margin-top: 16px;
  display: flex; align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Faydalı oy butonu (MVP'de tek oy tipi) */
.vote {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--t);
}
.vote svg { width: 15px; height: 15px; }
.vote .vote-n { font-variant-numeric: tabular-nums; }
.vote:hover { background: var(--surface-2); color: var(--text-2); border-color: var(--border-strong); }
.vote.faydali.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.foot-spacer { flex: 1 1 auto; }

/* küçük yuvarlak aksiyon (raporla, menü, düzenle, sil) */
.foot-action {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--muted);
  transition: all var(--t);
}
.foot-action svg { width: 16px; height: 16px; }
.foot-action:hover { background: var(--surface-2); color: var(--text-2); }
.foot-action.report:hover { color: var(--danger); }
.foot-action.danger:hover { color: var(--danger); }

/* yazar künyesi (sağ alt) */
.byline {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 4px;
}
.byline-meta { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.byline-name {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: color var(--t);
}
.byline:hover .byline-name { color: var(--accent); }
.byline-date { font-size: 11px; color: var(--muted); }

/* tooltip */
.tip { position: relative; }
.tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 7px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 5px 9px; border-radius: 8px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  box-shadow: var(--shadow-pop);
  z-index: 20;
}
.tip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* başlık altındaki bildiri ayırıcı (liste içi) */
.entry-list .entry { border-bottom: 1px solid var(--border); border-radius: 0; }
.entry-list .entry:first-child { border-top-left-radius: var(--r-card); border-top-right-radius: var(--r-card); }
.entry-list .entry:last-child { border-bottom: none; border-bottom-left-radius: var(--r-card); border-bottom-right-radius: var(--r-card); }

/* ----------------------------------------------------------------------
   9. SAĞ SIDEBAR — son güncellenen başlıklar
   ---------------------------------------------------------------------- */
.trend-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.trend-row:last-child { border-bottom: none; }
.trend-row:hover { background: var(--surface-2); }
.trend-rank {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800;
  color: var(--accent);
  width: 18px; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.trend-body { flex: 1; min-width: 0; }
.trend-title {
  font-size: 14px; font-weight: 600; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t);
}
.trend-row:hover .trend-title { color: var(--text); }
.trend-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.trend-meta b { color: var(--accent); font-weight: 700; }

/* ----------------------------------------------------------------------
   10. BAŞLIK SAYFASI hero
   ---------------------------------------------------------------------- */
.topic-hero { padding: 22px 24px; margin-bottom: 16px; }
.topic-hero-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.topic-hero h1 { font-size: 25px; line-height: 1.2; }
.topic-hero-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
  margin-top: 8px;
}
.topic-hero-meta b { color: var(--text-2); font-weight: 700; }
.topic-hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.topic-hero-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.chip svg { width: 13px; height: 13px; }
.chip.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* ----------------------------------------------------------------------
   11. COMPOSER — bildiri yazma kutusu
   ---------------------------------------------------------------------- */
.composer { padding: 18px 20px; margin-bottom: 16px; }
.composer textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  padding: 13px 15px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color var(--t), background var(--t);
}
.composer textarea::placeholder { color: var(--muted); }
.composer textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.composer-hint { font-size: 12px; color: var(--muted); }
.composer-hint b { color: var(--text-2); }

/* ----------------------------------------------------------------------
   12. FORM (auth + ayarlar) — basit form sistemi
   ---------------------------------------------------------------------- */
.form-card { padding: 28px; }
.form-card.auth { max-width: 420px; margin: 40px auto; }
.form-title { font-size: 22px; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--t), background var(--t);
}
.textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }
.form-foot { margin-top: 24px; }
.form-alt { font-size: 14px; color: var(--muted); text-align: center; margin-top: 18px; }
.form-alt a { color: var(--accent); font-weight: 600; }

/* segmented control (başlık tipi seçimi: soru / sözlük) */
.segment { display: flex; gap: 6px; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label {
  flex: 1; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--surface-2);
  transition: border-color var(--t), background var(--t);
  margin-bottom: 0;
}
.segment label strong { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 7px; }
.segment label strong svg { width: 16px; height: 16px; }
.segment label span { font-size: 12px; color: var(--muted); }
.segment input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.segment input:checked + label strong { color: var(--accent); }
.segment input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* uyarı / bilgi kutusu */
.notice {
  padding: 13px 15px;
  border-radius: var(--r-btn);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
}
.notice.danger { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.notice.success { border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); }
.notice b { color: var(--text); }

/* ----------------------------------------------------------------------
   13. SAYFALAMA
   ---------------------------------------------------------------------- */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 4px;
}
.pager-info { font-size: 13px; color: var(--muted); }
.pager-info b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.pager-nav { display: flex; align-items: center; gap: 4px; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 8px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  font-variant-numeric: tabular-nums;
  transition: all var(--t);
}
.page-btn svg { width: 16px; height: 16px; }
.page-btn:hover:not(:disabled):not(.active) { background: var(--surface-2); border-color: var(--border-strong); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-dots { padding: 0 4px; color: var(--muted); }

/* ----------------------------------------------------------------------
   14. PROFİL SAYFASI
   ---------------------------------------------------------------------- */
.profile-hero { padding: 24px; margin-bottom: 16px; }
.profile-top { display: flex; gap: 18px; align-items: flex-start; }
.profile-id { flex: 1; min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name h1 { font-size: 22px; }
.profile-handle { font-size: 14px; color: var(--muted); margin-top: 2px; }
.profile-bio { color: var(--text-2); font-size: 14px; margin-top: 12px; max-width: 60ch; }

.stats { display: flex; gap: 26px; margin-top: 18px; }
.stat { display: flex; flex-direction: column; gap: 1px; }
.stat b { font-family: var(--font-display); font-size: 19px; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

.profile-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.ptab {
  padding: 13px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t), border-color var(--t);
}
.ptab:hover { color: var(--text-2); }
.ptab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ----------------------------------------------------------------------
   15. SAYFA BAŞLIĞI / BÖLÜM ETİKETİ
   ---------------------------------------------------------------------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.page-head h2 { font-size: 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.crumb svg { width: 13px; height: 13px; opacity: .6; }

/* ----------------------------------------------------------------------
   16. MOBİL ALT NAVİGASYON
   ---------------------------------------------------------------------- */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.mobile-nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-around; }
.mnav {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: var(--muted);
  flex: 1; height: 100%; justify-content: center;
  transition: color var(--t);
}
.mnav svg { width: 22px; height: 22px; }
.mnav.active { color: var(--accent); }
.mnav-fab {
  width: 46px; height: 46px; border-radius: 16px;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(124,92,255,.45);
  margin-top: -2px;
}
.mnav-fab svg { width: 24px; height: 24px; }

/* ----------------------------------------------------------------------
   17. RESPONSIVE
   ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: var(--left-w) minmax(0, 1fr); }
  .col-right { display: none; }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
    padding-bottom: 88px;
  }
  .col-left { display: none; }
  .col-center { max-width: 100%; }
  .mobile-nav { display: block; }
  .search { display: none; }
  .header-inner { padding: 0 16px; }
  .desktop-only { display: none !important; }
}

@media (max-width: 560px) {
  .entry, .card-pad, .topic-hero, .composer, .profile-hero, .form-card { padding: 16px; }
  .topic-hero h1 { font-size: 21px; }
  .stats { gap: 18px; }
  /* byline'ı tamamen gizleme: nick kalsın, sadece tarihi sakla */
  .byline-date { display: none; }
  .entry-body { font-size: 14.5px; line-height: 1.65; }
  .pager { flex-direction: column-reverse; align-items: stretch; }
  .pager-nav { justify-content: center; }
  .form-row { flex-direction: column; gap: 0; }
}

@media (min-width: 901px) { .mobile-only { display: none !important; } }

/* ----------------------------------------------------------------------
   18. YARDIMCI
   ---------------------------------------------------------------------- */
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--border); border: none; margin: 20px 0; }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--border-strong); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty p { font-size: 14px; margin-bottom: 16px; }

/* sol sidebar sekme bloğu ile liste arası boşluk */
.col-left .tabs { margin-bottom: 12px; }
/* "tüm başlıklar" linki ortalı (load-more zaten tam genişlik) */
.load-more { display: block; text-align: center; }
/* sağ sidebar alt notu */
.sidebar-note { font-size: 12px; padding: 0 8px; }
