﻿/* ============================================================
   Öğretmen Yardımcısı - Forum Stili  v3 (Öğretmen Masası)
   Kağıt zemin #FAF7F1 | Mürekkep #1C2440 | Altın #FFBD59
   Site geneliyle aynı kimlik: kağıt kartlar, başlıklar kalın Inter
   ============================================================ */

/* ── Değişkenler ───────────────────────────────────────────── */
:root {
  --primary:        #3f51b5;
  --primary-dark:   #303f9f;
  --primary-light:  #ECEBF7;
  --primary-soft:   #F0EFF9;
  --accent:         #FFBD59;
  --accent-dark:    #F5AF41;
  --success:        #2F6B5E;
  --success-light:  #E3EFEA;
  --danger:         #D96C5F;
  --danger-light:   #F9E9E6;
  --warning:        #F59E0B;
  --orange:         #F97316;
  --bg:             #FAF7F1;
  --card:           #ffffff;
  --border:         #E6E0D3;
  --border-light:   #F1ECE1;
  --text:           #1C2440;
  --text-sec:       #59627E;
  --text-muted:     #9aa3bc;
  --shadow-xs:      0 1px 2px rgba(28,36,64,.05);
  --shadow-sm:      0 1px 0 rgba(28,36,64,.04), 0 8px 22px -14px rgba(28,36,64,.18);
  --shadow:         0 1px 0 rgba(28,36,64,.04), 0 12px 32px -18px rgba(28,36,64,.22);
  --shadow-lg:      0 22px 44px -18px rgba(28,36,64,.26);
  --r:              12px;
  --r-sm:           8px;
  --r-lg:           16px;
  --r-xl:           20px;
  --nav-h:          64px;

  /* alias — eski değişken isimleriyle uyumluluk */
  --bg-body:         var(--bg);
  --bg-white:        var(--card);
  --text-primary:    var(--text);
  --text-secondary:  var(--text-sec);
  --text-light:      var(--text-muted);
  --shadow-lg:       0 12px 40px rgba(63,81,181,.14);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ── NAVBAR ──────────────────────────────────────────────────── */
.forum-nav {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(63,81,181,.06);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  white-space: nowrap;
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #5c6bc0);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 3px 8px rgba(63,81,181,.35);
}

.nav-brand span { color: var(--primary); }
.nav-sep { color: var(--border); font-size: 1.2rem; font-weight: 200; margin: 0 2px; }

.nav-title {
  font-weight: 600;
  color: var(--text-sec);
  font-size: .88rem;
}

.nav-search {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 9px 38px 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .875rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: all .2s;
  font-family: inherit;
}

.nav-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.nav-search input::placeholder { color: var(--text-muted); }

.nav-search .search-icon {
  position: absolute;
  right: 13px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .82rem;
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ── Bildirim rozeti ──────────────────────────────────────────── */
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  border-radius: 9px;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ── BUTONLAR ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5c6bc0);
  color: #fff;
  box-shadow: 0 2px 8px rgba(63,81,181,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(63,81,181,.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ffc96e);
  color: #1a2035;
  box-shadow: 0 2px 8px rgba(255,189,89,.35);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #1a2035;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-outline-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-sec);
}
.btn-outline-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-sec);
  padding: 7px 12px;
  border-radius: var(--r-sm);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 5px 12px; font-size: .8rem; border-radius: 6px; }
.btn-lg { padding: 12px 28px; font-size: 1rem; border-radius: var(--r); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.forum-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.forum-layout.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 880px;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.forum-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.sidebar-card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 2px 4px -1px rgba(0,0,0,0.02);
  overflow: hidden;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-sec);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  background: var(--card);
}

/* ── İstatistik satırları ─────────────────────────────────────── */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: .875rem;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.stat-row:last-child { border-bottom: none; }
.stat-row:hover { background: var(--bg); }
.stat-row span { color: var(--text-sec); }
.stat-row strong { font-weight: 700; color: var(--text); font-size: .9rem; }

/* ── Info row (question.php sidebar) ────────────────────────── */
.info-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-size: .875rem;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border-light);
}
.info-row:last-child { border-bottom: none; }
.info-row i { color: var(--text-muted); font-size: .8rem; width: 14px; text-align: center; }

