/* =====================================================
   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(3,8,15,.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(--teal-dim) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, serif);
  font-size: .88rem; font-weight: 700;
  color: #020810;
  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(15,42,74,.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(15,42,74,.4);
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(15,42,74,.4);
  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(3,8,15,.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(15,42,74,.4);
  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(15,42,74,.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(--teal-dim) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, serif);
  font-size: 2rem; font-weight: 700; color: #020810;
  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(3,8,15,.5);
}
.pm-item {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(15,42,74,.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(15,42,74,.4);
  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(15,42,74,.4);
  }
}

/* ══════════════════════════════════════════════════
   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: #020810; 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(0,212,200,.08), rgba(0,212,200,.02));
  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(3,8,15,.5);
}
.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(15,42,74,.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(3,8,15,.5); 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(3,8,15,.5); 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(15,42,74,.4);
}
.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(3,8,15,.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: #020810;
  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(3,8,15,.5); 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(--teal); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  color: #020810; 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;
}
/* ═══════════════════════════════════════════════════
   FORUM INDEX — Atlantis Shard
═══════════════════════════════════════════════════ */

/* ── Forum Header ── */
.forum-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.forum-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold), var(--teal), transparent);
}

.forum-main-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: .4rem;
  letter-spacing: .04em;
}

.forum-main-desc {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: .8rem;
}

.forum-stats-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-dim);
}

.forum-stats-bar span { display: flex; align-items: center; gap: .3rem; }

/* ── Kategori Satırları ── */
.forum-categories {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.forum-cat-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.forum-cat-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  opacity: 0;
  transition: opacity .25s;
}

.forum-cat-row:hover {
  border-color: rgba(0,212,200,.25);
  background: var(--bg-card-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.forum-cat-row:hover::before { opacity: 1; }

.forum-cat-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,200,.06);
  border: 1px solid rgba(0,212,200,.15);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  font-size: 1.6rem;
}

.forum-cat-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: .25rem;
  letter-spacing: .03em;
}

.forum-cat-desc {
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.forum-cat-counts {
  display: flex;
  gap: 1.2rem;
  flex-shrink: 0;
}

.forum-count-item {
  text-align: center;
}

.forum-count-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.forum-count-label {
  font-size: .68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
  display: block;
}

.forum-cat-last {
  min-width: 160px;
  max-width: 200px;
  text-align: right;
  flex-shrink: 0;
}

.forum-last-title {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}

.forum-cat-row:hover .forum-last-title { color: var(--teal); }

.forum-last-meta {
  font-size: .73rem;
  color: var(--text-dim);
}

/* ── Forum Empty State ── */
.forum-empty {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .forum-cat-row { grid-template-columns: 48px 1fr auto; }
  .forum-cat-last { display: none; }
}

@media (max-width: 600px) {
  .forum-cat-row { grid-template-columns: 40px 1fr; gap: .7rem; padding: .9rem 1rem; }
  .forum-cat-counts { display: none; }
  .forum-cat-icon { width: 40px; height: 40px; font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════
   WIKI — Atlantis Shard
═══════════════════════════════════════════════════ */

/* ── Wiki Hero ── */
.wiki-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0 1.8rem;
  position: relative;
  overflow: hidden;
}

.wiki-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--teal), var(--gold), transparent);
}

.wiki-hero-inner {
  max-width: 680px;
}

.wiki-hero-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: .4rem;
  letter-spacing: .04em;
}

.wiki-hero-subtitle {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 1.2rem;
}

/* ── Arama ── */
.wiki-search-form {
  display: flex;
  max-width: 480px;
  gap: 0;
}

.wiki-search-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text);
  padding: .65rem 1rem;
  font-size: .9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
}

.wiki-search-input:focus {
  border-color: var(--teal);
}

.wiki-search-input::placeholder { color: var(--text-dim); }

.wiki-search-btn {
  background: rgba(0,212,200,.15);
  border: 1px solid rgba(0,212,200,.4);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--teal);
  padding: .65rem .9rem;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center;
}

.wiki-search-btn:hover {
  background: rgba(0,212,200,.25);
}

/* ── Wiki Container & Layout ── */
.wiki-container {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Wiki Sidebar ── */
.wiki-sidebar { position: sticky; top: 80px; }

.wiki-sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.wiki-sidebar-title {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(3,8,15,.5);
}

.wiki-cat-nav {
  display: flex;
  flex-direction: column;
  padding: .3rem;
}

.wiki-cat-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .7rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-muted);
  font-size: .85rem;
  transition: all .2s;
}

