/* ==========================================================
   HABERLER — kişisel okuma & gelişim akışı
   Editoryal koyu tema: Newsreader (serif) + Inter (sans)
   ========================================================== */

:root {
  --bg: #0a0c10;
  --surface: #10131a;
  --surface-2: #151a23;
  --surface-3: #1c222d;
  --line: #222a36;
  --line-soft: #1a212b;
  --text: #eceef1;
  --text-2: #c3cad3;
  --muted: #8b94a1;
  --faint: #626c7a;
  --accent: #d9a95c;
  --accent-soft: rgba(217, 169, 92, 0.12);
  --accent-line: rgba(217, 169, 92, 0.35);
  --blue: #7aa7f7;
  --green: #5cb96f;
  --red: #e0596b;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 28px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; min-width: 0; }

html { scrollbar-color: #2a3340 var(--bg); }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(217,169,92,0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(217,169,92,0.28); }

.hidden { display: none !important; }

/* ---------- Üst bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 30;
  flex-wrap: wrap;
}

.brand { cursor: pointer; display: flex; align-items: baseline; gap: 10px; user-select: none; }
.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.2px;
}
.brand h1::after { content: '.'; color: var(--accent); }
.brand .tagline { font-size: 12px; color: var(--faint); letter-spacing: 0.2px; }

.stats { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.stats span {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.stats b { color: var(--text-2); font-weight: 600; margin-left: 3px; }

.actions { display: flex; gap: 8px; }

/* ---------- Butonlar ---------- */
.btn {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  transition: all 0.16s ease;
}
.btn:hover { background: var(--surface-3); color: var(--text); border-color: #2e3846; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #17120a;
  font-weight: 600;
}
.btn-primary:hover { background: #e6b76d; border-color: #e6b76d; color: #17120a; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }

/* ---------- Günün seçkisi ---------- */
.today {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 22px 26px 16px;
  background: linear-gradient(160deg, rgba(217,169,92,0.07), var(--surface) 55%);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.today-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.today-head strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.today-progress { color: var(--muted); font-size: 12px; }
.streak {
  margin-left: auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.today-items { display: flex; flex-direction: column; }
.today-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  cursor: pointer;
  font-size: 14.5px;
  border-top: 1px solid var(--line-soft);
  transition: padding-left 0.15s ease;
}
.today-item:hover { padding-left: 12px; }
.today-item:hover .today-title { color: var(--accent); }
.today-item.done { opacity: 0.42; }
.today-item.done .today-title { text-decoration: line-through; text-decoration-color: var(--faint); }
.today-check { color: var(--green); width: 18px; flex-shrink: 0; font-size: 13px; }
.today-title {
  flex: 1; min-width: 0;
  font-family: var(--serif);
  font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.15s ease;
}
.today-meta {
  color: var(--faint);
  font-size: 10.5px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ---------- Kategori & filtreler ---------- */
.catbar {
  display: flex;
  gap: 6px;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 0 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar::-webkit-scrollbar { display: none; }
.cat {
  white-space: nowrap;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.cat:hover { color: var(--text-2); border-color: #303a49; }
.cat.active { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.cat .count { opacity: 0.65; margin-left: 5px; font-size: 10.5px; }

.filters {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin: 10px auto 0;
  padding: 0 2px;
  font-size: 12.5px;
  color: var(--muted);
}
.chk { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.chk input { accent-color: var(--accent); }
.hint { margin-left: auto; color: var(--faint); font-size: 12px; }

.typebar {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px;
}
.type-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12.5px;
  font-family: var(--sans);
  font-weight: 500;
  transition: all 0.15s ease;
}
.type-btn.active { background: var(--surface-3); color: var(--text); }

/* ---------- Akış ---------- */
.feed {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.18s ease;
}
.item:hover {
  border-color: #2e3846;
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.item:hover h3 { color: var(--accent); }
.item.read { opacity: 0.45; }
.item.kesin { border-left: 3px solid var(--accent); }

.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.item-thumb {
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--surface-2);
}

.item-top { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); flex-wrap: wrap; }
.item h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.1px;
  transition: color 0.15s ease;
}
.item .snippet {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-foot { display: flex; gap: 8px; align-items: center; }
.item-foot .liked-flag { color: var(--red); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }

/* Öne çıkan (ilk) kart */
.item.featured { flex-direction: column; padding: 0; overflow: hidden; }
.item.featured .item-thumb {
  width: 100%;
  height: 300px;
  border-radius: 0;
  order: -1;
}
.item.featured .item-main { padding: 22px 26px 24px; gap: 9px; }
.item.featured h3 { font-size: 28px; line-height: 1.22; }
.item.featured .snippet { font-size: 15px; -webkit-line-clamp: 3; }
.item.featured.kesin { border-left: 1px solid var(--line-soft); border-top: 3px solid var(--accent); }

/* ---------- Rozetler ---------- */
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.cat-badge { color: var(--blue); border-color: rgba(122,167,247,0.25); background: rgba(122,167,247,0.08); }
.badge.tur-badge { color: var(--green); border-color: rgba(92,185,111,0.25); background: rgba(92,185,111,0.08); }
.badge.kesin-badge { color: #17120a; background: var(--accent); border-color: var(--accent); }
.onem { letter-spacing: 2.5px; color: var(--accent); font-size: 9px; }
.src { margin-left: auto; letter-spacing: 0.3px; }

.empty { text-align: center; color: var(--faint); padding: 70px 20px; font-size: 14px; }

/* ---------- Detay (makale) ---------- */
.detail-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 24px 120px;
}
.back-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--sans);
  padding: 6px 0;
  margin-bottom: 16px;
  transition: color 0.15s ease;
}
.back-btn:hover { color: var(--accent); }

.detail-hero {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.detail-hero.gradient {
  height: 130px;
  background:
    radial-gradient(400px 130px at 20% 0%, rgba(217,169,92,0.16), transparent),
    linear-gradient(135deg, var(--surface-3), var(--surface) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

.detail-top { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); flex-wrap: wrap; margin-bottom: 14px; }

.detail-wrap h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0.1px;
  margin: 0 0 16px;
}
.lead {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
  font-style: italic;
  margin: 0 0 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.detay { margin: 18px 0 6px; }
.detay p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 18px;
}
.detay ul, .detay ol { margin: 0 0 18px; padding-left: 26px; }
.detay li { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--text-2); margin: 6px 0; }
.detay-h {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--text);
  margin: 30px 0 12px;
}
h4.detay-h { font-size: 19px; }

.detay strong, .lead strong, .block strong, .fb-block strong, .msg strong, .snippet strong { color: var(--text); font-weight: 600; }
.detay em { color: var(--text-2); }
.detay code, .block code, .fb-block code, .msg code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.82em;
  font-family: Consolas, 'Courier New', monospace;
  color: var(--blue);
  font-style: normal;
}

/* Bilgi blokları */
.block {
  margin: 18px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
}
.block .lbl {
  color: var(--blue);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}
.block.is { border-left-color: var(--green); }
.block.is .lbl { color: var(--green); }

.soru {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.soru .lbl {
  font-family: var(--sans);
  color: var(--accent);
  font-size: 10px;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.tag {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 3px 11px;
  border-radius: 999px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.a-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12.5px;
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.a-btn:hover { color: var(--text); border-color: #2e3846; background: var(--surface-2); }
.a-btn.on { color: var(--red); border-color: rgba(224,89,107,0.4); background: rgba(224,89,107,0.07); }
.a-btn.read-on { color: var(--green); border-color: rgba(92,185,111,0.4); background: rgba(92,185,111,0.07); }

/* ---------- Anlatma koçu ---------- */
.coach {
  margin-top: 34px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.coach h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
}
.coach h3::before {
  content: 'Atölye';
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.coach-hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.6; }
.coach-form { display: flex; flex-direction: column; gap: 10px; }
.coach-form textarea {
  min-height: 96px;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  transition: border-color 0.15s ease;
}
.coach-form textarea:focus { outline: none; border-color: var(--accent-line); }
.coach-form .btn { align-self: flex-start; }
.coach-loading { color: var(--faint); font-style: italic; margin-top: 12px; font-size: 13px; }

.fb { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.fb-score { font-size: 14px; color: var(--muted); }
.fb-score b { font-size: 26px; color: var(--accent); font-family: var(--serif); margin: 0 2px; }
.fb-max { color: var(--faint); font-size: 12px; }
.fb-block {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.fb-block ul { margin: 4px 0 0; padding-left: 18px; }
.fb-block li { margin: 4px 0; }
.fb-lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}
.fb-block.good { border-left: 3px solid var(--green); }
.fb-block.good .fb-lbl { color: var(--green); }
.fb-block.bad { border-left: 3px solid var(--red); }
.fb-block.bad .fb-lbl { color: var(--red); }
.fb-block.tip { border-left: 3px solid var(--blue); }
.fb-block.tip .fb-lbl { color: var(--blue); }
.fb-block.ex { border-left: 3px solid var(--faint); font-style: italic; font-family: var(--serif); font-size: 15px; }
.fb-block.ufuk, .fb-block.vizyon {
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-family: var(--serif);
  font-size: 15px;
}
.fb-block.ufuk .fb-lbl, .fb-block.vizyon .fb-lbl { color: var(--accent); font-family: var(--sans); }

/* ---------- Tartışma ---------- */
.discuss { margin-top: 30px; }
.discuss h3 {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin: 0 0 14px;
}
.discuss-body { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.discuss-form { display: flex; gap: 8px; }
.discuss-form textarea {
  flex: 1;
  resize: none;
  min-height: 48px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
}
.discuss-form textarea:focus { outline: none; border-color: var(--accent-line); }

.msg {
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.msg.user { background: var(--surface-3); color: var(--text); align-self: flex-end; max-width: 85%; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--surface); border: 1px solid var(--line-soft); color: var(--text-2); align-self: flex-start; max-width: 95%; border-bottom-left-radius: 4px; }
.msg.think { color: var(--faint); font-style: italic; background: transparent; border: none; }

/* ---------- Sohbet çekmecesi ---------- */
.chat {
  position: fixed;
  top: 0; right: 0;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh; /* mobil: klavye/adres çubuğu açılınca gerçek görünür yükseklik */
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
body.chat-open { overflow: hidden; } /* panel açıkken arka sayfa kaymasın */
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.chat-head strong { font-family: var(--serif); font-size: 17px; }
.chat-ctx { font-size: 12px; color: var(--faint); margin-top: 4px; max-width: 300px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.chat-form { display: flex; gap: 8px; padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); flex-shrink: 0; }
.chat-form textarea {
  flex: 1;
  resize: none;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
}
.chat-form textarea:focus { outline: none; border-color: var(--accent-line); }

/* ---------- Yönetim modalı ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 640px;
  max-width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-head strong { font-family: var(--serif); font-size: 19px; }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.mng { margin-bottom: 30px; }
.mng h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.mng h3 .sub { color: var(--faint); font-weight: 400; font-size: 11.5px; margin-left: 6px; }

.cat-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.cat-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
}
.cat-chip .src { font-size: 9.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.5px; }
.cat-chip .rm { cursor: pointer; color: var(--faint); border: none; background: none; font-size: 15px; padding: 0; line-height: 1; }
.cat-chip .rm:hover { color: var(--red); }

.row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.row input {
  flex: 1;
  min-width: 170px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 13.5px;
  font-family: var(--sans);
}
.row input:focus { outline: none; border-color: var(--accent-line); }

.suggestions { display: flex; flex-direction: column; gap: 8px; }
.suggestion {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
}
.suggestion .txt { flex: 1; }
.suggestion .txt b { color: var(--text); font-weight: 600; }
.suggestion .desc { color: var(--faint); font-size: 12px; margin-top: 2px; }

.learned {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  margin-bottom: 12px;
  color: var(--text-2);
  min-height: 40px;
}
.learned.empty-note { color: var(--faint); }

.mem-list { display: flex; flex-direction: column; gap: 6px; }
.mem-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 13px;
  color: var(--text-2);
}
.mem-item .rm { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.mem-item .rm:hover { color: var(--red); }
.mem-empty { color: var(--faint); font-size: 12.5px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  z-index: 80;
  font-size: 13px;
  box-shadow: var(--shadow);
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 12px 14px; }
  .stats { display: none; }
  .actions { width: 100%; flex-wrap: wrap; }
  .actions .btn { flex: 1 1 auto; padding: 7px 8px; font-size: 12px; text-align: center; }
  .brand .tagline { display: none; }
  .today { margin: 14px 12px 0; padding: 16px 16px 10px; }
  .today-meta { display: none; }
  .catbar, .filters, .feed { padding-left: 12px; padding-right: 12px; }
  .filters { flex-wrap: wrap; gap: 10px; }
  .typebar { flex: 1 1 100%; justify-content: center; }
  .hint { display: none; }
  .item { padding: 14px; gap: 12px; }
  .item h3 { font-size: 17px; overflow-wrap: break-word; }
  .item-thumb { width: 72px; height: 72px; }
  .item.featured .item-thumb { width: 100%; height: 190px; }
  .item.featured h3 { font-size: 22px; }
  .item.featured .item-main { padding: 16px 16px 18px; }
  .item-top .src { margin-left: 0; width: 100%; }
  .detail-wrap { padding: 16px 14px 100px; }
  .detail-wrap h1 { font-size: 26px; overflow-wrap: break-word; }
  .lead { font-size: 17px; }
  .detay p, .detay li { font-size: 16.5px; overflow-wrap: break-word; }
  .detail-actions { gap: 6px; }
  .a-btn { flex: 1 1 auto; text-align: center; padding: 8px 8px; font-size: 12px; }
  .chat { width: 100vw; max-width: 100vw; border-left: none; }
  .chat-head { padding: 14px 16px; }
  .chat-body { padding: 14px; }
  .msg { font-size: 15px; max-width: 92%; }
  .chat-form { gap: 6px; }
  .chat-form .btn { padding: 10px 16px; }
  /* iOS: 16px altı input odaklanınca sayfayı zoom'lar — engelle */
  .chat-form textarea, .discuss-form textarea, .coach-form textarea, .row input, #cat-name, #teach-input {
    font-size: 16px;
  }
  .modal { padding: 10px; align-items: flex-start; }
  .modal-box { max-height: 94vh; margin-top: 10px; }
}