/* ── Kategori linkleri (index sidebar) ───────────────────────── */
.cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .875rem;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border-light);
  transition: all .15s;
  position: relative;
}
.cat-link:last-child { border-bottom: none; }
.cat-link:hover { background: var(--bg); color: var(--primary); }
.cat-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.cat-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.cat-link .fas { width: 16px; text-align: center; }
.cat-link .badge-count {
  margin-left: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.cat-link.active .badge-count {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary);
}

/* ── Sidebar CTA ──────────────────────────────────────────────── */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft)) !important;
}
.sidebar-cta p {
  padding: 14px 16px;
  font-size: .85rem;
  color: var(--text-sec);
  line-height: 1.5;
}

/* ── Tips list (ask.php sidebar) ────────────────────────────── */
.tips-list {
  list-style: none;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .83rem;
  color: var(--text-sec);
  line-height: 1.45;
}
.tips-list li .fas { margin-top: 2px; flex-shrink: 0; font-size: .75rem; }

/* ── Cat info (ask.php sidebar) ─────────────────────────────── */
.cat-info {
  display: flex;
  flex-direction: column;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-light);
}
.cat-info:last-child { border-bottom: none; }
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  margin-bottom: 1px;
}

/* ── BADGES ──────────────────────────────────────────────────── */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 600;
  padding: 0 6px;
  color: var(--text-muted);
}

.badge-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px; /* Pill shape */
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px; /* Pill shape */
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-sec);
  border: 1px solid var(--border);
  transition: all .2s;
  cursor: pointer;
}
.badge-tag:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ── ANA İÇERİK - Header ─────────────────────────────────────── */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title, .page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.015em;
}

.page-title {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title .fas { color: var(--primary); font-size: 1.1rem; }

.search-result-info {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.search-result-info a { color: var(--primary); font-weight: 500; }

/* ── FİLTRE TABLARI ──────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-sec);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(63,81,181,.3);
}
.filter-tab.active .badge-count { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }

/* ── SORU LİSTESİ ────────────────────────────────────────────── */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── MODERN SORU KARTI (index.php) ─────────────────────────────────── */
.question-card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.question-card:hover {
  box-shadow: 0 12px 24px -6px rgba(63, 81, 181, 0.1);
  border-color: rgba(63, 81, 181, 0.15);
  transform: translateY(-2px);
}

.question-card.pinned::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}

.question-card.solved::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--success);
}

/* Kart Header (Yazar, Tarih, Rozetler) */
.q-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.q-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.q-author img, .q-author .avatar-placeholder {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.q-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.q-author-name:hover { color: var(--primary); text-decoration: underline; }

.q-time-dot {
  color: var(--text-muted);
  font-size: 0.6rem;
  opacity: 0.6;
}

.q-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.q-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto; /* Sağa yasla */
}

.badge-pinned, .badge-solved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}
.badge-pinned { background: #fffbeb; color: #b45309; }
.badge-solved { background: var(--success-light); color: var(--success); }

/* İçerik */
.q-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.q-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}
.q-title a { color: var(--text); text-decoration: none; transition: color .2s; }
.q-title a:hover { color: var(--primary); }

