/* ==========================================================
   Napıyoz? — Arayüz
   Sosyal medya düzeni: sol menü · orta akış · sağ istatistik
   ========================================================== */

/* ── Tema değişkenleri ─────────────────────────────────── */
:root {
  --bg:        #f4f6f8;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --border:    #e3e7ed;
  --border-2:  #eef1f5;
  --text:      #0f172a;
  --muted:     #667085;
  --muted-2:   #98a2b3;

  --brand:     #16a34a;
  --brand-2:   #22c55e;
  --brand-ink: #ffffff;
  --brand-soft:#ecfdf5;

  --orange:    #f97316;
  --purple:    #8b5cf6;
  --pink:      #ec4899;
  --red:       #ef4444;
  --blue:      #3b82f6;

  --shadow:    0 1px 2px rgba(16,24,40,.05);
  --shadow-lg: 0 8px 28px rgba(16,24,40,.10);
  --r:         14px;
  --r-sm:      10px;
  --r-pill:    999px;

  --nav-w:     232px;
  --aside-w:   330px;
  --feed-w:    602px;
}

:root[data-theme="dark"],
html.dark {
  --bg:        #0c0e13;
  --surface:   #14171d;
  --surface-2: #1a1e26;
  --border:    #242a35;
  --border-2:  #1e232c;
  --text:      #e8eaee;
  --muted:     #98a2b3;
  --muted-2:   #6b7480;

  --brand:     #22c55e;
  --brand-2:   #4ade80;
  --brand-ink: #04210f;
  --brand-soft:#0d2a1b;

  --shadow:    0 1px 2px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 34px rgba(0,0,0,.5);
}

/* ── Temel ─────────────────────────────────────────────── */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }

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

/* ── İskelet ───────────────────────────────────────────── */
.shell {
  max-width: calc(var(--nav-w) + var(--feed-w) + var(--aside-w) + 56px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--aside-w);
  gap: 28px;
  padding: 0 16px;
  align-items: start;
}

/* ── Sol menü ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  padding: 8px 12px 20px;
  max-width: 100%;
  overflow: hidden;      /* yüklenen logo menüden taşmasın */
}
.logo span:not(.dot) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo .dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  display: grid; place-items: center;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(34,197,94,.35);
  flex-shrink: 0;
}
.logo .logo-img {
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 1 auto;
  min-width: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-weight: 550;
  font-size: 15.5px;
  transition: background .14s, color .14s;
}
.nav-link .ico { font-size: 18px; width: 22px; text-align: center; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.on { color: var(--text); font-weight: 700; background: var(--surface); box-shadow: var(--shadow); }

.nav-cta {
  margin: 16px 8px 0;
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: var(--r-pill);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(34,197,94,.3);
}
.nav-cta:hover { background: var(--brand-2); }

.nav-foot {
  margin-top: auto;
  padding: 14px 14px 6px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.8;
}
.nav-foot a:hover { color: var(--text); }

.theme-btn {
  margin: 10px 8px 0;
  padding: 9px;
  width: calc(100% - 16px);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--muted);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 550;
}
.theme-btn:hover { background: var(--surface); color: var(--text); }

/* ── Orta sütun ────────────────────────────────────────── */
.main { min-width: 0; padding: 18px 0 90px; }

/* Not: sabit/yapışkan katmanlarda backdrop-filter KULLANMA.
   Chromium'da sayfadaki başka bir backdrop-filter, üstte açılan
   modal/sheet'i saydam render ettiriyor. Opak zemin kullanılıyor. */
.head {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  padding: 2px 0 0;
}
.head h1 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 6px 2px 10px; }

.tabs { display: flex; gap: 2px; }
.tab {
  flex: 1;
  padding: 11px 4px 13px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2.5px solid transparent;
  transition: color .14s;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--brand); }