.wiki-cat-item:hover {
  background: rgba(0,212,200,.06);
  color: var(--teal);
}

.wiki-cat-item.active {
  background: rgba(0,212,200,.08);
  color: var(--teal);
  border-left: 2px solid var(--teal);
  padding-left: calc(.7rem - 2px);
}

.wiki-cat-icon { font-size: 1rem; flex-shrink: 0; }
.wiki-cat-label { flex: 1; }

.wiki-cat-count {
  font-size: .7rem;
  color: var(--text-dim);
  background: rgba(255,255,255,.05);
  padding: .1rem .4rem;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ── Wiki Ana İçerik ── */
.wiki-main { min-width: 0; }

/* Kategori Kartları Grid */
.wiki-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .8rem;
  margin-bottom: 2rem;
}

.wiki-cat-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.wiki-cat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transition: transform .3s;
}

.wiki-cat-card:hover {
  border-color: rgba(0,212,200,.25);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

.wiki-cat-card:hover::after { transform: scaleX(1); }

.wiki-cat-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.wiki-cat-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.wiki-cat-card-title {
  font-family: var(--font-display);
  font-size: .9rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: .02em;
}

.wiki-cat-card-count {
  font-size: .73rem;
  color: var(--text-dim);
}

.wiki-cat-card-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}

.wiki-cat-card:hover .wiki-cat-card-arrow {
  transform: translateX(3px);
  color: var(--teal);
}

/* ── Wiki Section ── */
.wiki-section { margin-top: 1.5rem; }

.wiki-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .05em;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

/* ── Son Güncellenenler ── */
.wiki-recent-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.wiki-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  text-decoration: none;
  transition: all .2s;
}

.wiki-recent-item:hover {
  border-color: rgba(0,212,200,.2);
  background: var(--bg-card-hover);
  transform: translateX(3px);
}

.wiki-recent-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.wiki-recent-title {
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}

.wiki-recent-item:hover .wiki-recent-title { color: var(--teal); }

.wiki-recent-cat {
  font-size: .73rem;
  color: var(--text-dim);
}

.wiki-recent-date {
  font-size: .75rem;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; }
  .wiki-cats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .wiki-cats-grid { grid-template-columns: 1fr; }
  .wiki-search-form { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════
   FORUM KATEGORİ SAYFASI — Topic List
═══════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.forum-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  color: var(--text-dim);
  margin-bottom: .7rem;
}

.forum-breadcrumb a {
  color: var(--teal);
  text-decoration: none;
  transition: color .2s;
}

.forum-breadcrumb a:hover { color: var(--gold); }

.forum-breadcrumb span { display: flex; align-items: center; gap: .4rem; }

/* ── Araç Çubuğu ── */
.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ── Konu Listesi ── */
.forum-topic-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.forum-topic-row {
  display: grid;
  grid-template-columns: 44px 1fr 100px 140px;
  align-items: center;
  gap: .9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .9rem 1.1rem;
  text-decoration: none;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}

.forum-topic-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  opacity: 0;
  transition: opacity .2s;
}

.forum-topic-row.pinned { border-color: rgba(212,168,67,.2); }
.forum-topic-row.pinned::before { background: var(--gold); opacity: 1; }

.forum-topic-row:hover {
  border-color: rgba(0,212,200,.2);
  background: var(--bg-card-hover);
  transform: translateX(3px);
}

.forum-topic-row:hover::before { opacity: 1; }

/* İkon */
.forum-topic-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,200,.06);
  border: 1px solid rgba(0,212,200,.15);
  border-radius: var(--radius);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Başlık & Meta */
.forum-topic-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .25rem;
  line-height: 1.4;
  transition: color .2s;
}

.forum-topic-row:hover .forum-topic-title { color: var(--teal); }

.forum-topic-meta {
  font-size: .75rem;
  color: var(--text-dim);
}

/* İstatistikler (cevap/görüntülenme) */
.forum-topic-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
  flex-shrink: 0;
}

.forum-topic-stats span {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}

/* Son Mesaj */
.forum-topic-last {
  text-align: right;
  flex-shrink: 0;
}

/* ── Sayfalama ── */
.forum-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.forum-page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 .6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .85rem;
  text-decoration: none;
  transition: all .2s;
}