.q-snippet {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer & İstatistikler */
.q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.q-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.q-stats-inline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-item.positive { color: var(--primary); }
.stat-item.positive i { background: var(--primary-soft); color: var(--primary); padding: 4px; border-radius: 4px; }
.stat-item.negative { color: var(--danger); }
.stat-item.negative i { background: var(--danger-light); color: var(--danger); padding: 4px; border-radius: 4px; }
.stat-item.active { color: var(--text-sec); }
.stat-item.solved { color: var(--success); font-weight: 600; }
.stat-item.solved i { background: var(--success-light); color: var(--success); padding: 4px; border-radius: 4px; }
.stat-item strong { font-weight: 600; }
.stat-item.view-stat i { opacity: 0.7; }

@media (max-width: 600px) {
  .question-card { padding: 18px; }
  .q-stats-inline { gap: 10px; font-size: 0.8rem; }
  .hide-mobile { display: none; }
  .q-footer { flex-direction: column; align-items: flex-start; gap: 12px;}
}

/* ── SORU DETAY SAYFASI ──────────────────────────────────────── */
.question-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.question-detail-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.question-body-text {
  font-size: .95rem;
  color: var(--text-sec);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.question-body-text pre, .answer-body pre {
  background: #1e2433;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--r-sm);
  overflow-x: auto;
  font-size: .85rem;
  margin: 12px 0;
}

.question-body-text code, .answer-body code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .87em;
  color: var(--primary);
}

.question-body-text pre code, .answer-body pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

/* ── OY BUTONLARI ────────────────────────────────────────────── */
.vote-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vote-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-size: .85rem;
}
.vote-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.vote-btn.voted { background: var(--primary); color: #fff; border-color: var(--primary); }
.vote-btn.voted-down { background: var(--danger); color: #fff; border-color: var(--danger); }

.vote-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding: 6px 4px;
  text-align: center;
  min-width: 38px;
}
.vote-score.positive { color: var(--primary); }
.vote-score.negative { color: var(--danger); }

/* ── CEVAP KARTI ─────────────────────────────────────────────── */
.answers-section { margin-top: 28px; }

.answers-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.answers-title .badge-count {
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: .8rem;
}

.answer-card {
  margin-bottom: 24px;
  transition: all .2s;
}
.answer-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.answer-card.accepted-answer { /* question.php accepted-answer class kullanıyor */
  border-color: var(--success);
  box-shadow: 0 0 0 1px var(--success), var(--shadow-sm);
}

.accepted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success-light);
  color: var(--success);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid var(--success);
}

.answer-body {
  flex: 1;
  min-width: 0;
}
.answer-body .body-text {
  font-size: .925rem;
  color: var(--text-sec);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 14px;
}

.answer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ── CEVAP FORMU ─────────────────────────────────────────────── */
.answer-form-section {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.answer-form-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FORM ELEMENTLERİ ────────────────────────────────────────── */
.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.required { color: var(--danger); margin-left: 2px; }

.field-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select,
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--card);
  font-family: inherit;
  transition: all .2s;
  outline: none;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea { resize: vertical; min-height: 140px; }

.char-count {
  display: block;
  text-align: right;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── EDITOR TOOLBAR ──────────────────────────────────────────── */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.editor-toolbar button {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card);
  color: var(--text-sec);
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.editor-toolbar button:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

.editor-toolbar + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Etiketler inputu */
.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  min-height: 46px;
  cursor: text;
  transition: border .2s;
}
.tags-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tags-input input {
  border: none;
  outline: none;
  padding: 2px 4px;
  font-size: .875rem;
  background: transparent;
  flex: 1;
  min-width: 100px;
  box-shadow: none;
}
.tags-input input:focus { box-shadow: none; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
}
.tag-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: .9rem;
  line-height: 1;
  opacity: .7;
}
.tag-chip button:hover { opacity: 1; }

/* ── Tag Input Box (ask.php) ─────────────────────────────────── */
.tag-input-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  padding: .5rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: border-color .2s;
  cursor: text;
}
.tag-input-box:focus-within {
  border-color: var(--primary);
  background: var(--card);
}
.tag-input-box input {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: .875rem;
  min-width: 140px;
  flex: 1;
  color: var(--text);
}

/* ── Form Actions (ask.php) ──────────────────────────────────── */
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .75rem;
  flex-wrap: wrap;
}

/* ── SORU FORM (ask.php) ─────────────────────────────────────── */
.ask-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.similar-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.similar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .82rem;
  color: var(--text-sec);
}
.similar-item a { color: var(--primary); font-weight: 500; flex: 1; }
.similar-item a:hover { color: var(--primary-dark); }

/* ── LOGİN ───────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.login-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #5c6bc0);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(63,81,181,.3);
}

.login-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.login-sub {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── PROFİL ──────────────────────────────────────────────────── */
/* Eski gradyan profil basligi kaldirildi; gecerli tanim asagida (.profile-header). */
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4);
  object-fit: cover;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.profile-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.profile-rep { font-size: .875rem; opacity: .85; }

