/* ==========================================================================
   Hükümdar: Age of Khans — Divan Meclisi & Forum CSS (v3.0.0)
   Tasarım Sistemi: Mobil Ayarlar Ekranı (SettingsScreen.tsx) Birebir Entegrasyonu
   Aydınlık Kraliyet Parşömen & Ornate Container Mimarisi
   ========================================================================== */

@import url('../fonts/fonts.css');

:root {
  /* ─── Mobil Ayarlar Ekranı (SettingsScreen.tsx) Renk Paleti ─── */
  --bg-dark: #0a0502;
  --bg-overlay: rgba(10, 5, 2, 0.78);
  
  /* Aydınlık, Işıltılı Fildişi-Parşömen Yüzeyleri */
  --parch-light: #fefbf3;
  --parch-card-top: #fffef9;
  --parch-mid: #faecd0;
  --parch-dark: #f2d9b0;
  --border-parch: #e8d9b1;
  
  /* Asil Kraliyet Altını & Bronz */
  --gold: #f0d888;
  --gold-bright: #ffe28a;
  --gold-dim: rgba(240, 208, 112, 0.45);
  --gold-dark: #8e703f;
  --gold-rich: #c5a059;
  --gold-border: #d4af37;
  --gold-glow: rgba(220, 177, 79, 0.35);
  
  /* Yüksek Kontrastlı İmparatorluk Mürekkep Tonları */
  --text-ink: #2e1a12;
  --text-ink-heading: #1e0f08;
  --text-muted: rgba(46, 26, 18, 0.68);
  --text-light-ink: #5c3d2e;
  
  /* Tipografi */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Kategori Mühür & Rozet Renkleri (High-Contrast & Clean) */
  --seal-ferman-bg: #fee2e2;
  --seal-ferman-border: #dc2626;
  --seal-ferman-text: #991b1b;
  
  --seal-strat-bg: #e0f2fe;
  --seal-strat-border: #0284c7;
  --seal-strat-text: #0369a1;
  
  --seal-ittifak-bg: #dcfce7;
  --seal-ittifak-border: #16a34a;
  --seal-ittifak-text: #15803d;
  
  --seal-oneri-bg: #fef3c7;
  --seal-oneri-border: #d97706;
  --seal-oneri-text: #b45309;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.forum-body {
  background-color: var(--bg-dark);
  color: var(--text-ink);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Kraliyet Tuval Atmosferi ─── */
body.forum-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(240, 208, 112, 0.22) 0%, rgba(142, 112, 63, 0.12) 35%, rgba(10, 5, 2, 0.88) 85%),
    url('../login_bg-optimized.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -2;
  pointer-events: none;
}

body.forum-body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1240px;
  height: 50%;
  background: radial-gradient(circle, rgba(240, 208, 112, 0.18) 0%, rgba(197, 160, 89, 0.06) 50%, transparent 80%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

.forum-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 40px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.forum-header {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(220, 177, 79, 0.35);
  backdrop-filter: blur(10px);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-emblem img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 2px 10px rgba(240, 208, 112, 0.5));
  transition: transform 0.25s ease;
}

.logo-area:hover .logo-emblem img {
  transform: scale(1.08) rotate(-2deg);
}

.logo-text h2 {
  font: 900 1.25rem/1.1 var(--font-serif);
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.logo-text span {
  display: block;
  font: 800 0.72rem/1 var(--font-sans);
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-nav-link {
  color: #f7e8ce;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.header-nav-link:hover,
.header-nav-link.active {
  color: #fff;
  background: rgba(220, 177, 79, 0.18);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(220, 177, 79, 0.25);
}

.header-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5cf6d, #d38b24);
  color: #1a0d05;
  font: 900 0.86rem/1 var(--font-serif);
  letter-spacing: 0.1em;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(240, 184, 78, 0.5);
  border: 1px solid #ffe28a;
  transition: all 0.2s ease;
}

.header-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 184, 78, 0.7);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.forum-hero {
  padding: 34px 0 18px;
  text-align: center;
  position: relative;
}

.forum-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(240, 208, 112, 0.18);
  border: 1.5px solid var(--gold);
  color: #fff;
  font: 800 0.75rem/1 var(--font-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 12px #2ecc71;
  display: inline-block;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.forum-title {
  font: 900 clamp(2rem, 4.2vw, 3.2rem)/1.15 var(--font-serif);
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.85);
}

.forum-title em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(240, 208, 112, 0.6);
}