/* ── Kart ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card-p { padding: 16px 18px; }

.card-title {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 13px;
  display: flex; align-items: center; gap: 7px;
}

/* ── Paylaşım kutusu ───────────────────────────────────── */
.composer { padding: 16px 18px 14px; }

.composer-top { display: flex; gap: 12px; align-items: flex-start; }

.pick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  background: var(--surface-2);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pick-btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.pick-btn span:nth-child(2) { flex: 1; }
.pick-btn .plus { font-size: 19px; color: var(--brand); line-height: 1; }

.picked {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
  border-radius: var(--r-sm);
  font-weight: 650;
  font-size: 15.5px;
}
.picked .em { font-size: 20px; }
.picked .swap {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--brand); font-size: 13px; font-weight: 650; padding: 4px 6px;
}
.picked .swap:hover { text-decoration: underline; }

.note-wrap { margin-top: 12px; position: relative; }
.note {
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  resize: vertical;
  font-size: 15.5px;
  line-height: 1.5;
}
.note::placeholder { color: var(--muted-2); }
.note:focus { outline: none; border-color: var(--brand); background: var(--surface); }

.composer-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border-2);
  flex-wrap: wrap;
}

.name-in {
  width: 150px;
  padding: 8px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 14px;
}
.name-in:focus { outline: none; border-color: var(--brand); }
.name-in:disabled { opacity: .45; }
.name-in.bad {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 10%, var(--surface-2));
  animation: shake .35s;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.check { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.counter { margin-right: auto; font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--orange); }
.counter.over { color: var(--red); font-weight: 700; }