.profile-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.profile-tab {
  padding: 10px 18px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.profile-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.profile-tab:hover:not(.active) { color: var(--text-sec); }

/* ── ADMIN PANELİ ────────────────────────────────────────────── */
.admin-header {
  background: linear-gradient(135deg, #1e2035 0%, #2d3561 100%);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-title { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow .2s;
}
.admin-stat-card:hover { box-shadow: var(--shadow); }
.admin-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.admin-stat-num { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.admin-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }

/* ── KART (genel) ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── TABLO ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { background: var(--bg); padding: 11px 14px; text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-sec); vertical-align: middle; }
tr:hover td { background: var(--bg); }
tr:last-child td { border-bottom: none; }

/* ── PAGİNASYON ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-sec);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .15s;
  padding: 0 10px;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(63,81,181,.3); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ── DROPDOWN ────────────────────────────────────────────────── */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  min-width: 200px;
}

.dropdown-menu.show {
  display: block;
  animation: dropIn .15s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── User chip (navbar kullanıcı butonu) ─────────────────────── */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .18s;
  max-width: 200px;
}
.user-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft));
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-sm  { width: 30px; height: 30px; font-size: .65rem; letter-spacing: -.5px; }
.avatar-md  { width: 38px; height: 38px; font-size: .875rem; }
.avatar-lg  { width: 52px; height: 52px; font-size: 1.15rem; }

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #5c6bc0);
  color: #fff;
  letter-spacing: .02em;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: .875rem;
  color: var(--text-sec);
  cursor: pointer;
  transition: background .12s, color .12s;
  border: none;
  background: none;
  width: calc(100% - 8px);
  margin: 1px 4px;
  border-radius: 8px;
  text-align: left;
  font-family: inherit;
}
.dropdown-item:hover { background: var(--bg); color: var(--text); border-radius: 8px; }
.dropdown-item.danger:hover { background: var(--danger-light); color: var(--danger); }
.dropdown-item .fas { width: 16px; text-align: center; color: var(--text-muted); }

/* ── BOŞ DURUM ───────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.empty-state .fas, .empty-state i {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
  opacity: .45;
}
.empty-state p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ── TOAST ───────────────────────────────────────────────────── */
.toast {
  padding: 12px 18px;
  border-radius: var(--r-sm);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: slideIn .25s ease;
  max-width: 340px;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }
.toast-warning { background: var(--warning); color: var(--text); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.forum-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 48px;
}
.forum-footer a { color: var(--text-muted); }
.forum-footer a:hover { color: var(--primary); }

/* ── KULLANICI AVATAR ────────────────────────────────────────── */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.reputation-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
}

/* ── ALERT / BILGI KUTU ──────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.alert-info { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-light); }
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .forum-layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 18px;
  }
  .forum-sidebar { position: static; }
  /* Arama kutusu dar ekranda kendi satirina iner */
  .nav-inner {
    padding: 10px 16px;
    gap: 10px 10px;
    height: auto;
    flex-wrap: wrap;
  }
  .nav-brand { flex: 1 1 auto; min-width: 0; }
  .nav-brand span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-sep { display: none; }
  .nav-title { display: none; }
  .nav-actions { flex-shrink: 0; }
  .nav-search {
    order: 10;
    flex: 1 0 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 600px) {
  /* Aksiyon butonlari icin yer kalmadigindan marka adi gizlenir */
  .nav-brand { flex: 0 0 auto; }
  .nav-brand span { display: none; }

  /* Bildirim / kullanici menusu: butona degil navbar'a hizalanir,
     boylece dar ekranda sol kenardan tasip okunamaz hale gelmez. */
  .nav-actions .dropdown { position: static !important; }

  /* Rozet zil ikonunu kapatmasin */
  .nav-actions .notif-badge { top: -4px; right: -4px; }
  .forum-nav .dropdown-menu {
    left: 12px;
    right: 12px;
    top: calc(100% + 6px);
    width: auto;
    min-width: 0 !important;
    max-width: none;
  }

  /* Filtre sekmeleri 2x2 duzende, tek sirada asili kalmaz */
  .filter-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-tab { justify-content: center; }

  /* Baslik + Soru Sor: buton alt satira gecerse tam genislik alir */
  .main-header { gap: 12px; }
  .main-header > .btn { flex: 1 1 100%; justify-content: center; }

  .question-card { padding: 16px; gap: 12px; flex-direction: column-reverse; }
  .q-stats { 
      flex-direction: row; 
      width: 100%; 
      justify-content: flex-start; 
      gap: 10px;
      padding-top: 8px;
      border-top: 1px solid var(--border-light);
  } 
  .q-stat { 
      flex-direction: row;
      width: auto;
      padding: 4px 8px;
      gap: 4px;
      border: 1px solid var(--border-light);
  }
  .q-stat-num { font-size: .95rem; }
  .q-stat-label { margin-top: 0; font-size: 0.75rem; }

  .ask-form, .question-detail, .answer-form-section { padding: 18px; }
  .login-box { padding: 28px 22px; }
  .filter-tabs { gap: 5px; }
  .filter-tab { padding: 6px 12px; font-size: .78rem; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }

  .post-card { flex-direction: column; }
  .vote-col { 
    flex-direction: row; 
    width: 100%; 
    border-right: none; 
    border-top: 1px solid var(--border); 
    padding: 16px 20px; 
    justify-content: center;
    gap: 16px;
  }
  .vote-view-count { margin-top: 0; margin-left: auto; }
  .vote-score { min-width: auto; padding: 0; }
  .solved-mark { margin-top: 0; margin-left: auto; }
  
  .post-body { padding: 20px; }
  .post-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .author-card { justify-content: flex-start; }
}

