/* =====================================================
   Forum Advanced Features CSS — Atlantis Shard
   ===================================================== */

/* ── Forum İki Sütun Layout ── */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
.forum-main-col  { min-width: 0; }
.forum-sidebar-col { min-width: 0; }

/* ── Sidebar Kutuları ── */
.forum-sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}
.forum-sidebar-box:last-child { margin-bottom: 0; }

.fsb-title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6,9,18,.5);
}

.fsb-body { padding: .5rem; }

/* ── Sidebar: Aktif Üye ── */
.fsb-member {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
}
.fsb-member:hover { background: rgba(212,168,67,.06); }

.fsb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark, #7a5200) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, serif);
  font-size: .88rem; font-weight: 700;
  color: #0a0c14;
  flex-shrink: 0;
  border: 1px solid rgba(212,168,67,.25);
}

.fsb-member-info { min-width: 0; flex: 1; }
.fsb-member-name {
  font-size: .85rem;
  color: var(--gold-light, #f5d98a);
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fsb-member-meta {
  font-size: .72rem;
  color: var(--text-dim, #4a5568);
  display: block;
}

/* ── Sidebar: Son Mesajlar ── */
.fsb-recent-post {
  display: block;
  padding: .5rem .6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
  border-bottom: 1px solid rgba(26,37,64,.4);
}
.fsb-recent-post:last-child { border-bottom: none; }
.fsb-recent-post:hover { background: rgba(212,168,67,.05); }

.fsb-rp-title {
  font-size: .84rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: .15rem;
  line-height: 1.4;
}
.fsb-rp-meta {
  font-size: .72rem;
  color: var(--text-dim, #4a5568);
}

/* ── Etiketler ── */
.forum-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .73rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid;
  text-decoration: none;
  margin: .2rem;
  transition: opacity .2s, transform .15s;
  letter-spacing: .02em;
}
.forum-tag:hover {
  opacity: .85;
  transform: translateY(-1px);
}

/* ── Plevel Rozetleri ── */
.plevel-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
  margin-top: .25rem;
  letter-spacing: .04em;
}
.plevel-badge.owner   { background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3);  color: #fbbf24; }
.plevel-badge.admin   { background: rgba(239,68,68,.1);   border: 1px solid rgba(239,68,68,.25);  color: #f87171; }
.plevel-badge.gm      { background: rgba(139,92,246,.1);  border: 1px solid rgba(139,92,246,.25); color: #a78bfa; }
.plevel-badge.counsel { background: rgba(34,197,94,.1);   border: 1px solid rgba(34,197,94,.25);  color: #4ade80; }

/* ── Post Reaksiyonlar ── */
.post-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(26,37,64,.4);
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(26,37,64,.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .82rem;
  color: var(--text-dim, #4a5568);
  cursor: pointer;
  transition: all .2s;
  line-height: 1;
}
.reaction-btn:hover {
  background: rgba(212,168,67,.1);
  border-color: rgba(212,168,67,.3);
  color: var(--gold-light, #f5d98a);
}
.reaction-btn.active {
  background: rgba(212,168,67,.15);
  border-color: rgba(212,168,67,.4);
  color: var(--gold, #d4a843);
}
.reaction-btn:disabled { opacity: .4; cursor: not-allowed; }
.reaction-count { font-size: .75rem; min-width: 8px; }

.best-answer-mark {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: #fbbf24;
  font-weight: 600;
  padding: .25rem .75rem;
}

/* ── Alıntı Kutusu ── */
.post-quote {
  background: rgba(6,9,18,.5);
  border-left: 3px solid rgba(212,168,67,.4);
  border-radius: 0 var(--radius, 4px) var(--radius, 4px) 0;
  padding: .65rem 1rem;
  margin-bottom: 1rem;
}
.post-quote-author {
  font-size: .75rem;
  color: var(--gold, #d4a843);
  font-weight: 600;
  margin-bottom: .3rem;
}
.post-quote-content {
  font-size: .88rem;
  color: var(--text-dim, #4a5568);
  font-style: italic;
  line-height: 1.5;
}

/* ── İmza ── */
.post-signature {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px dashed rgba(26,37,64,.5);
  font-size: .82rem;
  color: var(--text-dim, #4a5568);
  font-style: italic;
}

/* ── Post Rozetler ── */
.post-badges { font-size: .9rem; margin-top: .2rem; letter-spacing: .1em; }
.post-permalink { color: var(--text-dim); text-decoration: none; }
.post-permalink:hover { color: var(--gold); }

/* ── Konu pinned/duyuru ikonları ── */
.topic-pin, .topic-ann { font-size: .9rem; margin-right: .3rem; }

/* ── Forum topic post OP ── */
.forum-post-card.op { border-top: 2px solid rgba(212,168,67,.3); }

/* ── Bildirim Çanı ── */
.notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notif-bell {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted, #94a3b8);
  font-size: .95rem; padding: .4rem .65rem;
  border-radius: var(--radius, 4px);
  transition: all .2s;
  display: flex; align-items: center; gap: .35rem;
}
.notif-bell:hover { background: rgba(212,168,67,.08); color: var(--gold, #d4a843); }

.notif-badge {
  align-items: center; justify-content: center;
  background: #ef4444; color: #fff;
  font-size: .6rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 999px; padding: 0 4px;
}

.notif-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px;
  background: var(--bg-card, #111827);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 8px);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 500;
}
.notif-wrapper.open .notif-dropdown { display: block; }

.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem; font-weight: 600;
  color: var(--text-muted, #94a3b8);
}
.notif-read-all {
  background: none; border: none; cursor: pointer;
  font-size: .72rem; color: var(--gold, #d4a843); padding: 0;
}
.notif-list { list-style: none; max-height: 340px; overflow-y: auto; }
.notif-empty {
  padding: 1.5rem; text-align: center;
  color: var(--text-dim, #4a5568); font-size: .88rem;
}
.notif-item {
  display: flex; gap: .75rem; padding: .75rem 1rem;
  border-bottom: 1px solid rgba(26,37,64,.4);
  cursor: pointer; transition: background .2s;
}
.notif-item:hover { background: rgba(212,168,67,.04); }
.notif-item.unread { background: rgba(212,168,67,.03); border-left: 2px solid var(--gold); }
.notif-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.notif-body strong { font-size: .84rem; color: var(--text-muted); display: block; }
.notif-body p { font-size: .8rem; color: var(--text-dim); margin-top: .1rem; line-height: 1.4; }
.notif-body time { font-size: .72rem; color: var(--text-dim); opacity: .65; display: block; margin-top: .2rem; }

/* ── Profil Sayfası ── */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 12px);
  padding: 2rem 1.5rem;
  text-align: center;
}
.profile-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark, #7a5200) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, serif);
  font-size: 2rem; font-weight: 700; color: #0a0c14;
  margin: 0 auto 1rem;
  border: 2px solid rgba(212,168,67,.3);
  box-shadow: 0 0 24px rgba(212,168,67,.15);
  overflow: hidden;
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-username {
  font-family: var(--font-display, serif);
  font-size: 1.3rem; color: var(--gold); margin-bottom: .75rem;
}
.profile-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
  margin-bottom: 1rem;
}
.profile-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; padding: .2rem .6rem; border-radius: 999px;
  background: rgba(212,168,67,.08);
  border: 1px solid rgba(212,168,67,.2);
  color: var(--gold-light, #f5d98a);
}
.profile-stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem;
  margin: 1rem 0; padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.psg-item { text-align: center; }
.psg-val {
  display: block;
  font-family: var(--font-display, serif);
  font-size: 1.1rem; color: var(--gold); font-weight: 700;
}
.psg-lbl {
  font-size: .67rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .06em;
}
.profile-meta { text-align: left; margin-top: 1rem; }
.pm-item { font-size: .84rem; color: var(--text-dim); padding: .25rem 0; }
.profile-bio {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .88rem; color: var(--text-muted);
  line-height: 1.65; text-align: left;
}
.profile-posts { display: flex; flex-direction: column; gap: .6rem; }
.profile-post-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius, 4px); padding: 1rem 1.25rem;
  text-decoration: none; transition: all .2s;
}
.profile-post-item:hover { border-color: rgba(212,168,67,.2); }
.ppi-title { font-size: .9rem; color: var(--gold-light); font-weight: 600; margin-bottom: .3rem; }
.ppi-excerpt {
  font-size: .84rem; color: var(--text-dim);
  font-style: italic; margin-bottom: .3rem; line-height: 1.5;
}
.ppi-meta { font-size: .75rem; color: var(--text-dim); opacity: .7; }

/* ── PM Sayfası ── */
.pm-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: start; }
.pm-inbox, .pm-compose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
}
.pm-box-title {
  font-family: var(--font-display, serif);
  font-size: .88rem; color: var(--gold);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6,9,18,.4);
}
.pm-item {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(26,37,64,.4);
  cursor: pointer; transition: background .2s;
}
.pm-item:hover { background: rgba(212,168,67,.04); }
.pm-item.unread { border-left: 2px solid var(--gold); }
.pm-item-from { font-size: .85rem; color: var(--gold-light); font-weight: 600; }
.pm-item-subject { font-size: .82rem; color: var(--text-muted); margin-top: .1rem; }
.pm-item-date { font-size: .72rem; color: var(--text-dim); margin-top: .2rem; }
.pm-compose .form-group { padding: 0 1rem; margin-top: .85rem; }

/* ── Konu Takip ── */
.topic-subscribe-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; padding: .35rem .85rem;
  background: rgba(26,37,64,.5);
  border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer;
  color: var(--text-dim); transition: all .2s;
}
.topic-subscribe-btn:hover, .topic-subscribe-btn.active {
  background: rgba(212,168,67,.1);
  border-color: rgba(212,168,67,.3);
  color: var(--gold);
}

/* ── Tag Seçici (Yeni Konu) ── */
.tag-selectable { cursor: pointer; transition: all .2s; }
.tag-selectable:hover { transform: translateY(-1px); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .forum-layout { grid-template-columns: 1fr 260px; }
}
@media (max-width: 820px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar-col { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
  .pm-layout { grid-template-columns: 1fr; }
  .notif-dropdown { width: 280px; right: -40px; }
}
@media (max-width: 560px) {
  .forum-post-card { grid-template-columns: 1fr; }
  .forum-post-sidebar {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(26,37,64,.3);
  }
}

/* ══════════════════════════════════════════════════
   LOGIN MODAL
══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  animation: modal-fade-in .2s ease;
}
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--bg-card, #111827);
  border: 1px solid rgba(212,168,67,.25);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 400px; width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  animation: modal-slide-in .25s ease;
}
@keyframes modal-slide-in { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim, #4a5568); font-size: 1.1rem;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: rgba(255,255,255,.06); color: var(--text-muted); }

.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-title {
  font-family: var(--font-display, serif);
  font-size: 1.4rem; color: var(--gold, #d4a843);
  margin-bottom: .75rem;
}
.modal-desc { font-size: .95rem; color: var(--text-dim, #4a5568); line-height: 1.6; }
.modal-actions {
  display: flex; gap: .75rem; justify-content: center;
  margin: 1.75rem 0 1rem;
}
.modal-footer-note {
  font-size: .78rem; color: var(--text-dim, #4a5568); opacity: .7;
}

/* ══════════════════════════════════════════════════
   PM WIDGET — Sağ Alt Köşe
══════════════════════════════════════════════════ */
.pm-widget-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  background: linear-gradient(135deg, var(--gold, #d4a843) 0%, #7a5200 100%);
  color: #0a0c14; border: none; border-radius: 50px;
  padding: .65rem 1.25rem; font-size: .88rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 20px rgba(212,168,67,.4);
  transition: all .25s; display: flex; align-items: center; gap: .4rem;
}
.pm-widget-fab:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(212,168,67,.5); }

.pm-fab-badge {
  background: #ef4444; color: #fff;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  align-items: center; justify-content: center; padding: 0 4px;
}

.pm-widget {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  width: 370px;
  background: var(--bg-card, #111827);
  border: 1px solid rgba(212,168,67,.2);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
  flex-direction: column;
  overflow: hidden;
  max-height: 560px; height: 560px;
}

.pm-widget-header {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .85rem;
  background: linear-gradient(90deg, rgba(212,168,67,.1), rgba(212,168,67,.03));
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display, serif);
  font-size: .88rem; color: var(--gold, #d4a843); font-weight: 600;
  user-select: none;
}
.pm-widget-title { flex: 1; display: flex; align-items: center; gap: .4rem; }
.pm-widget-header-btns { display: flex; gap: .2rem; }
.pm-widget-hbtn {
  background: rgba(255,255,255,.07); border: none; cursor: pointer;
  color: var(--text-dim); width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.pm-widget-hbtn:hover { background: rgba(255,255,255,.15); color: #fff; }
.pm-widget-close-btn:hover { background: rgba(239,68,68,.2); color: #f87171; }
.pm-widget.minimized { height: auto !important; }
.pm-widget-toggle { margin-left: auto; font-size: .75rem; opacity: .6; }
.pm-unread-badge {
  background: #ef4444; color: #fff;
  font-size: .62rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.pm-widget-body {
  display: flex; flex-direction: column;
  flex: 1; overflow: hidden; min-height: 0; flex: 1;
}

.pm-widget-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  background: rgba(6,9,18,.4);
}
.pm-tab {
  flex: 1; background: none; border: none; cursor: pointer;
  font-size: .8rem; font-weight: 600;
  color: var(--text-dim, #4a5568); padding: .6rem;
  transition: all .2s; border-bottom: 2px solid transparent;
}
.pm-tab:hover { color: var(--text-muted); }
.pm-tab.active { color: var(--gold, #d4a843); border-bottom-color: var(--gold); }

.pm-tab-content { flex: 1; overflow-y: auto; display: block; }

/* Gelen kutusu */
.pm-inbox-list { display: flex; flex-direction: column; }
.pm-inbox-item {
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(26,37,64,.4);
  cursor: pointer; transition: background .2s;
}
.pm-inbox-item:hover { background: rgba(212,168,67,.05); }
.pm-inbox-item.unread { border-left: 2px solid var(--gold, #d4a843); }
.pm-inbox-from { font-size: .84rem; font-weight: 600; color: var(--gold-light, #f5d98a); }
.pm-inbox-subject { font-size: .8rem; color: var(--text-muted, #94a3b8); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-inbox-date { font-size: .7rem; color: var(--text-dim, #4a5568); margin-top: .15rem; }

/* Yeni mesaj formu */
.pm-compose-form { display: flex; flex-direction: column; gap: .5rem; padding: .75rem; }
.pm-input {
  width: 100%; padding: .5rem .75rem;
  background: rgba(6,9,18,.6); border: 1px solid var(--border);
  border-radius: var(--radius, 4px); color: var(--text-muted);
  font-size: .85rem; transition: border-color .2s;
}
.pm-input:focus { outline: none; border-color: var(--gold); }
.pm-textarea {
  width: 100%; min-height: 90px; resize: vertical;
  padding: .5rem .75rem;
  background: rgba(6,9,18,.6); border: 1px solid var(--border);
  border-radius: var(--radius, 4px); color: var(--text-muted);
  font-size: .85rem; font-family: inherit;
  transition: border-color .2s;
}
.pm-textarea:focus { outline: none; border-color: var(--gold); }

/* Mesaj okuma */
.pm-read-header {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .85rem; color: var(--text-muted);
}
.pm-back-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gold, #d4a843); font-size: .82rem; padding: 0;
}
.pm-read-meta {
  font-size: .78rem; color: var(--text-dim); padding: .65rem 1rem;
  border-bottom: 1px solid rgba(26,37,64,.3);
}
.pm-read-content { display: flex; flex-direction: column; overflow-y: auto; }
.pm-read-body {
  padding: .75rem 1rem; font-size: .88rem;
  color: var(--text-muted); line-height: 1.65; max-height: 160px; overflow-y: auto;
}
.pm-reply-area { padding: .5rem .75rem; border-top: 1px solid var(--border); }

/* Loading & empty */
.pm-loading { padding: 1rem; text-align: center; font-size: .82rem; color: var(--text-dim); }
.pm-empty   { padding: 1.25rem; text-align: center; font-size: .84rem; color: var(--text-dim); }

/* ── PM View (yeni yapı) ─────────────────────────────────────── */
.pm-view { display: flex; flex-direction: column; flex: 1; overflow: hidden; min-height: 0; }

/* ── Thread Listesi ──────────────────────────────────────────── */
.pm-thread-item {
  padding: .6rem .85rem; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: relative; transition: background .15s;
}
.pm-thread-item:hover { background: rgba(212,168,67,.06); }
.pm-thread-item.unread { border-left: 2px solid var(--gold, #d4a843); }
.pm-thread-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .15rem; }
.pm-thread-from { font-size: .84rem; font-weight: 600; color: var(--gold-light, #f5d98a); }
.pm-thread-time { font-size: .7rem; color: var(--text-dim, #4a5568); }
.pm-thread-subject { font-size: .8rem; color: var(--text-muted, #94a3b8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-thread-preview { font-size: .75rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.pm-thread-badge {
  position: absolute; top: .5rem; right: .75rem;
  background: var(--gold); color: #000; font-size: .65rem;
  font-weight: 700; padding: 1px 5px; border-radius: 99px; min-width: 18px; text-align: center;
}
.pm-msg-count { font-size: .7rem; color: var(--text-dim); }

/* ── Sohbet Başlık ───────────────────────────────────────────── */
.pm-chat-header {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .75rem; border-bottom: 1px solid var(--border);
  background: rgba(10,14,23,.85); flex-shrink: 0;
}
.pm-back-btn {
  background: rgba(255,255,255,.07); border: none; cursor: pointer;
  color: var(--text-muted, #94a3b8); width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, color .15s;
}
.pm-back-btn:hover { background: rgba(255,255,255,.13); color: #fff; }

.pm-chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(212,168,67,.4), rgba(212,168,67,.15));
  border: 1px solid rgba(212,168,67,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: var(--gold, #d4a843);
  text-transform: uppercase;
}

.pm-chat-header-info {
  flex: 1; display: flex; flex-direction: column; gap: 1px;
  overflow: hidden; min-width: 0;
}
.pm-chat-name {
  font-size: .86rem; font-weight: 600; color: #e2e8f0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2;
}
.pm-chat-status {
  display: flex; align-items: center; gap: 4px;
  font-size: .7rem; color: var(--text-dim); min-height: .85rem;
  line-height: 1;
}
.pm-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: transparent; flex-shrink: 0; transition: background .3s;
}
.pm-status-dot.online  { background: #4ade80; box-shadow: 0 0 5px rgba(74,222,128,.6); }
.pm-status-dot.offline { background: #64748b; }

/* ── Aksiyon Butonları ───────────────────────────────────────── */
.pm-chat-actions { display: flex; gap: .2rem; flex-shrink: 0; }
.pm-action-btn {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; color: #94a3b8;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.pm-action-btn:hover {
  background: rgba(212,168,67,.15); border-color: rgba(212,168,67,.3);
  color: var(--gold, #d4a843);
}
.pm-action-btn.pm-delete-btn:hover {
  background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.3);
  color: #f87171;
}

/* ── Tik sistemi ─────────────────────────────────────────────── */
.pm-bubble-meta {
  display: flex; align-items: center; gap: 3px;
  margin-top: .15rem; padding: 0 2px;
}
.pm-bubble-wrap.mine  .pm-bubble-meta { justify-content: flex-end; }
.pm-bubble-wrap.theirs .pm-bubble-meta { justify-content: flex-start; }

.pm-bubble-time { font-size: .65rem; color: var(--text-dim); }

.pm-tick { display: inline-flex; align-items: center; flex-shrink: 0; }
.pm-tick.sending { opacity: .5; }
.pm-tick.sent    { opacity: .8; }
.pm-tick.read    { opacity: 1; }
.pm-chat-messages {
  flex: 1; overflow-y: auto; padding: .75rem;
  display: flex; flex-direction: column; gap: .35rem;
  scroll-behavior: smooth;
}
.pm-bubble-wrap { display: flex; flex-direction: column; max-width: 82%; }
.pm-bubble-wrap.mine   { align-self: flex-end;  align-items: flex-end; }
.pm-bubble-wrap.theirs { align-self: flex-start; align-items: flex-start; }

.pm-bubble {
  padding: .5rem .75rem; border-radius: 14px;
  font-size: .83rem; line-height: 1.5; word-break: break-word;
  max-width: 100%;
}
.pm-bubble-wrap.mine   .pm-bubble {
  background: var(--gold, #d4a843); color: #0a0e17;
  border-bottom-right-radius: 4px;
}
.pm-bubble-wrap.theirs .pm-bubble {
  background: rgba(255,255,255,.07); color: var(--text-muted, #94a3b8);
  border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px;
}
.pm-bubble.sending { opacity: .65; }
.pm-bubble.error   { background: rgba(239,68,68,.25) !important; border: 1px solid #f87171 !important; color: #fca5a5 !important; }

/* Chat input */
.pm-chat-input-area {
  display: flex; gap: .4rem; padding: .5rem .6rem;
  border-top: 1px solid var(--border); background: rgba(6,9,18,.6); flex-shrink: 0;
  align-items: flex-end;
}
.pm-chat-input {
  flex: 1; background: var(--bg-input, rgba(255,255,255,.06));
  border: 1px solid var(--border); border-radius: 10px;
  padding: .45rem .65rem; color: var(--text, #e2e8f0);
  font-size: .83rem; resize: none; line-height: 1.4;
  max-height: 80px; overflow-y: auto; font-family: inherit;
}
.pm-chat-input:focus { outline: none; border-color: rgba(212,168,67,.4); }
.pm-chat-send-btn {
  background: var(--gold, #d4a843); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  color: #0a0e17; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, transform .1s;
}
.pm-chat-send-btn:hover { background: var(--gold-light, #f5d98a); transform: scale(1.05); }
.pm-chat-send-btn:active { transform: scale(.96); }

/* ── Toast bildirimi ─────────────────────────────────────────── */
.pm-toast {
  position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(30,35,50,.97); border: 1px solid rgba(212,168,67,.3);
  color: var(--text-muted, #94a3b8); font-size: .83rem;
  padding: .5rem 1.1rem; border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  opacity: 0; transition: opacity .25s, transform .25s;
  z-index: 9999; pointer-events: none; white-space: nowrap;
}
.pm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Arşiv sekmesi boş durumu ────────────────────────────────── */
#pm-view-archived .pm-empty::before { content: '📂 '; }

@media (max-width: 480px) {
  .pm-widget { width: calc(100vw - 2rem); right: 1rem; bottom: 1rem; }
  .pm-widget-fab { right: 1rem; bottom: 1rem; }
  .modal-box { padding: 1.75rem 1.25rem; }
  .modal-actions { flex-direction: column; }
}

/* ── Footer Grid Düzeltmesi ──
   Forum sayfalarında .footer, .forum-layout grid'i içinde kalıyorsa
   tam genişliğe taşınmasını sağlar. */
.forum-layout + .footer,
.forum-layout ~ .footer {
  grid-column: 1 / -1;
  width: 100%;
}

/* Eğer footer doğrudan forum-layout'un child'ıysa */
.forum-layout > .footer {
  grid-column: 1 / -1;
  width: 100%;
}

/* Alternatif: footer her zaman tam genişlik, float/overflow temizlenir */
.footer {
  clear: both;
  width: 100%;
  box-sizing: border-box;
}