.forum-page-btn:hover { border-color: var(--teal); color: var(--teal); }
.forum-page-btn.active {
  background: rgba(0,212,200,.12);
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .forum-topic-row { grid-template-columns: 40px 1fr 80px; }
  .forum-topic-last { display: none; }
}

@media (max-width: 560px) {
  .forum-topic-row { grid-template-columns: 36px 1fr; gap: .6rem; padding: .7rem .85rem; }
  .forum-topic-stats { display: none; }
  .forum-topic-icon { width: 34px; height: 34px; font-size: .9rem; }
  .forum-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════
   WIKI MAKALE SAYFASI — Atlantis Shard
═══════════════════════════════════════════════════ */

/* ── Sidebar: Kategori sayfa linkleri ── */
.wiki-cat-pages {
  display: flex; flex-direction: column;
  padding: .3rem 0;
}

.wiki-cat-page-link {
  display: flex; align-items: center;
  padding: .45rem 1rem;
  font-size: .83rem; color: var(--text-muted);
  text-decoration: none; transition: all .2s;
  border-left: 2px solid transparent;
}

.wiki-cat-page-link:hover {
  color: var(--teal);
  background: rgba(0,212,200,.04);
  border-left-color: rgba(0,212,200,.3);
}

.wiki-cat-page-link.active {
  color: var(--teal);
  background: rgba(0,212,200,.07);
  border-left-color: var(--teal);
  font-weight: 500;
}

.wiki-cat-page-link.all-pages {
  font-size: .78rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  margin-bottom: .2rem;
  padding-bottom: .6rem;
}

.wiki-cat-page-link.all-pages:hover { color: var(--teal); }

/* ── Makale ana içerik ── */
.wiki-article {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ── Makale Header ── */
.wiki-article-header {
  padding: 1.5rem 2rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(3,8,15,.4);
  position: relative;
}

.wiki-article-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}

.wiki-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .6rem;
  letter-spacing: .03em;
  line-height: 1.2;
}

.wiki-article-meta {
  display: flex; align-items: center; gap: .8rem;
  flex-wrap: wrap; font-size: .8rem; color: var(--text-dim);
}

.wiki-article-meta a { color: var(--teal); text-decoration: none; }

/* ── Makale İçerik ── */
.wiki-content {
  padding: 1.8rem 2rem;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.8;
}

.wiki-content h1 {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--gold);
  margin: 1.8rem 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: .04em;
}

.wiki-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--gold-light);
  margin: 1.5rem 0 .7rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(212,168,67,.15);
  letter-spacing: .03em;
}

.wiki-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--teal);
  margin: 1.2rem 0 .6rem;
}

.wiki-content h4, .wiki-content h5, .wiki-content h6 {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--text);
  margin: 1rem 0 .5rem;
}

.wiki-content p {
  margin: 0 0 1rem;
  color: var(--text);
}

.wiki-content a {
  color: var(--teal); text-decoration: underline;
  text-decoration-color: rgba(0,212,200,.3);
  transition: all .2s;
}

.wiki-content a:hover {
  color: var(--gold);
  text-decoration-color: rgba(212,168,67,.5);
}

.wiki-content ul, .wiki-content ol {
  margin: .5rem 0 1rem 1.5rem;
  color: var(--text);
}

.wiki-content li { margin-bottom: .3rem; line-height: 1.7; }

.wiki-content ul li::marker { color: var(--teal); }
.wiki-content ol li::marker { color: var(--gold); font-weight: 600; }

.wiki-content strong { color: var(--gold-light); font-weight: 600; }
.wiki-content em { color: var(--stone-light); font-style: italic; }

.wiki-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.wiki-content blockquote {
  border-left: 3px solid var(--teal);
  background: rgba(0,212,200,.04);
  padding: .8rem 1.2rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.wiki-content code {
  background: rgba(0,212,200,.08);
  border: 1px solid rgba(0,212,200,.15);
  border-radius: 4px;
  padding: .15rem .4rem;
  font-size: .88em;
  color: var(--teal);
  font-family: 'Courier New', monospace;
}

.wiki-content pre {
  background: rgba(3,8,15,.8);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.wiki-content pre code {
  background: none; border: none;
  padding: 0; font-size: .88rem;
  color: var(--text-muted);
}

/* ── Wiki Tablo ── */
.wiki-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.wiki-table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem;
}

.wiki-table th {
  background: rgba(3,8,15,.6);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border-mid);
  text-align: left; white-space: nowrap;
}