@media (max-width: 440px) {
  /* Cok dar ekran: aksiyonlar tek satira sigsin diye buton yaziya inmez */
  .nav-inner { gap: 8px; padding: 10px 12px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-accent { font-size: 0; gap: 0; padding: 9px 12px; }
  .nav-actions .btn-accent i { font-size: .95rem; }
  .user-chip .admin-badge { display: none; }
}

@media (max-width: 400px) {
  .admin-stat-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   EK STİLLER — question.php / admin / profile
   ============================================================ */

/* ── BREADCRUMBs ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

/* ── POST CARD (question.php ana içerik) ─────────────────────── */
/* defined below instead */

/* Oy sütunu */
.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: var(--card); /* changed from bg for a cleaner look */
  border-right: 1px solid var(--border-light);
  flex-shrink: 0;
  width: 76px;
}

.vote-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.15rem;
}
.vote-btn:hover:not(:disabled) { border-color: rgba(63, 81, 181, 0.3); color: var(--primary); background: var(--primary-soft); transform: scale(1.05); }
.vote-btn.voted-up, .vote-btn.voted-down { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.05); }
.vote-btn.voted-down { background: var(--danger); border-color: var(--danger); }
.vote-btn:disabled { opacity: .45; cursor: not-allowed; }

.vote-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  padding: 4px 0;
  text-align: center;
  min-width: 44px;
  line-height: 1;
}
.vote-score[data-score]:not([data-score="0"]) { color: var(--primary); }

