/* Forum sayfasi, dikey telefon (360-430 px). Sade surum: Claude Design tasarimi gelince Frontend yeniden
   giydirir. Renkler oyunun koyu kahve/altin havasinda; yazi sistem fontu (CSP disaridan font almaz).
   Satir ici stil yok (CSP); boyut degisimi yalniz JS'ten element.style ile. */

:root {
  --bg: #120d09;
  --surface: #1c1510;
  --surface-2: #261c14;
  --border: #3b2c1f;
  --text: #efe5d3;
  --muted: #a8977f;
  --gold: #d4a64a;
  --gold-strong: #f0c76a;
  --on-gold: #1a1108;
  --danger: #d9634f;
  --warn: #caa040;
  --online: #6cc070;
  --mod: #9cc1f5;
  --focus: #f0c76a;
  --radius: 12px;
  --tap: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
}

body.sheet-open { overflow: hidden; }

a { color: var(--gold-strong); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; user-select: all; -webkit-user-select: all; }
.small { font-size: 14px; }

/* --- Ust cubuk --- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  min-height: calc(52px + var(--safe-top));
  padding: var(--safe-top) calc(6px + var(--safe-right)) 0 calc(6px + var(--safe-left));
  background: rgba(18, 13, 9, 0.96);
  border-bottom: 1px solid var(--border);
}
.topbar-title {
  flex: 1; min-width: 0; padding: 0 6px;
  font-size: 18px; font-weight: 650; color: var(--gold-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-title:focus { outline: none; }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
/* Oturumsuz ekranda yalniz kapat dugmesi kalir. */
body.gated .gate-hide { display: none; }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text);
  cursor: pointer; text-decoration: none;
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn[hidden] { display: none; }
.icon { width: 22px; height: 22px; }
.bell-count {
  position: absolute; top: 5px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.bell-count[hidden] { display: none; }

/* --- Ekran govdesi --- */
.view {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 640px; margin: 0 auto;
  padding: 12px calc(12px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(12px + var(--safe-left));
}
.view:focus { outline: none; }
.view-topic, .view-supportTicket { padding-bottom: 0; }

.state { padding: 24px 8px; text-align: center; color: var(--muted); }
.state.error { color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 12px; }

.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.card-title { font-size: 16px; color: var(--gold); }
.card h3 { font-size: 15px; color: var(--gold); }
.gate { margin-top: 24px; text-align: center; align-items: center; gap: 14px; }
.gate h2 { font-size: 20px; color: var(--gold-strong); }
.intro { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.intro h2 { font-size: 22px; color: var(--gold-strong); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.form { gap: 8px; }

.section-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.section-head.end { justify-content: flex-end; }
.section-head:empty { display: none; }
.section-text { flex: 1; font-size: 14px; }
.more { display: flex; justify-content: center; }
.more:empty { display: none; }

/* --- Dugmeler --- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:active { filter: brightness(1.15); }
.button:disabled { opacity: 0.55; cursor: default; }
.button.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.button.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.button.wide { width: 100%; }
.button.active { border-color: var(--gold); color: var(--gold-strong); }
.button.load-more { width: 100%; }
.button .icon { width: 18px; height: 18px; }
.button-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.link { color: var(--gold-strong); }

/* --- Listeler --- */
.list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.list:empty { display: none; }
.list.compact { border: 0; background: transparent; }
.list > .state { border: 0; }
.row {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; width: 100%; padding: 12px 14px;
  border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text);
  font: inherit; text-align: left; text-decoration: none;
}
.row:last-child { border-bottom: 0; }
a.row:active, button.row:active { background: var(--surface-2); }
.row.muted { color: var(--muted); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 600; }
.row-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; color: var(--muted); font-size: 14px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chevron { color: var(--muted); font-size: 22px; }
.sep { color: var(--border); }
.topic-row .row-title { font-size: 16px; }
.list.compact .row { padding: 10px 0; }

.notif-row { align-items: flex-start; cursor: pointer; }
.notif-row .dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: transparent; }
.notif-row.unread .dot { background: var(--gold); }
.notif-row:not(.unread) .row-title { font-weight: 500; color: var(--muted); }
.link-row { padding: 10px 0; min-height: var(--tap); border: 0; }

/* --- Isaretler, yazar, rozet --- */
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.chip-staff { border-color: var(--gold); color: var(--gold-strong); }
.chip-pin { border-color: #7a6a3a; color: #e8d39a; }
.chip-lock { color: var(--muted); }
.chip-warn { border-color: var(--warn); color: var(--warn); }
.chip-mod { border-color: #4f78b8; color: var(--mod); }

.author { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.author .nickname { font-weight: 650; color: var(--text); }
.author.compact .nickname { font-weight: 500; color: var(--muted); }
/* Profil baglantisi duz ad gibi gorunur; dikey dolgu dokunma alanini satiri buyutmeden genisletir. */
.author a.nickname { text-decoration: none; padding: 6px 0; margin: -6px 0; }
.author a.nickname:active { color: var(--gold-strong); }
.badge-line { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.empire-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); }
.empire-red { background: #d0453a; }
.empire-yellow { background: #e0b928; }
.empire-blue { background: #3d82d6; }
.post-head .author { flex-direction: column; align-items: flex-start; gap: 1px; }
.post-head .author .nickname + .chip { margin-top: 2px; }

/* --- Konu --- */
.topic-head { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 4px; }
.topic-title { font-size: 20px; color: var(--gold-strong); }
.topic-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }

.posts { display: flex; flex-direction: column; gap: 10px; }
.post {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.post.official { border-color: #6b5326; }
.post.mine { background: #211910; }
.post-placeholder { padding: 10px 14px; gap: 6px; background: transparent; border-style: dashed; font-size: 14px; }
.post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.post-side { display: flex; align-items: center; gap: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.post-menu { width: 40px; height: 40px; margin: -8px -10px -8px 0; }
.post-body { white-space: pre-wrap; word-break: break-word; }
.post-foot { display: flex; gap: 8px; color: var(--muted); font-size: 12px; }
.post-placeholder .post-foot { justify-content: flex-end; }

.banner { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; }
.banner .button { align-self: flex-start; }
.banner-warn { border-color: #6d5a26; }
.banner-danger { border-color: var(--danger); }
.banner-muted { color: var(--muted); }

/* Cevap kutusu ekranin altina yapisir; klavye acilinca WebView gorunur alani kucultur, kutu ustunde kalir. */
.reply-area {
  position: sticky; bottom: 0; z-index: 5;
  margin: 0 calc(-12px - var(--safe-right)) 0 calc(-12px - var(--safe-left));
  padding: 8px calc(12px + var(--safe-right)) calc(8px + var(--safe-bottom)) calc(12px + var(--safe-left));
  background: rgba(18, 13, 9, 0.97); border-top: 1px solid var(--border);
}
.reply-area:empty { display: none; }
.reply-bar { display: flex; flex-direction: column; gap: 4px; }
.reply-bar.disabled .banner { background: transparent; }
.reply-row { display: flex; align-items: flex-end; gap: 8px; }
.reply-input { flex: 1; min-height: var(--tap); max-height: 200px; resize: none; }
.reply-foot { display: flex; justify-content: flex-end; }
.send { width: var(--tap); padding: 0; flex: none; }
.counter { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); font-weight: 700; }

.edit-form { display: flex; flex-direction: column; gap: 8px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* --- Formlar --- */
.label { font-size: 14px; font-weight: 600; color: var(--muted); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.input {
  width: 100%; min-height: var(--tap); padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: #0d0906; color: var(--text);
  font: inherit; font-size: 16px; /* 16 px alti iOS'ta odakta yakinlastirir */
}
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(212, 166, 74, 0.35); }
.input:disabled { opacity: 0.6; }
textarea.input { resize: vertical; line-height: 1.4; }
select.input { appearance: none; -webkit-appearance: none; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.inline-form { display: flex; flex-direction: column; gap: 6px; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.form-error[hidden] { display: none; }

.choices { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.choice, .check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.choice input, .check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--gold); }
.choice-text { display: flex; align-items: center; gap: 6px; }
.check { padding-top: 4px; font-weight: 600; }

/* Anahtar: gercek checkbox gorunmez ama odaklanir ve ekran okuyucu "switch" olarak okur. */
.switch-row { display: flex; flex-direction: column; gap: 4px; }
.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); transition: background 0.15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.15s; }
.switch input:checked + .switch-ui { background: var(--gold); border-color: var(--gold); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); background: var(--on-gold); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + .switch-ui { opacity: 0.6; }

/* --- Kurallar --- */
.rules { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.rules-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.rules h3 { margin-top: 4px; }
.rules-box { max-height: 40vh; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #0d0906; }

/* --- Alt pencere (menu, onay, sikayet) --- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}
.sheet {
  width: 100%; max-width: 640px; max-height: 85vh; overflow-y: auto;
  padding: 6px calc(14px + var(--safe-right)) calc(14px + var(--safe-bottom)) calc(14px + var(--safe-left));
  border-radius: 16px 16px 0 0; border: 1px solid var(--border); border-bottom: 0; background: var(--surface);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-title { font-size: 17px; color: var(--gold-strong); padding-left: 2px; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.sheet-text { color: var(--text); }
.sheet-form { display: flex; flex-direction: column; gap: 8px; }
.menu-list { display: flex; flex-direction: column; }
.menu-item {
  min-height: 52px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--border); background: transparent;
  color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item.danger { color: var(--danger); }
.menu-heading { margin: 12px 6px 0; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--mod); }

/* --- Bakim seridi (js/maintenance.js): ust cubugun hemen altinda, onunla birlikte yapisik --- */
.maint-strip {
  position: sticky; top: calc(52px + var(--safe-top)); z-index: 9;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  min-height: 44px; padding: 6px calc(12px + var(--safe-right)) 6px calc(12px + var(--safe-left));
  border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600;
}
.maint-strip.warn { background: #2e2310; color: var(--warn); }
.maint-strip.ok { background: #16261a; color: var(--online); }
.maint-text { flex: 1 1 auto; }
.maint-hint { color: var(--muted); font-weight: 500; }
.maint-strip .button { flex: 0 0 auto; }

/* --- Bilgi satiri --- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-bottom)); z-index: 60;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: #2c2117; color: var(--text); font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.toast[hidden] { display: none; }

/* --- Telefonu cevir ortusu (js/rotate.js) --- */
.rotate {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: rgba(18, 13, 9, 0.96); color: var(--text);
}
.rotate[hidden] { display: none; }
.rotate-phone { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.rotate-icon { width: 72px; height: 72px; color: var(--gold-strong); stroke-width: 1.5; }
.rotate-title { font-size: 20px; font-weight: 650; color: var(--gold-strong); }
.rotate-text { font-size: 15px; color: var(--text); opacity: 0.85; }
/* Giris: yatay telefon dik konuma doner (tekrar eder, oyuncu cevirene kadar). */
.rotate-enter .rotate-icon { animation: rotate-to-portrait 1.6s ease-in-out infinite; }
/* Donus: dik telefon yataya doner, bir kez; kabuk animasyon bitince kapatir. */
.rotate-exit .rotate-icon { animation: rotate-to-landscape 1.2s ease-in-out forwards; }
@keyframes rotate-to-portrait {
  0%, 15% { transform: rotate(-90deg); }
  60%, 100% { transform: rotate(0deg); }
}
@keyframes rotate-to-landscape {
  0%, 15% { transform: rotate(0deg); }
  80%, 100% { transform: rotate(-90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rotate-enter .rotate-icon { animation: none; }
  .rotate-exit .rotate-icon { animation: none; transform: rotate(-90deg); }
}

/* --- Destek (js/views/support*.js, js/attachments.js) --- */
.support-row { align-items: center; }
.row-icon { flex: none; color: var(--gold-strong); }
.support-intro-head { display: flex; align-items: flex-start; gap: 12px; }
.support-icon { flex: none; width: 32px; height: 32px; color: var(--gold-strong); }
.section-title { font-size: 15px; color: var(--muted); margin: 6px 2px 0; }
.ticket-row.unread .row-title { color: var(--gold-strong); }
.chip-status.tone-warn { border-color: var(--warn); color: var(--warn); }
.chip-status.tone-gold { border-color: var(--gold); color: var(--gold-strong); }
.chip-status.tone-muted { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field[hidden] { display: none; }
.answers { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.answers dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.answers dd { margin: 0; }
.answer-text { white-space: pre-wrap; word-break: break-word; }
.support-msg.staff { border-color: #6b5326; }
.reply-foot.spread { justify-content: space-between; align-items: center; }

.attach-picker { display: flex; flex-direction: column; gap: 8px; }
.attach-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.attach-btn { display: inline-flex; align-items: center; gap: 6px; }
.attach-btn .icon { width: 18px; height: 18px; }
.attach-picks { display: flex; flex-direction: column; gap: 6px; }
.attach-picks:empty { display: none; }
.attach-pick { display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.attach-thumb, .attach-icon { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.attach-icon { display: flex; align-items: center; justify-content: center; background: #0d0906; color: var(--muted); }
.attach-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.attach-meta { color: var(--muted); font-size: 12px; }
.progress { display: block; height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.progress-bar { display: block; width: 0; height: 100%; background: var(--gold); transition: width 0.2s; }
.attach-pick.done .progress { display: none; }
.attach-remove { flex: none; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attach-image { padding: 0; border: 1px solid var(--border); border-radius: 10px; background: #0d0906; overflow: hidden; cursor: zoom-in; }
.attach-image img { display: block; width: 96px; height: 96px; object-fit: cover; }
.attach-video { width: 100%; max-height: 50vh; border-radius: 10px; background: #000; }
.attach-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; }
.attach-file .icon, .attach-gone .icon { width: 18px; height: 18px; flex: none; }
.attach-gone { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.attach-full { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 8px; }

/* --- Etkilesim: tepki, alinti, okunmamis, cevrimici, profil, moderator
   (docs/specs/2026-10-11-topluluk-etkilesim.md; js/reactions.js, js/presence.js, js/views/profile.js) --- */
.button.small.tap { min-height: var(--tap); }
.button-row.start { justify-content: flex-start; }

/* Tepki cubugu: dugmeler 44 px dokunma alani, gorunen hap 32 px; eksi kenar bosluk mesaji uzatmasin. */
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: -6px -3px -10px; }
.post-actions[hidden] { display: none; }
.post-buttons { display: flex; align-items: center; gap: 0; margin-left: auto; }
.react-btn, .reaction-counts {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 3px;
  border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.react-btn:disabled { cursor: default; opacity: 0.7; }
.react-btn .pill {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2);
  font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.react-btn.active .pill { border-color: var(--gold); background: rgba(212, 166, 74, 0.14); color: var(--gold-strong); }
.react-btn:active .pill { filter: brightness(1.2); }
.react-more .pill { padding: 0 8px; }
.react-btn .icon { width: 18px; height: 18px; }
.posts.no-reply .reply-btn { display: none; }
.reaction-counts { gap: 4px; flex-wrap: wrap; }
.reaction-count {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 14px; background: #0d0906;
  font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums;
}
.reaction-count.mine { border-color: var(--gold); color: var(--gold-strong); }
.reaction-emoji { font-size: 15px; line-height: 1; }
.reaction-big { flex: none; font-size: 26px; line-height: 1; }
.reaction-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.reaction-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reaction-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.reaction-choice.active { border-color: var(--gold); background: rgba(212, 166, 74, 0.14); color: var(--gold-strong); }
.reaction-choice:active { filter: brightness(1.15); }
.who-row { gap: 12px; min-height: 52px; }

/* Alinti kutusu (mesajin ustunde) ve hedefe gidince kisa vurgu. */
.quote {
  display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: var(--tap); padding: 7px 10px;
  border: 0; border-left: 3px solid var(--gold); border-radius: 8px; background: #0d0906; color: var(--text);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.quote:active { background: var(--surface-2); }
.quote-author { font-size: 13px; font-weight: 650; color: var(--gold-strong); }
.quote-text { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.quote-gone { justify-content: center; border-left-color: var(--border); font-style: italic; cursor: default; }
.post, .new-divider { scroll-margin-top: calc(64px + var(--safe-top)); scroll-margin-bottom: 140px; }
.post.flash { animation: post-flash 1.6s ease-out; }
@keyframes post-flash {
  0%, 35% { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 166, 74, 0.45); }
  100% { box-shadow: 0 0 0 2px rgba(212, 166, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .post.flash { animation: none; border-color: var(--gold); }
}
/* Moderatorun gordugu gizli mesaj: metin acik ama ayirt edilsin. */
.post-hidden { border-style: dashed; border-color: var(--warn); }

/* Okunmamis: "Yeni mesajlar" cizgisi, konu satiri isareti, bolumde "Tumunu okundu say". */
.new-divider { display: flex; align-items: center; gap: 10px; color: var(--gold-strong); font-size: 13px; font-weight: 700; }
.new-divider::before, .new-divider::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: 0.6; }
.topic-row.unread .row-title { color: var(--gold-strong); font-weight: 750; }
.unread-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.row-react { display: inline-flex; align-items: center; gap: 2px; }
.row-viewers { color: var(--online); }

/* Konu basligi: cevap ve okuyan sayisi, "Ilk okunmamisa git", moderator menusu. */
.topic-counts { display: inline-flex; flex-wrap: wrap; gap: 0 6px; }
.readers { color: var(--online); }
.readers::before { content: "·"; margin-right: 6px; color: var(--border); }
.readers[hidden] { display: none; }
.topic-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-tools .button { min-height: var(--tap); }

/* Cevap kutusundaki alinti hedefi. */
.reply-target-slot:empty { display: none; }
.reply-target {
  display: flex; align-items: center; gap: 8px; padding: 0 0 0 10px;
  border-left: 3px solid var(--gold); border-radius: 8px; background: var(--surface);
}
.reply-target-icon { flex: none; width: 18px; height: 18px; color: var(--gold); }
.reply-target-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.reply-target-label { color: var(--muted); }
.reply-target-label strong { color: var(--text); }
.reply-target-excerpt { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cevrimici (ana sayfa satiri ve profil isareti). */
.presence-line { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: -4px 4px; color: var(--muted); font-size: 13px; }
.presence-line[hidden] { display: none; }
.online-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(108, 192, 112, 0.18); }
.online { display: inline-flex; align-items: center; gap: 6px; color: var(--online); font-weight: 600; }

/* Profil. */
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.profile-nickname { font-size: 22px; color: var(--gold-strong); }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.stat-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--muted); text-align: center; }
.post-row { align-items: center; }
.row-text { font-size: 15px; }
.row-topic { color: var(--gold); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mod-card { border-color: #34435e; }
.mod-title { display: flex; align-items: center; gap: 6px; color: var(--mod); }
.mod-title .icon { width: 18px; height: 18px; }

/* Secenekler yan yana hap (men suresi): dar alt pencerede alti satir yerine iki. */
.choices.chips { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.choices.chips .choice { gap: 8px; padding: 0 14px 0 10px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-2); }
.choices.chips .choice input { width: 18px; height: 18px; }
.choices.chips .choice:has(input:checked) { border-color: var(--gold); color: var(--gold-strong); }