.forum-subtitle {
  color: #f7e8ce;
  font-size: 1rem;
  max-width: 760px;
  margin: 0 auto 20px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Arama Çubuğu */
.forum-search-bar-wrap {
  max-width: 680px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
}

.forum-search-input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  outline: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.forum-search-input:focus {
  background: #ffffff;
  border-color: #fff2a8;
  box-shadow: 0 0 22px rgba(240, 208, 112, 0.5);
}

.forum-search-bar-wrap .search-icon {
  position: absolute;
  left: 18px;
  font-size: 1.15rem;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 16px;
  background: rgba(46, 26, 18, 0.15);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--text-ink);
  font-size: 0.8rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear-btn.active {
  display: flex;
}

/* Hızlı Aksiyon Butonları */
.forum-quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-open-new-thread {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7ce68, #d48e28);
  color: #1a0b03;
  font: 900 0.88rem/1 var(--font-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #ffe28a;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 142, 40, 0.45);
  transition: all 0.2s ease;
}

.btn-open-new-thread:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 142, 40, 0.65);
}

.btn-forum-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(46, 26, 18, 0.55);
  border: 1.2px solid rgba(220, 177, 79, 0.45);
  color: #f7e8ce;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-forum-secondary:hover {
  background: rgba(220, 177, 79, 0.2);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