.wiki-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.wiki-table tr:last-child td { border-bottom: none; }
.wiki-table tr:nth-child(even) td { background: rgba(0,212,200,.02); }
.wiki-table tr:hover td { background: rgba(0,212,200,.04); }

/* ── Wiki Breadcrumb ── */
.wiki-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--text-dim);
  margin-bottom: .8rem; flex-wrap: wrap;
  padding: 0;
}

.wiki-breadcrumb a {
  color: var(--teal); text-decoration: none; transition: color .2s;
}

.wiki-breadcrumb a:hover { color: var(--gold); }
.wiki-breadcrumb span { color: var(--text-dim); }

/* ── btn-xs ── */
.btn-xs {
  padding: .25rem .7rem;
  font-size: .75rem;
  border-radius: 6px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wiki-article-header { padding: 1.2rem 1rem; }
  .wiki-content { padding: 1.2rem 1rem; }
  .wiki-article-title { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════
   FORUM KONU SAYFASI — Post Render
═══════════════════════════════════════════════════ */

/* ── Post Avatar ── */
.forum-post-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-2), var(--ocean-3));
  border: 2px solid rgba(0,212,200,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--teal); flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,212,200,.1);
}

.forum-post-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Post Username / Role ── */
.forum-post-username {
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .03em;
}

.forum-post-role {
  font-size: .75rem;
  color: var(--text-dim);
}

/* ── Post Body ── */
.forum-post-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .75rem;
}

.forum-post-date {
  font-size: .75rem;
  color: var(--text-dim);
  display: flex; align-items: center; gap: .5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

/* ── Post Content ── */
.forum-post-content {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.8;
  word-break: break-word;
}

.forum-post-content a { color: var(--teal); text-decoration: underline; }
.forum-post-content a:hover { color: var(--gold); }
.forum-post-content strong { color: var(--gold-light); }
.forum-post-content em { color: var(--stone-light); font-style: italic; }

.forum-post-content code {
  background: rgba(0,212,200,.08);
  border: 1px solid rgba(0,212,200,.15);
  border-radius: 4px; padding: .1rem .4rem;
  font-size: .88em; color: var(--teal);
  font-family: 'Courier New', monospace;
}

.forum-post-content pre {
  background: rgba(3,8,15,.8);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 1rem 1.2rem; overflow-x: auto;
  margin: .8rem 0;
}

.forum-post-content pre code {
  background: none; border: none;
  padding: 0; color: var(--text-muted);
}

/* ── Post Actions ── */
.post-actions {
  display: flex; align-items: center;
  gap: .5rem; flex-wrap: wrap;
  padding-top: .6rem;
  border-top: 1px solid var(--border);
}

.post-action-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .78rem; cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
  text-decoration: none;
}

.post-action-btn:hover {
  border-color: rgba(0,212,200,.3);
  color: var(--teal);
  background: rgba(0,212,200,.05);
}

.post-action-btn.danger:hover {
  border-color: rgba(239,68,68,.3);
  color: var(--red);
  background: rgba(239,68,68,.05);
}

/* ── Forum Topic Page genel ── */
.forum-topic-page { padding: 1.5rem 0 4rem; }

.forum-topic-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--gold);
  margin-bottom: .4rem;
  letter-spacing: .03em;
}

.forum-topic-meta {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; color: var(--text-dim);
  flex-wrap: wrap; margin-bottom: 1.2rem;
}

.forum-topic-actions {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
  padding: .8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── Reply Form ── */
.reply-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.reply-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.reply-form h3 {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--gold);
  margin-bottom: 1rem; letter-spacing: .04em;
}

.reply-form textarea {
  width: 100%; min-height: 140px;
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text); padding: .75rem 1rem;
  font-size: .9rem; font-family: var(--font-body);
  resize: vertical; outline: none;
  transition: border-color .2s;
}

.reply-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,212,200,.08);
}

.reply-form-actions {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: .8rem; flex-wrap: wrap; gap: .5rem;
}

.char-count { font-size: .75rem; color: var(--text-dim); }

/* ═══════════════════════════════════════════════════
   FORUM POST CARD LAYOUT — Düzeltme
═══════════════════════════════════════════════════ */

.forum-topic-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.forum-topic-main { min-width: 0; }

.forum-topic-sidebar {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 1rem;
}

.forum-posts {
  display: flex; flex-direction: column;
  gap: .75rem; margin-bottom: 1.5rem;
}

/* Post Kartı — Ana Grid */
.forum-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 130px 1fr;
  overflow: hidden;
  transition: border-color .2s;
}

