/* forum/forum.css — AVRİSTAN Forum — Açık Tema */
/* Tasarım kılavuzu: #ffffff zemin · #02a2e9 primary · #0a1628 dark */

:root {
  --bg:           #ffffff;
  --surface:      #f4f6f9;
  --primary:      #02a2e9;
  --primary-dark: #0284c7;
  --primary-light:#e0f4fd;
  --dark:         #0a1628;
  --text:         #374151;
  --text-muted:   #6b7280;
  --text-light:   #93c5fd;
  --border:       #e5e7eb;
  --teal:         #0d9488;
  --amber:        #d97706;
  --success:      #16a34a;
  --danger:       #dc2626;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 12px rgba(2,162,233,0.10);
  --max-width:    1100px;
}

/* ── Layout ─────────────────────────────────────────────── */
.forum-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

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

@media (max-width: 860px) {
  .forum-grid { grid-template-columns: 1fr; }
  .forum-sidebar { display: none; }
}

/* ── Forum Hero ─────────────────────────────────────────── */
.forum-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.forum-hero h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .3rem;
}

.forum-hero p {
  font-size: .9rem;
  color: var(--text-muted);
}

/* ── Kategori Kartları ──────────────────────────────────── */
.kategori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kategori-kart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
  display: block;
}

.kategori-kart:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kategori-kart.aktif {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  background: var(--primary-light);
}

.kategori-icon { font-size: 1.6rem; margin-bottom: .5rem; }
.kategori-ad   { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.kategori-aciklama { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.kategori-stat { margin-top: .6rem; font-size: .75rem; color: var(--primary); font-weight: 600; }

/* ── Konu Listesi ───────────────────────────────────────── */
.konu-liste {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.konu-satir {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  align-items: center;
}

.konu-satir:last-child { border-bottom: none; }
.konu-satir:hover { background: var(--surface); }

.konu-satir-baslik {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  display: block;
  margin-bottom: .3rem;
  line-height: 1.4;
}
.konu-satir-baslik:hover { color: var(--primary); }

.konu-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.konu-yazar { display: flex; align-items: center; gap: .35rem; }
.konu-avatar { width: 20px; height: 20px; border-radius: 50%; }

.konu-istatistik {
  text-align: right;
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.konu-istatistik span { display: block; }
.konu-istatistik .sayi { font-size: 1rem; font-weight: 700; color: var(--dark); }

/* ── Rozetler ───────────────────────────────────────────── */
.rozet {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rozet-pinli   { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.rozet-kilitli { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.rozet-admin   { background: var(--primary-light); color: var(--primary); border: 1px solid #bae6fd; }
.rozet-mod     { background: #ccfbf1; color: var(--teal); border: 1px solid #99f6e4; }
.rozet-kategori { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Konu Detay ─────────────────────────────────────────── */
.konu-baslik-alani {
  margin-bottom: 1.25rem;
}
.konu-baslik-alani h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: .6rem;
}
.konu-baslik-alani .meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ── Gönderi Kutusu ─────────────────────────────────────── */
.gonderi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gonderi-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.gonderi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.gonderi-yazar { font-weight: 700; font-size: .9rem; color: var(--dark); }
.gonderi-zaman { font-size: .75rem; color: var(--text-muted); }

.gonderi-body {
  padding: 1.25rem;
  line-height: 1.75;
  color: var(--text);
  font-size: .95rem;
}

.gonderi-body code {
  background: var(--surface);
  padding: .1em .4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: .88em;
  color: var(--primary-dark);
}

.gonderi-footer {
  padding: .625rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fafafa;
}

/* ── Beğeni Butonu ──────────────────────────────────────── */
.btn-begeni {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .18s;
}
.btn-begeni:hover { border-color: var(--primary); color: var(--primary); }
.btn-begeni.aktif { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-sikayet {
  margin-left: auto;
  font-size: .75rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: color .15s;
}
.btn-sikayet:hover { color: var(--danger); }

/* ── Yanıt Formu ────────────────────────────────────────── */
.yanit-form-alani {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.yanit-form-alani h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* ── Formlar ────────────────────────────────────────────── */
.form-grup { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  color: var(--text);
  padding: .625rem .875rem;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2,162,233,.15);
}

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

/* ── Butonlar ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .18s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #0f2040; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: .4rem .875rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Bildirimler ────────────────────────────────────────── */
.bildirim {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1rem;
  display: none;
}
.bildirim.hata   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; display: block; }
.bildirim.basari { background: #dcfce7; border: 1px solid #86efac; color: #166534; display: block; }

/* ── Sayfalama ──────────────────────────────────────────── */
.sayfalama {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 1.5rem;
}

.sayfalama-btn {
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .85rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.sayfalama-btn:hover { border-color: var(--primary); color: var(--primary); }
.sayfalama-btn.aktif { background: var(--primary); border-color: var(--primary); color: #fff; }
.sayfalama-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-arkaplan {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-kutu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.modal-kapat {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1.4rem; line-height: 1;
  transition: color .15s;
}
.modal-kapat:hover { color: var(--dark); }

.modal-baslik {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.modal-sekme-grup {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: .25rem;
}

.modal-sekme {
  flex: 1;
  padding: .5rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.modal-sekme.aktif { background: #fff; color: var(--dark); box-shadow: var(--shadow-sm); }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar-kutu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-kutu-baslik {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary-light);
}

.sidebar-uye {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-uye:last-child { border-bottom: none; }
.sidebar-uye img { width: 30px; height: 30px; border-radius: 50%; }
.sidebar-uye-ad { font-size: .85rem; font-weight: 600; color: var(--dark); }
.sidebar-uye-stat { font-size: .73rem; color: var(--text-muted); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .ayirici { color: var(--border); }
.breadcrumb .aktif { color: var(--text); }

/* ── Boş Durum ──────────────────────────────────────────── */
.bos-durum {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.bos-durum-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.bos-durum h3  { color: var(--dark); margin-bottom: .5rem; font-size: 1.1rem; }

/* ── Yükleniyor ─────────────────────────────────────────── */
.yukleniyor {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}
.yukleniyor::after {
  content: '';
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: doner .7s linear infinite;
}
@keyframes doner { to { transform: rotate(360deg); } }

/* ── Moderasyon Sidebar ─────────────────────────────────── */
#mod-araclari .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: .35rem;
}