.solved-mark {
  color: var(--success);
  font-size: 1.6rem;
  margin-top: 12px;
  background: var(--success-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-view-count {
  margin-top: 10px; 
  font-size: 0.8rem; 
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Post gövdesi */
.post-body {
  flex: 1;
  min-width: 0;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.post-content {
  font-size: 1rem;
  color: #334155; /* A bit darker for readability */
  line-height: 1.8;
  word-break: break-word;
  margin-bottom: 32px; /* more spacing before footer */
}

.post-content pre {
  background: #1e2433;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--r-sm);
  overflow-x: auto;
  font-size: .85rem;
  margin: 12px 0;
}

.post-content code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .87em;
  color: var(--primary);
}

.post-content pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.post-time {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-link {
  background: none;
  border: none;
  font-size: .8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  font-weight: 500;
}
.btn-link:hover { background: var(--bg); color: var(--text-sec); }
.btn-link.text-danger:hover { background: var(--danger-light); color: var(--danger); }

/* ── AUTHOR CARD ─────────────────────────────────────────────── */
.author-card {
  grid-area: author;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 0.9rem;
  min-width: 220px;
}
.author-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.author-card .post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.avatar-md {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  background: var(--primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.avatar-placeholder {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.author-name {
  font-size: .87rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.author-name:hover {
  text-decoration: underline;
  color: var(--primary);
}

.rep-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warning);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.author-name:hover { color: var(--primary); }

.rep-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
}

/* ── EDIT FORM ───────────────────────────────────────────────── */
.edit-form {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

/* ── CEVAP KARTLARI (post-card style) ───────────────────────── */
.answers-section {
  margin-top: 28px;
}

.answers-section .section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ── ADMIN PANELİ CLASS'LARI ─────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  transition: all .2s;
  color: var(--text);
}
.stat-card:hover { box-shadow: var(--shadow); border-color: rgba(63,81,181,.25); transform: translateY(-1px); color: var(--text); }
.stat-card.danger { border-color: var(--danger); background: var(--danger-light); }
.stat-card .fas { font-size: 1.4rem; color: var(--primary); margin-bottom: 4px; }
.stat-card.danger .fas { color: var(--danger); }

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
  text-decoration: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.admin-tab:hover:not(.active) { background: var(--bg); color: var(--text-sec); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.badge-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  border-radius: 9px;
  font-size: .7rem;
  font-weight: 700;
  padding: 0 5px;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { background: var(--bg); padding: 10px 14px; text-align: left; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-sec); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg); }
.admin-table tr:last-child td { border-bottom: none; }

.table-link { color: var(--text); font-weight: 500; }
.table-link:hover { color: var(--primary); }

.btn-xs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-sec);
  font-family: inherit;
  transition: all .15s;
  text-decoration: none;
}
.btn-xs:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-xs.danger { border-color: #fca5a5; color: var(--danger); background: var(--danger-light); }
.btn-xs.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-xs.success { border-color: #a7f3d0; color: var(--success); background: var(--success-light); }

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 600;
  margin-right: 4px;
}
.badge-status.pin { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-status.solved { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.badge-status.closed { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }

/* ── PROFİL SAYFA CLASS'LARI ─────────────────────────────────── */
.profile-card { text-align: center; padding: 24px !important; }

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
  margin: 0 auto 12px;
  display: block;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft));
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.admin-badge-profile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--primary), #5c6bc0);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-joined {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.profile-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: .875rem;
}
.profile-stat:last-child { border-bottom: none; }
.profile-stat .fas { width: 18px; text-align: center; }
.profile-stat .label { color: var(--text-muted); flex: 1; }
/* profile.php etiketleri class'siz <span>; deger saga yaslansin diye. */
.profile-stat > span { color: var(--text-muted); flex: 1; }
.profile-stat > strong { font-weight: 700; color: var(--text); }
.profile-stat .val { font-weight: 700; color: var(--text); }

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Profile item (soru/cevap listesi) */
.profile-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.profile-item:last-child { border-bottom: none; }
.profile-item:hover { background: var(--bg); }

.item-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  min-width: 40px;
}

.q-mini-score, .q-mini-ans {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0 6px;
}
.q-mini-score.pos { background: var(--primary-soft); border-color: var(--primary-light); color: var(--primary); }
.q-mini-score.neg { background: var(--danger-light); border-color: #fca5a5; color: var(--danger); }
.q-mini-ans.solved { background: var(--success-light); border-color: #a7f3d0; color: var(--success); }
.q-mini-ans.has { background: var(--primary-soft); border-color: var(--primary-light); color: var(--primary); }

.item-content {
  flex: 1;
  min-width: 0;
}
.item-content a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.item-content a:hover { color: var(--primary); }
.item-content .meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ── FİX: post-card doğrudan flex layout ─────────────────────── */
.post-card {
  display: flex !important;
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.05) !important;
  border-radius: 12px;
  padding: 0 !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 2px 4px -1px rgba(0,0,0,0.02) !important;
  margin-bottom: 24px;
  overflow: hidden;
  align-items: stretch;
}

/* ── FİX: sidebar override ───────────────────────────────────── */
.sidebar-card { padding: 0; }

/* ── FİX: question-card .q-author avatar ────────────────────── */
.q-author .avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── SEPARATOR ───────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-primary { color: var(--primary) !important; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.w-100 { width: 100%; }


/* ============================================================
   EK STILLER — inline style bloklarından taşındı
   ============================================================ */

/* ── Cevap formu bölümü (question.php) ───────────────────────── */
.reply-section {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.reply-form textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 10px 14px;
  font: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--card);
  transition: border-color .2s;
}
.reply-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.login-prompt,
.closed-notice {
  text-align: center;
  padding: 28px;
  color: var(--text-muted);
  font-size: .9rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  margin-top: 16px;
}
.login-prompt a,
.closed-notice a {
  color: var(--primary);
  font-weight: 600;
}
.closed-notice { border-color: #fca5a5; background: var(--danger-light); color: #991b1b; }

.accepted-mark { color: var(--success); font-size: 1.1rem; }
.accept-btn { border-color: var(--border) !important; color: var(--text-muted) !important; }
.accept-btn.accepted { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }

/* ── Profile item alanları ───────────────────────────────────── */
.item-title {
  color: var(--primary);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
  line-height: 1.4;
}
.item-title:hover { text-decoration: underline; }

.item-excerpt {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 3px 0;
  line-height: 1.4;
}

.item-time {
  font-size: .72rem;
  color: var(--text-muted);
}

/* ── Pagination .page-btn (admin.php) ────────────────────────── */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: .875rem;
  text-decoration: none;
  transition: all .15s;
  background: var(--card);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ── page-dots ───────────────────────────────────────────────── */
.page-dots { padding: 0 6px; color: var(--text-muted); line-height: 34px; }

/* ── Oy butonu — yuvarlak varyant ────────────────────────────── */
.vote-btn.round { border-radius: 50%; width: 32px; height: 32px; }

/* ── Soru q-stat.answered (kırmızı değil yeşil box) ─────────── */
.q-stat.answered {
  background: var(--success-light);
  border: 1px solid #a7f3d0;
}
.q-stat.answered .q-stat-num { color: var(--success); }
.q-stat.answered .q-stat-label { color: var(--success); }

/* ── Sidebar istatistik satırları yatay padding ─────────────── */
.sidebar-card .stat-row {
  padding: 10px 16px;
}

/* ── Q-stat kutularına yatay padding ─────────────────────────── */
.question-card .q-stat {
  padding: 7px 6px;
}

/* ── Profile stat hizalama ───────────────────────────────────── */
.profile-stat .label { flex: 1; }
.profile-stat .val   { font-weight: 700; color: var(--text); }

/* ── Admin stat card text-align ─────────────────────────────── */
.stats-grid .stat-card {
  text-align: center;
}

/* ── Shadow-md (eski dosyalarda geçiyor) ─────────────────────── */
:root { --shadow-md: 0 4px 16px rgba(0,0,0,.1); }

/* ============================================================
   GÖRSEL YÜKLEME SİSTEMİ
   ============================================================ */

/* ── Upload Bölgesi ──────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.upload-zone.drag-over { box-shadow: 0 0 0 4px rgba(63, 81, 181, 0.1); }
.upload-zone-sm .upload-zone-inner {
  flex-direction: row;
  padding: 12px 16px;
  gap: 10px;
}
.upload-zone-sm .upload-zone-inner .fas { font-size: 1.1rem; }
.upload-zone-sm .upload-zone-text { font-size: .85rem; }

.upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 8px;
  pointer-events: none;
}
.upload-zone-inner .fas { font-size: 2rem; color: var(--primary); opacity: .6; }
.upload-zone-text { font-size: .9rem; color: var(--text-sec); font-weight: 500; }
.upload-zone-text u { color: var(--primary); }
.upload-zone-hint { font-size: .78rem; color: var(--text-muted); }

/* ── Önizleme Grid ───────────────────────────────────────────── */
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.upload-preview-grid:empty { display: none; }

.upload-preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  cursor: default;
}
.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.upload-preview-item:hover img { transform: scale(1.04); }

/* Remove button */
.upload-preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  border: none;
  color: #fff;
  font-size: .7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
  z-index: 2;
}
.upload-preview-item:hover .upload-preview-remove { opacity: 1; }

/* Progress overlay */
.upload-preview-progress {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.upload-preview-progress .progress-bar-track {
  width: 70%;
  height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  overflow: hidden;
}
.upload-preview-progress .progress-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  transition: width .15s;
}
.upload-preview-progress span {
  font-size: .7rem;
  color: #fff;
  font-weight: 600;
}

/* Error state */
.upload-preview-item.upload-error { border-color: var(--danger); }
.upload-preview-item.upload-error::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(239, 68, 68, .12);
}
.upload-preview-error-msg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  padding: 4px 6px;
  text-align: center;
  z-index: 4;
}