.btn {
  padding: 10px 22px;
  background: var(--brand);
  color: var(--brand-ink);
  border: 0;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .14s, transform .1s;
  box-shadow: 0 3px 12px rgba(34,197,94,.28);
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { background: var(--border); color: var(--muted-2); cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* ── Akış kartı ────────────────────────────────────────── */
.entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px 18px 9px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: border-color .15s;
}
.entry:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.entry.new { animation: pop .45s cubic-bezier(.2,.9,.3,1.1); }

@keyframes pop {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.entry-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }

.avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 750;
  font-size: 17px;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

.who { min-width: 0; }
.who b { font-size: 14.8px; font-weight: 700; display: block; line-height: 1.3; }
.who .when { font-size: 12.5px; color: var(--muted-2); }
.who .anon { color: var(--muted); font-weight: 650; }

.entry-menu {
  margin-right: auto; background: none; border: 0; cursor: pointer;
  color: var(--muted-2); font-size: 17px; padding: 4px 8px; border-radius: 8px; line-height: 1;
}
.entry-menu:hover { background: var(--surface-2); color: var(--text); }

.chip-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px;
  margin-bottom: 9px;
}
/* Aktiviteyi seçen toplam kişi — paylaşımın beğenisiyle karışmasın diye sade */
.chip-total {
  font-size: 12.8px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 10px;
  border-radius: var(--r-pill);
  font-size: 13.8px;
  font-weight: 650;
  background: color-mix(in srgb, var(--chip,#22c55e) 13%, var(--surface));
  color: color-mix(in srgb, var(--chip,#22c55e) 78%, var(--text));
  border: 1px solid color-mix(in srgb, var(--chip,#22c55e) 26%, transparent);
  transition: transform .12s;
}
.chip:hover { transform: translateY(-1px); }
.chip .em { font-size: 15px; }

.note-text {
  font-size: 16.5px;
  line-height: 1.5;
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Aksiyonlar ────────────────────────────────────────── */
.acts {
  display: flex; align-items: center; gap: 2px;
  border-top: 1px solid var(--border-2);
  padding-top: 5px;
  margin: 0 -4px;
}

.act {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px;
  background: none; border: 0;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 13.8px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, color .14s;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.act .em { font-size: 15.5px; line-height: 1; transition: transform .18s; }
.act:hover { background: var(--surface-2); color: var(--text); }
.act:hover .em { transform: scale(1.18); }

.act.echo.on  { color: var(--brand);  background: var(--brand-soft); }
.act.like.on  { color: var(--pink);   background: color-mix(in srgb, var(--pink) 12%, transparent); }
.act.funny.on { color: var(--orange); background: color-mix(in srgb, var(--orange) 13%, transparent); }

.act.bump .em { animation: bump .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45) rotate(-8deg); }
  100% { transform: scale(1); }
}

/* Paylaş ve Şikayet et sağa itilir */
.act-share { margin-left: auto; }

.act-report { color: var(--muted-2); }
.act-report .lbl { font-size: 13px; }
.act-report:hover { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.act-report.done { color: var(--orange); }

/* Sayaç balonu */
.echo-toast {
  display: none;
  margin: 8px 0 2px;
  padding: 9px 13px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: var(--r-sm);
  font-size: 13.8px;
  font-weight: 650;
  color: var(--brand);
}
.echo-toast.show { display: block; animation: pop .35s ease; }

/* ── Sağ sütun ─────────────────────────────────────────── */
.aside { position: sticky; top: 18px; padding: 18px 0 40px; }

.stat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  position: relative;
}
.stat-row + .stat-row { border-top: 1px solid var(--border-2); }
.stat-row .em { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.stat-row .nm {
  flex: 1; min-width: 0;
  font-size: 14.2px; font-weight: 560;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stat-row:hover .nm { color: var(--brand); }
.stat-row .ct {
  font-weight: 800; font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.stat-row .ct.tick { color: var(--brand); }

.bar {
  position: absolute; left: 0; bottom: 3px; height: 2.5px;
  border-radius: 2px; opacity: .5;
  transition: width .6s cubic-bezier(.3,.9,.3,1);
}

.win-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand);
  letter-spacing: .02em;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Günün saçmalığı */
.daily {
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--orange) 13%, var(--surface)),
    var(--surface) 65%);
  border-color: color-mix(in srgb, var(--orange) 30%, var(--border));
}
.daily .big {
  font-size: 17px; font-weight: 750; line-height: 1.4;
  letter-spacing: -.015em; margin: 0 0 14px;
}
.daily .big em { font-style: normal; color: var(--orange); font-weight: 850; }

.btn-daily {
  width: 100%;
  padding: 11px;
  background: var(--orange);
  color: #fff;
  border: 0; border-radius: var(--r-sm);
  font-weight: 700; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 3px 12px rgba(249,115,22,.3);
}
.btn-daily:hover { filter: brightness(1.07); }
.btn-daily:disabled { background: var(--border); color: var(--muted-2); box-shadow: none; cursor: default; }

/* ── Aktivite seçici (modal) ───────────────────────────── */
/* Not: overlay'e backdrop-filter KOYMA — Chromium'da kutu içeriğini
   saydamlaştırıyor. Karartma rgba ile yapılıyor. */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,10,14,.72);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 7vh 16px 16px;
}
.modal.open { display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%; max-width: 540px;
  max-height: 78vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Not: açılır kutulara giriş ANİMASYONU EKLEME.
   Animasyon elemanı ayrı bir compositing katmanına taşıyor; Chromium bu
   katmanı kendi zemini olmadan birleştirebiliyor ve kutu saydam görünüyor.
   Karartma (.modal üzerindeki fade) sorunsuz, kutunun kendisi animasyonsuz. */

.modal-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-head h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }

.search {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 15px;
}
.search:focus { outline: none; border-color: var(--brand); background: var(--surface); }

.cats {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 11px 18px 2px; scrollbar-width: none;
  flex-shrink: 0; align-items: center;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex-shrink: 0;
  padding: 6px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13.2px; font-weight: 600; color: var(--muted);
  cursor: pointer; white-space: nowrap;
}
.cat:hover { color: var(--text); }
.cat.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.act-list { overflow-y: auto; padding: 10px 10px 14px; flex: 1 1 auto; min-height: 0; }

.act-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 11px 13px;
  background: none; border: 0;
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  font-size: 15px;
}
.act-item:hover, .act-item.hl { background: var(--brand-soft); }
.act-item .em { font-size: 19px; flex-shrink: 0; }
.act-item .nm { flex: 1; min-width: 0; font-weight: 550; }
.act-item .ct { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.suggest-box { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; }
.suggest-box p { margin: 0 0 9px; font-size: 13.5px; color: var(--muted); }
.suggest-row { display: flex; gap: 8px; }
.suggest-row input {
  flex: 1; padding: 9px 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); font-size: 14.5px;
}
.suggest-row input:focus { outline: none; border-color: var(--brand); }

/* ── Bildirim ──────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translate(-50%, 90px);
  background: var(--text); color: var(--surface);
  padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 620;
  box-shadow: var(--shadow-lg);
  z-index: 200; opacity: 0;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.1), opacity .3s;
  max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.bad { background: var(--red); color: #fff; }
.toast.good { background: var(--brand); color: var(--brand-ink); }

/* ── Yardımcılar ───────────────────────────────────────── */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .em { font-size: 40px; display: block; margin-bottom: 12px; opacity: .65; }
.empty p { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.empty span { font-size: 14px; }

.more {
  display: block; width: 100%;
  padding: 13px; margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--muted); font-weight: 650; font-size: 14.5px; cursor: pointer;
}
.more:hover { color: var(--text); border-color: var(--brand); }

.mini { font-size: 13px; color: var(--muted); }
.hide { display: none !important; }

.skel {
  background: linear-gradient(90deg, var(--border-2) 25%, var(--surface-2) 50%, var(--border-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ══════════════════════════════════════════════════════════
   İçerik sayfaları (Gereksiz Bilgiler · Kelime Dağarcığı)
   ══════════════════════════════════════════════════════════ */

.page-intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 4px;
}

.searchbar { display: flex; gap: 8px; }
.searchbar .search { flex: 1; }

/* ── Yazı kartı ────────────────────────────────────────── */
.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 17px 19px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .12s;
}
.post-card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  transform: translateY(-1px);
}
.post-card h2 {
  font-size: 18.5px; font-weight: 750; letter-spacing: -.015em;
  margin: 0 0 7px; line-height: 1.35;
}
.post-card p { margin: 0 0 11px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.post-meta {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap;
}
.post-meta .pin { color: var(--orange); font-weight: 700; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
a.tag-pill:hover { color: var(--brand); border-color: var(--brand); }

/* ── Yazı gövdesi ──────────────────────────────────────── */
.article { padding: 20px 22px 24px; }
.article h1 {
  font-size: 27px; font-weight: 820; letter-spacing: -.03em;
  line-height: 1.25; margin: 0 0 12px;
}
.article .body { font-size: 16.5px; line-height: 1.75; }
.article .body p { margin: 0 0 16px; }
.article .body h2 { font-size: 20px; font-weight: 750; margin: 26px 0 10px; letter-spacing: -.02em; }
.article .body h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.article .body ul, .article .body ol { margin: 0 0 16px; padding-left: 22px; }
.article .body li { margin-bottom: 7px; }
.article .body a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.article .body blockquote {
  margin: 0 0 16px; padding: 12px 16px;
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--muted);
}
.article .body strong { font-weight: 750; }
.article .body hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Kelime kartı ──────────────────────────────────────── */
.word-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: border-color .15s;
}
.word-card:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }

.word-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.word-head h2 {
  font-size: 21px; font-weight: 820; letter-spacing: -.025em;
  margin: 0; color: var(--brand);
}
.word-head .pos {
  font-size: 12.5px; font-style: italic; color: var(--muted-2); font-weight: 500;
}

.word-meaning { font-size: 15.5px; line-height: 1.65; margin: 0 0 10px; }

.word-example {
  font-size: 14.5px; line-height: 1.6;
  color: var(--muted);
  font-style: italic;
  padding: 9px 13px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  border-left: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  margin: 0 0 11px;
}

.word-foot {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--border-2);
  padding-top: 5px; margin: 0 -4px;
}
.word-foot .when { margin-left: auto; font-size: 12.5px; color: var(--muted-2); padding-right: 8px; }