/* İstatistik Şeridi */
.forum-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-chip {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(46, 26, 18, 0.65);
  border: 1px solid rgba(220, 177, 79, 0.3);
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-chip-label {
  display: block;
  font-size: 0.76rem;
  color: #d1b89d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.stat-chip-value {
  display: block;
  font: 900 1.25rem/1.1 var(--font-serif);
  color: #ffffff;
}

.stat-chip-value.gold { color: var(--gold); }
.stat-chip-value.green { color: #2ecc71; }

/* Kategori Filtreleme Sekmeleri (Mobil Settings "activeLangBadge" Kurgusu) */
.forum-filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.forum-filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.2px solid rgba(220, 177, 79, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: #f7e8ce;
  font: 800 0.84rem/1 var(--font-serif);
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(220, 177, 79, 0.25);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

.tab-btn.active {
  background: #2e1a12;
  border: 1.5px solid #8e6e2e;
  color: var(--gold);
  box-shadow: 0 4px 14px rgba(142, 110, 46, 0.5);
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   MOBİL AYARLAR EKRANI CONTAINER SİSTEMİ (SettingsScreen.tsx BİREBİR MİMARİSİ)
   - .setting-section-header (.divider-tiny + title + .divider-tiny)
   - .setting-group-outer (Gölge & Elevation)
   - .setting-group-inner (BORDER_PARCH & Aydınlık Parşömen Gradyanı)
   - .setting-ornate-border (İç Zarif Kenarlık & Aydınlık Cam Yüzey)
   ========================================================================== */

/* ─── 1. İmza Bölüm Başlığı (SectionHeader) ─── */
.setting-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.setting-section-header .divider-tiny {
  width: 28px;
  height: 1.5px;
  background-color: #dcb14f;
  opacity: 0.65;
}

.setting-section-header .section-header-title {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* ─── 2. Çekirdek Konteyner (SettingGroup) ─── */
.setting-group-outer {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.setting-group-inner {
  border-radius: 12px;
  padding: 4px;
  border: 1.2px solid var(--border-parch);
  background: linear-gradient(180deg, var(--parch-card-top) 0%, var(--parch-mid) 50%, var(--parch-dark) 100%);
}

.setting-ornate-border {
  border: 1px solid rgba(92, 64, 51, 0.22);
  border-radius: 9px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* ─── 3. Köşe Süsleri (Corner Ornaments ✦ — OTA Modal'dan) ─── */
.premium-corner-ornament {
  position: absolute;
  color: #8a5a1c;
  font-size: 11px;
  opacity: 0.45;
  pointer-events: none;
  line-height: 1;
  user-select: none;
  z-index: 2;
}

.premium-corner-ornament.top-left { top: 8px; left: 10px; }
.premium-corner-ornament.top-right { top: 8px; right: 10px; }
.premium-corner-ornament.bottom-left { bottom: 8px; left: 10px; }
.premium-corner-ornament.bottom-right { bottom: 8px; right: 10px; }

/* ─── 4. Ornate Kraliyet Ayracı (Royal Separator with ⚜) ─── */
.royal-separator-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 14px 0;
}

.royal-sep-line {
  height: 1px;
  width: 50px;
  background-color: #8a5a1c;
  opacity: 0.35;
}

.royal-sep-star {
  color: #8a5a1c;
  font-size: 15px;
  opacity: 0.75;
}

/* ==========================================================================
   MECLİS MASALARI (BOARDS CONTAINER — SETTINGNAVROW BİÇİMİ)
   ========================================================================== */
.forum-boards-list {
  display: flex;
  flex-direction: column;
}

.setting-board-row {
  display: grid;
  grid-template-columns: 46px 1fr 140px 220px 24px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(92, 64, 51, 0.12);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.setting-board-row:last-child {
  border-bottom: none;
}

.setting-board-row:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(3px);
}

.setting-icon-stamp {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf3d7, #eaddbd);
  border: 1.2px solid rgba(142, 112, 63, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.setting-board-info h4 {
  font: 900 1.05rem/1.2 var(--font-serif);
  color: var(--text-ink-heading);
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.setting-board-info p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.setting-board-count-pill {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.setting-board-count-pill strong {
  color: var(--text-ink-heading);
  font-weight: 800;
}

.setting-board-last-post {
  font-size: 0.82rem;
  text-align: right;
  line-height: 1.4;
}

.setting-last-post-title {
  display: block;
  color: #7a2010;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
  margin-left: auto;
}

.setting-last-post-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.setting-chevron {
  color: rgba(46, 26, 18, 0.45);
  font-size: 1.3rem;
  font-weight: 900;
  text-align: right;
}

/* ==========================================================================
   KONULAR AKIŞI (TOPICS FEED — SETTINGGROUP KARTLARI)
   ========================================================================== */
.topics-feed-section {
  margin-top: 14px;
}

.topics-feed-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.topics-sort-select {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.2px solid var(--gold-dark);
  color: var(--text-ink-heading);
  font-size: 0.86rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tekil Konu Kartı (SettingGroup İçerisinde) */
.topic-card-group {
  cursor: pointer;
}

.topic-card-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(142, 112, 63, 0.4);
}

.topic-row {
  display: grid;
  grid-template-columns: 46px 1fr 100px 140px 24px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: transparent;
  transition: background 0.2s ease;
}

.topic-card-group:hover .topic-row {
  background: rgba(255, 255, 255, 0.35);
}

.topic-card-group.is-pinned .setting-group-inner {
  border-left: 5px solid #d97706;
}

.topic-avatar-cell {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf3d7, #eaddbd);
  border: 1.2px solid rgba(142, 112, 63, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.topic-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.badge-pin {
  font: 900 0.68rem/1 var(--font-serif);
  padding: 3px 8px;
  border-radius: 4px;
  background: #fef08a;
  border: 1px solid #ca8a04;
  color: #854d0e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-tag {
  font: 800 0.72rem/1 var(--font-sans);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.badge-tag.ferman { background: var(--seal-ferman-bg); color: var(--seal-ferman-text); border: 1px solid var(--seal-ferman-border); }
.badge-tag.strateji { background: var(--seal-strat-bg); color: var(--seal-strat-text); border: 1px solid var(--seal-strat-border); }
.badge-tag.ittifak { background: var(--seal-ittifak-bg); color: var(--seal-ittifak-text); border: 1px solid var(--seal-ittifak-border); }
.badge-tag.oneri { background: var(--seal-oneri-bg); color: var(--seal-oneri-text); border: 1px solid var(--seal-oneri-border); }

.topic-title-link {
  font: 900 1.05rem/1.3 var(--font-serif);
  color: var(--text-ink-heading);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.topic-card-group:hover .topic-title-link {
  color: #7a2010;
}

.topic-meta-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.topic-meta-sub span {
  color: var(--text-ink);
  font-weight: 700;
}

.topic-stats-cell {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.topic-stats-cell strong {
  display: block;
  font: 900 1.05rem/1 var(--font-serif);
  color: var(--text-ink-heading);
}

.topic-last-post-cell {
  text-align: right;
  font-size: 0.82rem;
}

.topic-chevron {
  color: rgba(46, 26, 18, 0.45);
  font-size: 1.3rem;
  font-weight: 900;
  text-align: right;
}

.forum-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px dashed var(--gold-dark);
  border-radius: 14px;
  margin: 20px 0;
}

.forum-empty-state h4 {
  font: 900 1.2rem/1.2 var(--font-serif);
  color: var(--text-ink-heading);
  margin-bottom: 8px;
}

.forum-empty-state p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   SEKME-SEKME SAYFA İÇİ GEÇİŞLER (IN-PAGE VIEW ROUTING — SIFIR POPUP)
   ========================================================================== */
.forum-inpage-view {
  display: block;
  animation: fadeInView 0.25s ease-out;
}

.forum-inpage-view[hidden] {
  display: none !important;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Üst Dolaşım & Breadcrumb Çubuğu (Aydınlık & Asil) */
.inpage-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 18px;
  background: rgba(46, 26, 18, 0.7);
  border: 1.2px solid var(--gold-dark);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.btn-back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.2px solid #8e6e2e;
  background: #2e1a12;
  color: var(--gold);
  font: 900 0.84rem/1 var(--font-serif);
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-back-to-list:hover {
  background: #3e2418;
  border-color: var(--gold);
  transform: translateX(-2px);
}

.inpage-breadcrumbs {
  font-size: 0.86rem;
  color: #f7e8ce;
  font-weight: 600;
}

.inpage-breadcrumbs strong {
  color: var(--gold);
  font-weight: 800;
}

/* ==========================================================================
   KONU DETAY GÖRÜNÜMÜ (#view-topic-detail — AYDINLIK & ASİL BİÇİM)
   ========================================================================== */
.thread-detail-content {
  padding: 22px 26px;
  position: relative;
}

.thread-detail-header {
  margin-bottom: 18px;
}

.thread-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.thread-id-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: auto;
}

.thread-detail-title {
  font: 900 clamp(1.4rem, 2.8vw, 1.9rem)/1.25 var(--font-serif);
  color: var(--text-ink-heading);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 10px 0 6px;
}

/* Hükümdar / Yazar ve Sayaç Şeridi */
.thread-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(92, 64, 51, 0.15);
  margin-top: 14px;
  flex-wrap: wrap;
}

.thread-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thread-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8e703f, #c5a059);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  border: 1px solid var(--gold-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.thread-author-info .author-name {
  display: block;
  font: 900 0.95rem/1.2 var(--font-serif);
  color: var(--text-ink-heading);
}

.thread-author-info .author-role {
  display: block;
  font-size: 0.75rem;
  color: #7a2010;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.thread-stats-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Ferman Metni (Luminous Parchment Sheet) */
.thread-body-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-ink);
  white-space: pre-line;
  background: rgba(255, 255, 255, 0.85);
  padding: 24px 28px;
  border-radius: 10px;
  border: 1px solid rgba(92, 64, 51, 0.2);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-top: 18px;
}

/* Yanıtlar Listesi */
.replies-list-container {
  display: flex;
  flex-direction: column;
}

.reply-row {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(92, 64, 51, 0.12);
  background: rgba(255, 255, 255, 0.4);
}

.reply-row:last-child {
  border-bottom: none;
}

.reply-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.reply-author-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-avatar {
  font-size: 1.2rem;
}

.reply-author-name {
  font: 900 0.92rem/1.2 var(--font-serif);
  color: var(--text-ink-heading);
}

.reply-author-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(46, 26, 18, 0.08);
  color: #7a2010;
}

.reply-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.reply-row-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-ink);
}

.replies-empty-notice {
  text-align: center;
  padding: 26px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
}

/* Yanıt Gönderme Formu */
.inpage-reply-form-wrap {
  padding: 18px 20px;
}

.inpage-reply-textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 8px;
  border: 1.2px solid rgba(92, 64, 51, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-ink);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.inpage-reply-textarea:focus {
  background: #ffffff;
  border-color: #7a2010;
  box-shadow: 0 0 10px rgba(142, 112, 63, 0.25);
}

.inpage-reply-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reply-input-col {
  flex: 1;
  min-width: 240px;
}

.reply-input-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-ink);
  margin-bottom: 4px;
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}

.inpage-author-input {
  width: 100%;
  max-width: 280px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.2px solid rgba(92, 64, 51, 0.28);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-ink);
  outline: none;
}

.btn-royal-submit {
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #c5a059, #8e703f);
  color: #ffffff;
  font: 900 0.86rem/1 var(--font-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(142, 112, 63, 0.4);
  transition: all 0.2s ease;
}

.btn-royal-submit:hover {
  background: linear-gradient(135deg, #d8b26a, #9e7f48);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(142, 112, 63, 0.55);
}

/* ==========================================================================
   YENİ KONU AÇMA FORMU (#view-new-thread)
   ========================================================================== */
.new-thread-form-wrap {
  padding: 24px 26px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font: 800 0.84rem/1 var(--font-serif);
  color: var(--text-ink-heading);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.2px solid rgba(92, 64, 51, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: #ffffff;
  border-color: #7a2010;
  box-shadow: 0 0 10px rgba(142, 112, 63, 0.25);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-rules-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(92, 64, 51, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.btn-submit-thread-inpage {
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #c5a059, #8e703f);
  color: #ffffff;
  font: 900 0.92rem/1 var(--font-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(142, 112, 63, 0.45);
  transition: all 0.2s ease;
}

.btn-submit-thread-inpage:hover {
  background: linear-gradient(135deg, #d8b26a, #9e7f48);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */
.forum-footer {
  margin-top: 50px;
  padding: 24px 0 10px;
  border-top: 1.5px solid rgba(220, 177, 79, 0.25);
  font-size: 0.84rem;
  color: #d1b89d;
}

.forum-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.forum-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.forum-footer-links a {
  color: #f7e8ce;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.forum-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #2e1a12;
  border: 1.5px solid var(--gold);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.forum-toast.active {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE UYARLAMALAR (MOBİL VE TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  .setting-board-row {
    grid-template-columns: 44px 1fr 20px;
    gap: 12px;
  }
  .setting-board-count-pill,
  .setting-board-last-post {
    display: none;
  }
  .topic-row {
    grid-template-columns: 42px 1fr 20px;
    gap: 12px;
  }
  .topic-stats-cell,
  .topic-last-post-cell {
    display: none;
  }
}

@media (max-width: 680px) {
  .forum-header {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
  }
  .header-right {
    justify-content: center;
  }
  .forum-title {
    font-size: 1.85rem;
  }
  .thread-detail-content {
    padding: 16px;
  }
  .thread-body-text {
    padding: 16px;
    font-size: 0.96rem;
  }
  .inpage-nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .new-thread-form-wrap {
    padding: 16px;
  }
}