/* ── Soru Görsel Galerisi (question.php) ─────────────────────── */
.q-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
  max-width: 100%;
}

/* Single image → wider */
.q-image-gallery:has(.q-img-thumb:only-child) {
  grid-template-columns: 1fr;
  max-width: 480px;
}
/* Two images → 2 columns */
.q-image-gallery:has(.q-img-thumb:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
  max-width: 520px;
}

.q-img-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: zoom-in;
  padding: 0;
  display: block;
  transition: all .2s ease;
  max-height: 260px;
}
.q-img-thumb:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(63,81,181,.15); }
.q-img-thumb img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
  max-height: 260px;
}
.q-img-thumb:hover img { transform: scale(1.03); }

.q-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: background .2s;
  pointer-events: none;
}
.q-img-thumb:hover .q-img-overlay { background: rgba(0,0,0,.28); }
.q-img-overlay .fas { opacity: 0; transform: scale(.7); transition: all .2s; }
.q-img-thumb:hover .q-img-overlay .fas { opacity: 1; transform: scale(1); }

/* ── Lightbox ────────────────────────────────────────────────── */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.img-lightbox.open {
  display: flex;
  animation: lbFadeIn .18s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-img-wrap {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: auto;
}
#lb-img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  display: block;
  animation: lbImgIn .2s ease;
  user-select: none;
}
@keyframes lbImgIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
#lb-img.lb-loading { opacity: 0; }