/* ── Ziyaretçi katkısı ─────────────────────────────────── */
.credit { font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.credit b { color: var(--brand); font-weight: 650; }
.word-foot .credit { margin-left: 10px; }

.contrib { margin-bottom: 14px; overflow: hidden; }
.contrib.open { border-color: color-mix(in srgb, var(--brand) 34%, var(--border)); }

.contrib-h {
  display: flex; align-items: center; gap: 13px;
  width: 100%; padding: 15px 17px;
  background: none; border: 0; cursor: pointer;
  text-align: left; color: inherit; font: inherit;
}
.contrib-h:hover { background: var(--brand-soft); }
.contrib-h .em { font-size: 21px; flex-shrink: 0; }
.contrib-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.contrib-t b { font-size: 15px; font-weight: 650; }
.contrib-t span { font-size: 13px; color: var(--muted); }
.contrib-x {
  flex-shrink: 0; font-size: 21px; color: var(--muted-2);
  transition: transform .18s;
}
.contrib.open .contrib-x { transform: rotate(45deg); }

.contrib-f { padding: 4px 17px 17px; border-top: 1px solid var(--border); }
.contrib-f .fld { margin-top: 13px; }
.contrib-f label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.contrib-f label .opt { font-weight: 400; color: var(--muted-2); }
.contrib-f input[type=text], .contrib-f textarea {
  width: 100%; padding: 10px 13px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font: inherit; font-size: 14.5px;
}
.contrib-f textarea { resize: vertical; line-height: 1.5; }
.contrib-f input:focus, .contrib-f textarea:focus { outline: none; border-color: var(--brand); }
.contrib-f .bad { border-color: var(--red); }

.contrib-foot { display: flex; align-items: flex-end; gap: 11px; flex-wrap: wrap; }
.contrib-foot .fld { flex: 1; min-width: 180px; }
.contrib-foot .btn { flex-shrink: 0; }

.contrib-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted-2); }