.forum-post-card:hover { border-color: rgba(0,212,200,.12); }

.forum-post-card.op {
  border-top: 2px solid rgba(212,168,67,.4);
}

/* Sol Sidebar (Avatar + Kullanıcı Bilgisi) */
.forum-post-sidebar {
  background: rgba(3,8,15,.4);
  border-right: 1px solid var(--border);
  padding: 1.2rem 1rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: .4rem;
}

/* Sağ Gövde (İçerik) */
.forum-post-body {
  padding: 1rem 1.2rem;
  display: flex; flex-direction: column;
  gap: .6rem; min-width: 0;
}

.forum-post-date {
  font-size: .75rem; color: var(--text-dim);
  display: flex; align-items: center;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.forum-post-content {
  font-size: .92rem; color: var(--text);
  line-height: 1.8; word-break: break-word;
}

/* Responsive */
@media (max-width: 900px) {
  .forum-topic-layout { grid-template-columns: 1fr; }
  .forum-topic-sidebar { display: none; }
}

@media (max-width: 640px) {
  .forum-post-card { grid-template-columns: 1fr; }
  .forum-post-sidebar {
    flex-direction: row; text-align: left;
    border-right: none; border-bottom: 1px solid var(--border);
    padding: .75rem 1rem; gap: .75rem;
    align-items: center;
  }
  .forum-post-avatar { width: 36px !important; height: 36px !important; font-size: .9rem !important; }
}
/* ═══════════════════════════════════════════════════
   İNDİR SAYFASI — Atlantis Shard
═══════════════════════════════════════════════════ */
.download-page{padding:2.5rem 0 4rem}
.download-page h1{font-family:var(--font-display);font-size:1.8rem;color:var(--gold);margin-bottom:.6rem;letter-spacing:.04em;display:flex;align-items:center;gap:.6rem}
.download-page>p{color:var(--text-muted);font-size:.95rem;margin-bottom:2rem;line-height:1.7;max-width:700px}
.download-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-bottom:2.5rem}
.dl-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-xl);padding:1.8rem 1.5rem;transition:all .25s;display:flex;flex-direction:column;gap:.7rem;position:relative;overflow:hidden}
.dl-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--teal),var(--gold));opacity:0;transition:opacity .25s}
.dl-card:hover{border-color:rgba(0,212,200,.25);background:var(--bg-card-hover);transform:translateY(-3px);box-shadow:0 8px 30px rgba(0,0,0,.4)}
.dl-card:hover::before{opacity:1}
.dl-card h3{font-family:var(--font-display);font-size:1rem;color:var(--gold-light);letter-spacing:.03em}
.dl-card p{font-size:.88rem;color:var(--text-muted);line-height:1.6;flex:1}
.dl-card .btn{align-self:flex-start;margin-top:.3rem}
.step-list{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-xl);padding:2rem;position:relative;overflow:hidden}
.step-list::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--teal),var(--gold),var(--teal),transparent)}
.step-list h3{font-family:var(--font-display);font-size:1.1rem;color:var(--gold);margin-bottom:1.5rem;letter-spacing:.04em;padding-bottom:.75rem;border-bottom:1px solid var(--border)}
.step{display:flex;gap:1.2rem;align-items:flex-start;padding:1rem 0;border-bottom:1px solid var(--border)}
.step:last-child{border-bottom:none;padding-bottom:0}
.step-num{width:36px;height:36px;background:linear-gradient(135deg,var(--ocean-2),var(--ocean-3));border:1px solid rgba(0,212,200,.3);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:.9rem;font-weight:700;color:var(--teal);flex-shrink:0;box-shadow:0 0 12px rgba(0,212,200,.1)}
.step-text h4{font-family:var(--font-display);font-size:.95rem;color:var(--gold-light);margin-bottom:.4rem;letter-spacing:.02em}
.step-text p{font-size:.88rem;color:var(--text-muted);line-height:1.7}
.step-text code{background:rgba(0,212,200,.08);border:1px solid rgba(0,212,200,.15);border-radius:4px;padding:.1rem .4rem;font-size:.88em;color:var(--teal);font-family:'Courier New',monospace}
.step-text a{color:var(--teal);text-decoration:none}
.step-text a:hover{color:var(--gold)}
@media(max-width:600px){.download-cards{grid-template-columns:1fr}.step-list{padding:1.2rem}.step{gap:.8rem}.step-num{width:30px;height:30px;font-size:.8rem}}