.lb-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 1.8rem;
}
.lb-spinner.show { display: flex; }

.lb-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 10001;
  backdrop-filter: blur(4px);
}
.lb-close:hover { background: rgba(255,255,255,.22); }

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  z-index: 10001;
  backdrop-filter: blur(4px);
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav:active { transform: translateY(-50%) scale(.93); }
.lb-nav:disabled { opacity: .2; pointer-events: none; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.9);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  pointer-events: none;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
}

/* ── Mobile adjustments ─────────────────────────────────────── */
@media (max-width: 600px) {
  .upload-preview-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .q-image-gallery { grid-template-columns: repeat(2, 1fr); max-width: 100% !important; gap: 8px; }
  .q-img-thumb { max-height: 180px; }
  .q-img-thumb img { max-height: 180px; }
  .lb-nav { width: 38px; height: 38px; font-size: .85rem; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}


/* ============================================================
   v3 KAPLAMA — "Öğretmen Masası" kimliği
   Site geneliyle ortak dil: kağıt zemin, mürekkep, altın vurgu,
   başlıklar kalın Inter. Bileşen yapısına dokunmadan üste giyer.
   ============================================================ */

/* Nav: kağıt dokulu, altında turuncu şerit.
   Renk logodaki turuncu klasörden alındı; sitedeki .brand-stripe ile aynı. */
.forum-nav {
  background: rgba(250, 247, 241, .94);
  border-bottom: 6px solid #F3AC4E;
}
/* Ölçüler siteyle aynı: gövde 16px, marka adı 18px kalın.
   Forum tabanı bunları daha küçük tuttuğu için iki taraf ayrı görünüyordu. */
body { font-size: 16px; }

.nav-brand { font-size: 1.125rem; font-weight: 700; gap: 12px; }
.nav-brand span { color: var(--text); letter-spacing: -0.022em; }
.nav-title { font-size: .95rem; letter-spacing: -0.022em; }
.nav-sep { font-size: 1.35rem; }

/* Başlıklar: kalın Inter */
.page-title, .section-title, .sidebar-title, .q-title {
  font-weight: 800;
  letter-spacing: -.022em;
}

/* Arama kutusu: kağıt üstü form alanı */
.nav-search input {
  background: #fff;
  border-color: var(--border);
}
.nav-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, .12);
}

/* Altın buton: mürekkep yazı */
.btn-accent { color: #1C2440; font-weight: 800; }
.btn-accent:hover { background: var(--accent-dark); color: #1C2440; }

/* Kartlara kağıt gölgesi */
.sidebar-card { box-shadow: var(--shadow-sm); }

/* Rozet: yumuşak altın */
.notif-badge { background: #D96C5F; }