.contrib-msg {
  margin-top: 12px; padding: 11px 14px;
  border-radius: var(--r-sm); font-size: 14px;
}
.contrib-msg.good { background: var(--brand-soft); color: var(--brand); }
.contrib-msg.bad  { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red); }

/* ── Sıralama sekmeleri ────────────────────────────────── */
.sortbar { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.sortbar a {
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px; font-weight: 650; color: var(--muted);
}
.sortbar a:hover { color: var(--text); }
.sortbar a.on {
  background: var(--brand); border-color: var(--brand); color: var(--brand-ink);
  box-shadow: 0 3px 10px rgba(34,197,94,.28);
}

/* ── Sayfalama ─────────────────────────────────────────── */
.pages { display: flex; gap: 6px; justify-content: center; padding: 18px 12px 6px; flex-wrap: wrap; }
.pages a, .pages span {
  min-width: 38px; text-align: center;
  padding: 8px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 650; color: var(--muted);
}
.pages a:hover { color: var(--text); border-color: var(--brand); }
.pages .cur { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ── İletişim ──────────────────────────────────────────── */
.contact-row {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 0; border-top: 1px solid var(--border-2);
}
.contact-row:first-of-type { border-top: 0; padding-top: 4px; }
.contact-row .ico { font-size: 20px; line-height: 1.3; flex-shrink: 0; }
.contact-row b { display: block; font-size: 13px; color: var(--muted); font-weight: 650; margin-bottom: 2px; }
.contact-row .v { font-size: 15.5px; line-height: 1.5; word-break: break-word; }
.contact-row a.v:hover { color: var(--brand); }

.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.socials a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 620;
}
.socials a:hover { border-color: var(--brand); color: var(--brand); }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; font-weight: 650;
  color: var(--muted); margin-bottom: 6px;
}
.field .search, .field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 15.5px;
  font-family: inherit;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field .search:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
}
.field .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 5px; }

.notice {
  padding: 13px 16px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; margin-bottom: 16px;
  display: flex; gap: 9px; align-items: flex-start; line-height: 1.5;
}
.notice.good { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent); color: var(--brand); }
.notice.bad  { background: color-mix(in srgb, var(--red) 11%, transparent); border: 1px solid color-mix(in srgb, var(--red) 32%, transparent); color: var(--red); }

/* ── Mobil üst bar / alt sekme ─────────────────────────── */
.topbar, .tabbar { display: none; }

/* ══════════════════════════════════════════════════════════
   Açılır katman (modal / sheet) açıkken sabit katmanlar kapatılır.

   Chromium, fixed/sticky bir elemanla çakışan üst katmanı kendi
   zemini olmadan birleştiriyor; modal içi saydam görünüyor.
   Sayfa zaten kilitli ve örtülü olduğu için bunları statik yapmanın
   görsel bir maliyeti yok.
   ══════════════════════════════════════════════════════════ */
body.overlay-open .tabbar,
body.overlay-open .page-foot { display: none !important; }
body.overlay-open .head,
body.overlay-open .topbar,
body.overlay-open .nav,
body.overlay-open .aside { position: static !important; }

/* ══════════════════════════════════════════════════════════
   Paylaşım penceresi
   ══════════════════════════════════════════════════════════ */
.share-box { max-width: 430px; }

.share-body { padding: 16px 18px 4px; overflow-y: auto; }

.share-preview {
  display: flex; justify-content: center;
  margin-bottom: 16px;
}
.share-preview img,
.share-preview .skel {
  max-height: 34vh;
  height: 230px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}
.share-preview .skel { width: 130px; }

.share-main {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-bottom: 8px;
}
.share-main:disabled { box-shadow: none; }

.share-hint {
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.5;
  min-height: 18px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.share-app {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 650;
  color: var(--muted);
  transition: border-color .14s, color .14s, transform .12s;
}
.share-app span {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
  color: #fff;
}
.share-app:hover { color: var(--text); transform: translateY(-2px); }
.share-app:not([href]) { opacity: .4; pointer-events: none; }

.share-app.wa span { background: #25d366; }
.share-app.x  span { background: #000; border: 1px solid var(--border); }
.share-app.fb span { background: #1877f2; }
.share-app.tg span { background: #2aabee; }

.share-app.wa:hover { border-color: #25d366; }
.share-app.x:hover  { border-color: var(--text); }
.share-app.fb:hover { border-color: #1877f2; }
.share-app.tg:hover { border-color: #2aabee; }

.share-row { display: flex; gap: 8px; }
.share-row .btn { flex: 1; justify-content: center; padding: 11px; font-size: 13.5px; }

@media (max-width: 720px) {
  .share-box { max-width: none; }
  .share-preview img, .share-preview .skel { height: 30vh; max-height: 30vh; max-width: 150px; }
  .share-preview .skel { width: 150px; }
}

/* ── Sağ sütun mini kartları ───────────────────────────── */
.mini-word {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 0;
}
.mini-word + .mini-word { border-top: 1px solid var(--border-2); }
.mini-word > a { flex: 1; min-width: 0; }
.mini-word b {
  display: block; font-size: 14.5px; font-weight: 750;
  color: var(--brand); letter-spacing: -.01em; margin-bottom: 2px;
}
.mini-word span {
  display: block; font-size: 12.8px; line-height: 1.5; color: var(--muted);
}
.mini-word > a:hover span { color: var(--text); }
.mini-word .act { padding: 5px 7px; flex-shrink: 0; }
.mini-word .act .em { font-size: 14px; }

.mini-post {
  display: block; padding: 10px 0;
}
.mini-post + .mini-post { border-top: 1px solid var(--border-2); }
.mini-post .t {
  display: block; font-size: 14px; font-weight: 600;
  line-height: 1.45; margin-bottom: 3px;
}
.mini-post:hover .t { color: var(--brand); }
.mini-post .v { font-size: 12px; color: var(--muted-2); }

/* ── Sayfa alt bilgisi (mobilde sol menü gizliyken) ────── */
.page-foot { display: none; }

/* ══════════════════════════════════════════════════════════
   Duyarlı
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  :root { --nav-w: 76px; }
  .logo { justify-content: center; padding: 8px 0 20px; }
  .logo span:not(.dot) { display: none; }
  .logo .logo-img { max-width: 52px; }
  .nav-link { justify-content: center; padding: 13px; }
  .nav-link span:not(.ico) { display: none; }
  .nav-cta { font-size: 0; padding: 13px; }
  .nav-cta::after { content: "✏️"; font-size: 17px; }
  .nav-foot, .theme-btn span { display: none; }
  .theme-btn::after { content: "🌓"; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .aside { display: none; }
}

@media (max-width: 720px) {
  /* Tek sütun: akış önce, istatistik altında (X/Threads mobil düzeni) */
  .shell { display: block; padding: 0; }
  .nav { display: none; }
  .main { padding: 0 0 10px; }

  .aside {
    display: block;
    position: static;
    padding: 0 0 4px;
  }

  .topbar {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 30;
    padding: 11px 15px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .topbar .logo { padding: 0; font-size: 18px; min-width: 0; }
  .topbar .logo span:not(.dot) { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .logo .logo-img { height: 27px; max-width: 130px; }
  .topbar .theme-btn {
    margin: 0 0 0 auto; width: auto; padding: 7px 11px; font-size: 15px; border-radius: 10px;
  }
  .topbar .theme-btn span { display: none; }
  .topbar .theme-btn::after { content: "🌓"; }

  .head { top: 51px; padding: 0 12px; margin-bottom: 12px; }
  .head h1 { display: none; }

  .card, .entry { border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 9px; box-shadow: none; }
  .composer { padding: 14px 15px 12px; }
  .entry { padding: 14px 15px 8px; }

  .name-in { width: 120px; }
  .note-text { font-size: 16px; }

  /* Dar ekranda aksiyon satırı tek satırda kalsın */
  .acts { gap: 0; }
  .act { padding: 8px 9px; }
  .act-report .lbl { display: none; }   /* bayrak ikonu yeterli */

  /* Yatay kaydırılabilir alt bar — bölüm sayısı arttıkça sığar */
  .tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    gap: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabbar::-webkit-scrollbar { display: none; }

  .tabbar a {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 5px 12px;
    color: var(--muted-2); font-size: 10.5px; font-weight: 620;
    white-space: nowrap;
  }
  .tabbar a .ico { font-size: 20px; line-height: 1; }
  .tabbar a.on { color: var(--brand); }
  .tabbar .mid .ico {
    background: var(--brand); color: var(--brand-ink);
    width: 44px; height: 30px; border-radius: var(--r-pill);
    display: grid; place-items: center; font-size: 17px;
    box-shadow: 0 3px 12px rgba(34,197,94,.4);
    margin-top: -3px;
  }

  /* Alt bilgi bağlantıları */
  .page-foot {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 4px 10px;
    padding: 22px 18px 20px;
    font-size: 13px; color: var(--muted-2);
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .page-foot a { color: var(--muted); font-weight: 600; }
  .page-foot a:active { color: var(--brand); }
  .page-foot .brand-line { width: 100%; text-align: center; opacity: .75; margin-top: 2px; }
  body { padding-bottom: 64px; }   /* sabit alt bar için yer */

  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-width: none; border-radius: 20px 20px 0 0; max-height: 88vh; }
  .toast { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
