/* ═══════════════════════════════════════════════════════════════════════
   AcademyPia Forum v2 — Brand-aligned CSS (Mavi-Beyaz)
   Reddit yapısı, AcademyPia görsel kimliği
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Brand Variables ──────────────────────────────────────────────── */
:root {
  /* AcademyPia brand */
  --f-primary: #0093df;
  --f-primary-dark: #0077b5;
  --f-primary-light: #38a4ff;
  --f-accent: #4cd3e3;
  --f-accent-light: #73fbaf;

  /* Semantic */
  --f-upvote: #0093df;
  --f-downvote: #4a4a4a;
  --f-success: #1da851;
  --f-danger: #f44a40;
  --f-warning: #f4e700;

  /* Surfaces */
  --f-bg: #f9f9ff;
  --f-bg-alt: #eef4fb;
  --f-card: #ffffff;
  --f-text: #222222;
  --f-text-muted: #797979;
  --f-text-light: #9ca3af;
  --f-border: #c0c4cf;
  --f-border-light: #e8ecf1;

  /* Header */
  --f-header-bg: linear-gradient(135deg, #1a1a2e 0%, #0077b5 100%);
  --f-header-text: #ffffff;

  /* Shadows */
  --f-shadow: 0 1px 3px rgba(0, 119, 181, 0.06), 0 1px 2px rgba(0, 119, 181, 0.04);
  --f-shadow-hover: 0 4px 12px rgba(0, 119, 181, 0.12), 0 2px 4px rgba(0, 119, 181, 0.06);
  --f-shadow-lg: 0 10px 30px rgba(0, 119, 181, 0.18);

  /* Category (brand-aligned) */
  --f-cat-genel: #0093df;
  --f-cat-egitim: #38a4ff;
  --f-cat-oneri: #4cd3e3;
  --f-cat-duyuru: #f44a40;
  --f-cat-soru: #0077b5;
  --f-cat-basari: #1da851;

  /* Vote state — mavi tonları (kırmızı/turuncu YOK) */
  --f-voted-up: #0093df;
  --f-voted-down: #9ca3af;

  /* Awards (mavi/turkuaz tonları) */
  --f-gold: #4cd3e3;
  --f-silver: #a0a8c0;
  --f-helpful: #38a4ff;
}

/* ─── Header (Brand gradient) ──────────────────────────────────────── */
.forum-header {
  background: var(--f-header-bg);
  color: var(--f-header-text);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.2);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text i { color: var(--f-accent); }
.logo-text span { color: var(--f-accent); font-weight: 400; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.nav-menu .menu-active a { color: var(--f-accent); background: rgba(76, 211, 227, 0.15); }
.btn-auth-signin, .btn-auth-signup {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 6px 16px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 6px;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-auth-signup {
  background: var(--f-primary);
  border-color: var(--f-primary);
}
.btn-auth-signin:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }
.btn-auth-signup:hover { background: var(--f-primary-dark); border-color: var(--f-primary-dark); }

/* ─── User Dropdown ─────────────────────────────────────────────────── */
.menu-user-dropdown {
  position: relative;
}
/* Hover dropdown — avatar üstüne gelince açılır, menüye geçerken kaybolmaz */
.menu-user-dropdown:hover .user-dropdown,
.menu-user-dropdown .user-dropdown:hover {
  display: block;
}

.user-avatar-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 12px !important;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--f-primary), var(--f-accent));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 147, 223, 0.3);
}
.user-karma {
  font-size: 12px;
  color: var(--f-accent);
  font-weight: 600;
  background: rgba(76, 211, 227, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  color: var(--f-text);
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-top: 0;
  padding: 8px 0;
  list-style: none;
  z-index: 1001;
  border: 1px solid #eef2f6;
}
/* Görünmez köprü — avatar'dan menü'ye geçerken kaybolmayı önler */
.user-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}
.user-dropdown.show { display: block; }
.user-dropdown .dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--f-border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dropdown-header span:first-child {
  font-weight: 700;
  color: var(--f-primary);
}
.dropdown-karma {
  font-size: 12px;
  color: var(--f-text-muted);
}
.dropdown-karma i { color: var(--f-primary); }
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px !important;
  color: var(--f-text) !important;
  font-size: 14px !important;
}
.user-dropdown a i { color: var(--f-primary); width: 16px; }
.user-dropdown a:hover { background: var(--f-bg) !important; }

/* ─── Main Layout ───────────────────────────────────────────────────── */
.forum-main { background: var(--f-bg); min-height: 100vh; padding: 24px 0; }
.forum-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 24px;
}
@media (max-width: 1024px) {
  .forum-container { grid-template-columns: 200px 1fr; }
  .forum-sidebar-right { display: none; }
}
@media (max-width: 768px) {
  .forum-container { grid-template-columns: 1fr; }
  .forum-sidebar-left { display: none; }
}

/* ─── Sidebar Cards ─────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--f-card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--f-shadow);
  border: 1px solid var(--f-border-light);
}
.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--f-text);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--f-border-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-title i { color: var(--f-primary); }

.category-list-sidebar { list-style: none; padding: 0; margin: 0; }
.category-item { margin: 2px 0; }
.category-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--f-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
  font-weight: 500;
}
.category-item a:hover { background: var(--f-bg); }
.category-item.active a {
  background: linear-gradient(135deg, var(--f-primary), var(--f-primary-light));
  color: white;
  box-shadow: 0 2px 8px rgba(0, 147, 223, 0.3);
}
.category-item.active i { color: white !important; }
.category-item a i:first-child { color: var(--f-primary); width: 18px; }

.sidebar-cta {
  text-align: center;
  background: linear-gradient(135deg, #eef4fb 0%, #f9f9ff 100%);
}
.sidebar-cta p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--f-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sidebar-cta p i { color: var(--f-primary); }
.btn-cta-primary,
.btn-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 6px 0;
  padding: 10px;
  border-radius: 24px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cta-primary {
  background: linear-gradient(135deg, var(--f-primary), var(--f-primary-dark));
  color: white;
  box-shadow: 0 3px 10px rgba(0, 147, 223, 0.3);
}
.btn-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 147, 223, 0.4);
}
.btn-cta-secondary {
  background: transparent;
  color: var(--f-primary);
  border: 1.5px solid var(--f-primary);
}
.btn-cta-secondary:hover { background: var(--f-primary); color: white; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.trending-tag {
  display: inline-block;
  color: var(--f-primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 147, 223, 0.06);
  border: 1px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
  line-height: 1.4;
}
.trending-tag:hover {
  background: var(--f-primary);
  color: #fff;
  border-color: var(--f-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 147, 223, 0.25);
}
.tag-placeholder { font-size: 12px; color: var(--f-text-muted); }
.topic-tag {
  display: inline-block;
  background: var(--f-bg);
  color: var(--f-primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.topic-tag:hover { background: var(--f-primary); color: white; }

/* ─── Top Users ─────────────────────────────────────────────────────── */
.top-users-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ════════════════════ Base Item ════════════════════ */
.top-user-item {
  position: relative;
  background: var(--f-bg);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  animation: topUserSlideIn 0.4s ease both;
}

.top-user-item:hover {
  border-color: var(--f-border-light);
  background: var(--f-card);
  box-shadow: var(--f-shadow-hover);
  transform: translateY(-1px);
}

/* stagger animation — delay set via JS style attr */
@keyframes topUserSlideIn {
  from { opacity: 0; transform: translateX(-12px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ════════════════════ Medal (Top 3) ════════════════════ */
.top-user-medal {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 2;
  border: 2px solid var(--f-card);
}
.top-user-medal.gold   { background: linear-gradient(135deg, #ffd700, #ffb300); }
.top-user-medal.silver { background: linear-gradient(135deg, #e8e8e8, #b0b8c8); }
.top-user-medal.bronze { background: linear-gradient(135deg, #ffb08c, #d4876a); }

/* ════════════════════ Rank Badge (4+) ════════════════════ */
.top-user-rank {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--f-text-muted);
  background: var(--f-border-light);
  transition: all 0.2s;
}
.top-user-item:hover .top-user-rank {
  background: var(--f-primary);
  color: #fff;
}

/* ════════════════════ Avatar ════════════════════ */
.top-user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.top-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.top-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.top-user-avatar.gold-avatar   { background: linear-gradient(135deg, #ffd700, #ff9d00); box-shadow: 0 2px 8px rgba(255, 215, 0, 0.35); }
.top-user-avatar.silver-avatar { background: linear-gradient(135deg, #d0d8e8, #8a94a8); box-shadow: 0 2px 8px rgba(176, 184, 200, 0.3); }
.top-user-avatar.bronze-avatar { background: linear-gradient(135deg, #ffb08c, #cc7a5e); box-shadow: 0 2px 8px rgba(204, 122, 94, 0.3); }
.top-user-avatar.default-avatar { background: linear-gradient(135deg, var(--f-primary), var(--f-accent)); }

.top-user-item:hover .top-user-avatar { transform: scale(1.08); }

/* Avatar glow ring — top 3 */
.top-user-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.top-user-item:hover .top-user-avatar-wrap::after { opacity: 1; }
.top-user-avatar-wrap.glow-gold::after   { background: linear-gradient(135deg, #ffd700, #ff9d00); }
.top-user-avatar-wrap.glow-silver::after { background: linear-gradient(135deg, #d0d8e8, #8a94a8); }
.top-user-avatar-wrap.glow-bronze::after { background: linear-gradient(135deg, #ffb08c, #cc7a5e); }

/* ════════════════════ Info column ════════════════════ */
.top-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.top-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--f-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.top-user-name:hover { color: var(--f-primary); }

/* ════════════════════ Karma row ════════════════════ */
.top-user-karma-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-user-karma {
  font-size: 12px;
  font-weight: 700;
  color: var(--f-primary);
  display: flex;
  align-items: center;
  gap: 3px;
}
.top-user-karma i { font-size: 11px; }

/* mini karma breakdown */
.top-user-karma-sub {
  font-size: 10px;
  color: var(--f-text-light);
  display: flex;
  gap: 8px;
}
.top-user-karma-sub span { display: flex; align-items: center; gap: 2px; }

/* ════════════════════ Karma bar ════════════════════ */
.top-user-karma-bar {
  margin-top: 2px;
  height: 4px;
  background: var(--f-border-light);
  border-radius: 4px;
  overflow: hidden;
}
.top-user-karma-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--f-primary-light), var(--f-primary));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-user-karma-bar-fill.gold-fill   { background: linear-gradient(90deg, #ffd700, #ff8c00); }
.top-user-karma-bar-fill.silver-fill { background: linear-gradient(90deg, #b0b8c8, #7a84a0); }
.top-user-karma-bar-fill.bronze-fill { background: linear-gradient(90deg, #ffb08c, #cc7a5e); }

/* ════════════════════ Clickable link overlay ════════════════════ */
.top-user-link {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: 1;
}

/* ─── Rules ─────────────────────────────────────────────────────────── */
.rules-list { padding-left: 20px; margin: 0; font-size: 13px; color: var(--f-text); }
.rules-list li { margin-bottom: 6px; }
.rules-list li::marker { color: var(--f-primary); }

/* ─── Feed Header & Sort Bar ────────────────────────────────────────── */
.view-container { background: transparent; }
.feed-header {
  background: var(--f-card);
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--f-shadow);
  border: 1px solid var(--f-border-light);
}
.feed-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--f-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-header h2 i { color: var(--f-primary); }
.breadcrumb-nav { font-size: 13px; color: var(--f-text-muted); }
.breadcrumb-nav a {
  color: var(--f-primary);
  text-decoration: none;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav .fa-chevron-right { margin: 0 6px; font-size: 9px; opacity: 0.6; }

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--f-card);
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--f-shadow);
  border: 1px solid var(--f-border-light);
  flex-wrap: wrap;
  gap: 8px;
}
.sort-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.sort-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--f-text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sort-btn:hover { background: var(--f-bg); color: var(--f-text); }
.sort-btn.active {
  background: linear-gradient(135deg, var(--f-primary), var(--f-primary-light));
  color: white;
  box-shadow: 0 2px 8px rgba(0, 147, 223, 0.3);
}
.sort-btn.active i { color: white; }
.sort-search input {
  padding: 8px 14px;
  border: 1px solid var(--f-border);
  border-radius: 24px;
  font-size: 13px;
  width: 240px;
  outline: none;
  transition: all 0.2s;
  background: var(--f-bg);
}
.sort-search input:focus {
  border-color: var(--f-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 147, 223, 0.1);
}

/* ─── Topic Cards (Brand-aligned Reddit layout) ───────────────────── */
.topic-list { display: flex; flex-direction: column; gap: 10px; }
.topic-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--f-card);
  border-radius: 12px;
  padding: 14px;
  gap: 14px;
  box-shadow: var(--f-shadow);
  transition: all 0.2s;
  border: 1px solid var(--f-border-light);
  cursor: pointer;
}
.topic-card:hover {
  box-shadow: var(--f-shadow-hover);
  transform: translateY(-1px);
  border-color: var(--f-primary-light);
}
.topic-card.is-pinned { border-left: 4px solid var(--f-primary); background: linear-gradient(90deg, #eef4fb 0%, #ffffff 30%); }
.topic-card.is-locked { opacity: 0.65; }

/* Vote — Topic Card Like/Dislike */
.topic-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f0f2f5;
  padding: 8px 4px;
  width: 44px;
  align-self: start;
}
.topic-vote-col .vote-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #c4cad4;
  font-size: 14px;
  width: 36px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.topic-vote-col .vote-btn:hover {
  transform: scale(1.15);
}
.topic-vote-col .vote-btn.vote-up:hover {
  color: #16a34a;
  background: #e6f7e6;
}
.topic-vote-col .vote-btn.vote-down:hover {
  color: #ef4444;
  background: #fef2f2;
}
.topic-vote-col .vote-btn:active {
  transform: scale(0.92);
}
.topic-vote-count {
  font-size: 13px;
  font-weight: 800;
  color: #1a1a2e;
  padding: 2px 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  min-width: 28px;
}

.topic-content-col { min-width: 0; }
.topic-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--f-text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.topic-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.topic-pin-badge, .topic-locked-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.topic-pin-badge { background: rgba(0, 147, 223, 0.1); color: var(--f-primary); }
.topic-locked-badge { background: rgba(244, 74, 64, 0.1); color: var(--f-danger); }
.topic-author a {
  color: var(--f-primary);
  text-decoration: none;
  font-weight: 500;
}
.topic-author a:hover { text-decoration: underline; }
.topic-time::before { content: "•"; margin: 0 6px; opacity: 0.5; }

.topic-title {
  font-size: 17px;
  font-weight: 600;
  margin: 4px 0;
  line-height: 1.4;
  color: var(--f-text);
}
.topic-title a {
  color: var(--f-text);
  text-decoration: none;
}
.topic-title a:hover { color: var(--f-primary); }

.topic-excerpt {
  font-size: 13px;
  color: var(--f-text-muted);
  line-height: 1.55;
  margin: 6px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.topic-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--f-border-light);
}
.topic-action, .topic-share, .topic-award {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--f-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  font-weight: 500;
}
.topic-action:hover, .topic-share:hover, .topic-award:hover {
  background: var(--f-bg);
  color: var(--f-primary);
}
.topic-action i, .topic-share i, .topic-award i { color: var(--f-text-light); }
.topic-action:hover i, .topic-share:hover i, .topic-award:hover i { color: var(--f-primary); }

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.award-badge.gold { background: rgba(76, 211, 227, 0.15); color: #00838f; }
.award-badge.silver { background: rgba(160, 168, 192, 0.15); color: #5a6c7d; }
.award-badge.helpful { background: rgba(56, 164, 255, 0.15); color: var(--f-primary-dark); }

/* ─── Topic Detail ──────────────────────────────────────────────────── */
.topic-detail {
  display: grid;
  grid-template-columns: 52px 1fr;
  background: var(--f-card);
  border-radius: 14px;
  padding: 28px 24px;
  gap: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,119,181,0.06);
  border: 1px solid #eef2f6;
}
/* Vote Column — Like/Dislike Modern */
.topic-detail-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 12px 0;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #f0f2f5;
  width: 48px;
  align-self: start;
}
.topic-detail-vote .vote-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #c4cad4;
  font-size: 16px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.topic-detail-vote .vote-btn:hover {
  background: #e8f4fd;
  color: var(--f-primary);
  transform: scale(1.1);
}
.topic-detail-vote .vote-btn:active {
  transform: scale(0.92);
}
.topic-detail-vote .vote-btn.vote-up:hover {
  color: #16a34a;
  background: #e6f7e6;
}
.topic-detail-vote .vote-btn.vote-down:hover {
  color: #ef4444;
  background: #fef2f2;
}
.topic-detail-vote .vote-count {
  font-size: 14px;
  font-weight: 800;
  color: var(--f-text);
  padding: 4px 0;
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
/* Topic Detail Body */
.topic-detail-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Header */
.topic-detail-header {
  margin-bottom: 20px;
}
.topic-category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.topic-detail-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
/* Kategori renkleri */
.category-genel { background: #e8f4fd; color: #0077b5; }
.category-egitim { background: #fef0f7; color: #d63384; }
.category-oneri { background: #fff8e1; color: #b8860b; }
.category-duyuru { background: #fde8e8; color: #dc2626; }
.category-soru-cevap { background: #e6f7e6; color: #16a34a; }
.category-basari-hikayeleri { background: #f3e8ff; color: #7c3aed; }
.topic-detail-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  margin: 0 0 10px;
}
.topic-detail-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--f-text-muted);
  flex-wrap: wrap;
}
.topic-detail-meta .meta-dot {
  color: #d0d5dd;
  font-weight: 700;
  font-size: 10px;
}
.topic-detail-meta .topic-author {
  font-weight: 500;
  color: var(--f-primary);
}
.topic-detail-meta i {
  margin-right: 3px;
  font-size: 12px;
}
/* Tags */
.topic-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag-sm {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 12px;
  transition: all 0.15s;
}
.tag-sm:hover { background: #e2e8f0; color: #334155; }
/* Content */
.topic-detail-content {
  font-size: 15px;
  line-height: 1.75;
  color: #1a1a2e;
  padding: 16px 0;
}
/* Actions bar */
.topic-detail-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid #f0f2f5;
}
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-action-edit {
  background: #f0f7ff;
  color: var(--f-primary);
}
.btn-action-edit:hover {
  background: #dceeff;
  color: var(--f-primary-dark);
}
.btn-action-delete {
  background: #fef2f2;
  color: #ef4444;
}
.btn-action-delete:hover {
  background: #fde5e5;
  color: #dc2626;
}
.btn-action-report {
  background: #f5f3ff;
  color: #8b5cf6;
}
.btn-action-report:hover {
  background: #ede9fe;
  color: #7c3aed;
}

/* ─── Comments Section ──────────────────────────────────────────────── */
.comments-section {
  background: var(--f-card);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,119,181,0.06);
  border: 1px solid #eef2f6;
}
.comments-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f2f5;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
}
.comments-title i { color: var(--f-primary); }
.comments-title span { color: var(--f-text-muted); font-weight: 500; font-size: 14px; margin-left: 2px; }

#new-comment-form-wrap {
  background: #fafcff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid #eef2f6;
}
.new-comment-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid #dee2e9;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  background: white;
}
.new-comment-form textarea:focus {
  border-color: var(--f-primary);
  box-shadow: 0 0 0 3px rgba(0, 147, 223, 0.08);
}
.comment-submit-btn {
  background: var(--f-primary);
  color: white;
  border: none;
  padding: 9px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.comment-submit-btn:hover {
  background: var(--f-primary-dark);
  transform: translateY(-1px);
}
.comment-login-cta {
  text-align: center;
  padding: 20px;
  background: #fafcff;
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--f-text);
  border: 1px dashed #d0d5dd;
}
.comment-login-cta a {
  color: var(--f-primary);
  font-weight: 600;
  text-decoration: none;
}
.comment-login-cta a:hover { text-decoration: underline; }

/* ─── Comment Tree ──────────────────────────────────────────────────── */
.comments-tree { display: flex; flex-direction: column; gap: 8px; }
.comment-node {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--f-card);
  border: 1px solid #f0f2f5;
  border-left: 3px solid #dee2e9;
  transition: all 0.15s;
}
.comment-node:hover { border-color: #dceeff; background: #fafcff; }
.comment-node.depth-0 { border-left-color: var(--f-primary); }
.comment-node.depth-1 { margin-left: 24px; border-left-color: #99cfff; }
.comment-node.depth-2 { margin-left: 48px; border-left-color: #cce4ff; }
.comment-node.depth-3 { margin-left: 72px; border-left-color: #e5f0ff; }
.comment-node.depth-4 { margin-left: 96px; border-left-color: #eef2f5; }

.comment-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 0;
  background: #f8fafc;
  border-radius: 10px;
  width: 34px;
  align-self: start;
}
.comment-vote {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #c4cad4;
  font-size: 13px;
  padding: 0;
  width: 30px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.comment-vote:hover { 
  transform: scale(1.15);
}
.comment-vote.vote-up:hover {
  color: #16a34a;
  background: #e6f7e6;
}
.comment-vote.vote-down:hover {
  color: #ef4444;
  background: #fef2f2;
}
.comment-vote.voted-up { color: var(--f-primary); }
.comment-vote.voted-down { color: #9ca3af; }
.comment-score {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
.comment-score.positive { color: #16a34a; }
.comment-score.negative { color: #ef4444; }

.comment-body-col { min-width: 0; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.comment-author {
  font-weight: 600;
  color: var(--f-primary);
  text-decoration: none;
  font-size: 13px;
}
.comment-author:hover { text-decoration: underline; }
.op-badge {
  background: linear-gradient(135deg, var(--f-primary), var(--f-accent));
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.comment-karma-badge {
  background: var(--f-primary);
  color: white;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}
.comment-time { color: var(--f-text-muted); }
.comment-collapse {
  background: transparent;
  border: none;
  color: var(--f-text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  margin-left: auto;
}
.comment-collapse:hover { color: var(--f-primary); }

.comment-text {
  font-size: 14px;
  line-height: 1.65;
  color: #1a1a2e;
  margin-bottom: 8px;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.comment-action {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.comment-action:hover { background: #f0f7ff; color: var(--f-primary); }
.comment-action:first-child:hover { color: #16a34a; background: #e6f7e6; }
.comment-edited, .comment-hidden { font-size: 11px; color: var(--f-text-muted); font-style: italic; }

.comment-reply-form {
  margin-top: 12px;
  padding: 14px;
  background: #fafcff;
  border-radius: 10px;
  border: 1px solid #eef2f6;
}
.inline-reply-form textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px;
  border: 1px solid var(--f-border);
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.reply-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.reply-submit, .reply-cancel {
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.reply-submit {
  background: linear-gradient(135deg, var(--f-primary), var(--f-primary-dark));
  color: white;
}
.reply-cancel { background: var(--f-bg); color: var(--f-text); }

.comment-children {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Settings Button on Profile ────────────────────────────────────── */
.profile-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-profile-settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: linear-gradient(135deg, var(--f-primary), var(--f-primary-dark));
  color: white;
  box-shadow: 0 3px 10px rgba(0, 147, 223, 0.25);
}
.btn-profile-settings:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 147, 223, 0.35);
}
.btn-profile-settings i { font-size: 14px; }

/* ─── Settings Modal ────────────────────────────────────────────────── */
.settings-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
}
.settings-overlay.active { display: flex; }

.settings-modal {
  background: white;
  border-radius: 16px;
  padding: 28px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--f-shadow-lg);
}

.settings-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--f-border-light);
}
.settings-section:last-of-type { border-bottom: none; margin-bottom: 0; }

.settings-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--f-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-section-title i { color: var(--f-primary); }

.settings-field {
  margin-bottom: 12px;
}
.settings-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--f-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.settings-field input,
.settings-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--f-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  background: var(--f-bg);
}
.settings-field input:focus,
.settings-field textarea:focus {
  border-color: var(--f-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 147, 223, 0.08);
}
.settings-field textarea { min-height: 60px; resize: vertical; }
.settings-field .field-hint {
  font-size: 11px;
  color: var(--f-text-light);
  margin-top: 4px;
}

.settings-avatar-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.settings-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--f-primary), var(--f-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 147, 223, 0.2);
}

.btn-settings-save {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: linear-gradient(135deg, var(--f-primary), var(--f-primary-dark));
  color: white;
  box-shadow: 0 3px 10px rgba(0, 147, 223, 0.25);
}
.btn-settings-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 147, 223, 0.35);
}
.btn-settings-save:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.35);
}

.settings-danger-zone {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px;
  margin-top: 8px;
}
.settings-danger-zone p {
  font-size: 13px;
  color: #991b1b;
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ─── User Profile ──────────────────────────────────────────────────── */
.user-profile-card {
  background: var(--f-card);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--f-shadow);
  border: 1px solid var(--f-border-light);
}
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--f-border-light);
}
.user-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--f-primary), var(--f-accent));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 147, 223, 0.3);
}
.user-profile-info h2 { margin: 0 0 4px; color: var(--f-text); }
.user-profile-username { margin: 0 0 8px; color: var(--f-text-muted); font-size: 14px; }
.user-profile-badges { display: flex; gap: 8px; }
.user-badge { font-size: 18px; }
.user-badge[title="Kurucu Üye"] { color: var(--f-primary); }
.user-badge[title="Doğrulanmış"] { color: var(--f-accent); }
.user-badge[title="Moderatör"] { color: var(--f-accent); }
.user-badge[title="Admin"] { color: var(--f-danger); }
.user-profile-bio { color: var(--f-text-muted); margin: 0 0 20px; }
.user-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, var(--f-bg) 0%, white 100%);
  border-radius: 10px;
  border: 1px solid var(--f-border-light);
}
.stat-num {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--f-primary), var(--f-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-lbl { font-size: 11px; color: var(--f-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.profile-section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-section-title i { color: var(--f-primary); }

/* ─── Auth Modal ────────────────────────────────────────────────────── */
.forum-auth-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.forum-auth-modal.show { display: flex; }
.forum-auth-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(4px);
}
.forum-auth-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--f-shadow-lg);
}
.forum-auth-header { text-align: center; margin-bottom: 24px; position: relative; }
.forum-auth-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--f-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.forum-auth-header h2 i { color: var(--f-primary); }
.forum-auth-subtitle { color: var(--f-text-muted); margin: 0; font-size: 14px; }
.forum-auth-close {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--f-bg);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--f-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.forum-auth-close:hover { background: var(--f-primary); color: white; }
.forum-auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--f-border-light);
  margin-bottom: 20px;
}
.forum-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  font-size: 14px;
  color: var(--f-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  transition: all 0.15s;
}
.forum-auth-tab.active {
  color: var(--f-primary);
  border-bottom-color: var(--f-primary);
}

.forum-auth-form { display: flex; flex-direction: column; gap: 14px; }
.forum-auth-form input[type=email],
.forum-auth-form input[type=password],
.forum-auth-form input[type=text] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--f-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: inherit;
  background: var(--f-bg);
}
.forum-auth-form input:focus {
  border-color: var(--f-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 147, 223, 0.1);
}
.form-group-f { display: flex; flex-direction: column; gap: 4px; }
.form-group-f label { font-size: 13px; font-weight: 600; color: var(--f-text); }
.form-group-f small { font-size: 11px; color: var(--f-text-muted); }
.form-group-f small a { color: var(--f-primary); }
.form-info { font-size: 13px; color: var(--f-text-muted); margin: 0 0 8px; }
.form-check-f label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 400; cursor: pointer; }
.form-check-f input { margin-top: 2px; accent-color: var(--f-primary); }

.forum-auth-submit {
  background: linear-gradient(135deg, var(--f-primary), var(--f-primary-dark));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  box-shadow: 0 3px 10px rgba(0, 147, 223, 0.3);
}
.forum-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 147, 223, 0.4);
}
.forum-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.forum-auth-divider {
  text-align: center;
  margin: 20px 0 12px;
  color: var(--f-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}
.forum-auth-divider::before,
.forum-auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--f-border-light);
}
.forum-auth-divider::before { left: 0; }
.forum-auth-divider::after { right: 0; }
.forum-auth-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  border: 1.5px solid var(--f-border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.forum-auth-google:hover { background: var(--f-bg); border-color: var(--f-primary); }
.forum-auth-google img { width: 18px; height: 18px; }

.auth-error {
  background: rgba(244, 74, 64, 0.1);
  border: 1px solid rgba(244, 74, 64, 0.3);
  color: var(--f-danger);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

/* ─── New Topic Modal ───────────────────────────────────────────────── */
.new-topic-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
}
.new-topic-overlay.active { display: flex; }
.new-topic-modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--f-shadow-lg);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--f-border-light);
  margin-bottom: 20px;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-header h3 i { color: var(--f-primary); }
.modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--f-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--f-bg); color: var(--f-text); }
.new-topic-form { display: flex; flex-direction: column; gap: 16px; }
.new-topic-form input,
.new-topic-form textarea,
.new-topic-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--f-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--f-bg);
  transition: all 0.2s;
}
.new-topic-form input:focus,
.new-topic-form textarea:focus,
.new-topic-form select:focus {
  border-color: var(--f-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 147, 223, 0.1);
}
.new-topic-form textarea { min-height: 150px; resize: vertical; }
.new-topic-form small { font-size: 11px; color: var(--f-text-muted); }

/* ─── Rich Text Editor ────────────────────────────────────────────── */
.forum-editor {
  border: 1px solid var(--f-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--f-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.forum-editor:focus-within {
  border-color: var(--f-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 147, 223, 0.1);
}
.forum-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--f-border-light);
  user-select: none;
}
.editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--f-text);
  transition: background 0.15s;
}
.editor-btn:hover { background: #e9ecef; }
.editor-btn:active { background: #dee2e6; }
.editor-btn i { pointer-events: none; }
.editor-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--f-border);
  margin: 5px 4px;
  align-self: center;
}
.forum-editor-content {
  min-height: 180px;
  max-height: 60vh;
  padding: 12px 14px;
  outline: none;
  line-height: 1.6;
  font-size: 14px;
  overflow-y: auto;
  word-wrap: break-word;
}
.forum-editor-content:empty:before {
  content: attr(data-placeholder);
  color: var(--f-text-muted);
  pointer-events: none;
}
/* Editor içi stiller */
.forum-editor-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--f-border-light);
}
.forum-editor-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 4px;
}
.forum-editor-content blockquote {
  margin: 8px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--f-primary);
  background: #f0f7ff;
  border-radius: 0 6px 6px 0;
  color: #475569;
}
.forum-editor-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}
.forum-editor-content code {
  background: #f1f5f9;
  color: #e11d48;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.forum-editor-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
}
.forum-editor-content ul, .forum-editor-content ol {
  padding-left: 24px;
  margin: 6px 0;
}
.forum-editor-content li { margin: 3px 0; }
.forum-editor-content a {
  color: var(--f-primary);
  text-decoration: underline;
}
.forum-editor-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}
.forum-editor-content p { margin: 6px 0; }

/* Topic detail HTML içerik stilleri */
.topic-detail-body .topic-detail-content h2 { font-size: 18px; font-weight: 700; margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--f-border-light); }
.topic-detail-body .topic-detail-content h3 { font-size: 16px; font-weight: 600; margin: 10px 0 4px; }
.topic-detail-body .topic-detail-content blockquote { margin: 8px 0; padding: 8px 14px; border-left: 3px solid var(--f-primary); background: #f0f7ff; border-radius: 0 6px 6px 0; color: #475569; }
.topic-detail-body .topic-detail-content pre { background: #1e293b; color: #e2e8f0; padding: 12px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.topic-detail-body .topic-detail-content code { background: #f1f5f9; color: #e11d48; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.topic-detail-body .topic-detail-content pre code { background: none; color: inherit; padding: 0; border-radius: 0; }
.topic-detail-body .topic-detail-content ul, .topic-detail-body .topic-detail-content ol { padding-left: 24px; margin: 6px 0; }
.topic-detail-body .topic-detail-content li { margin: 3px 0; }
.topic-detail-body .topic-detail-content a { color: var(--f-primary); text-decoration: underline; }
.topic-detail-body .topic-detail-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.topic-detail-body .topic-detail-content p { margin: 6px 0; }

.form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-cancel, .btn-submit {
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-cancel { background: var(--f-bg); color: var(--f-text); }
.btn-cancel:hover { background: var(--f-border-light); }
.btn-submit {
  background: linear-gradient(135deg, var(--f-primary), var(--f-primary-dark));
  color: white;
  box-shadow: 0 3px 10px rgba(0, 147, 223, 0.25);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(0, 147, 223, 0.35); }

/* ─── Award Modal ───────────────────────────────────────────────────── */
.award-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
}
.award-overlay.active { display: flex; }
.award-modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--f-shadow-lg);
}
.award-info { color: var(--f-text-muted); font-size: 13px; text-align: center; margin: 0 0 20px; }
.award-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.award-option {
  background: var(--f-bg);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.award-option:hover { border-color: var(--f-primary); transform: translateY(-2px); }
.award-option i { font-size: 28px; }
.award-option i.fa-trophy { color: var(--f-accent); }
.award-option i.fa-medal { color: var(--f-silver); }
.award-option i.fa-lightbulb-o { color: var(--f-primary); }
.award-option strong { font-size: 14px; }
.award-option span { font-size: 11px; color: var(--f-text-muted); }
.award-balance { text-align: center; font-size: 13px; color: var(--f-text-muted); }
.award-balance strong { color: var(--f-primary); }

/* ─── Toast (Brand-aligned) ─────────────────────────────────────────── */
.forum-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--f-primary-dark), #1a1a2e);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--f-shadow-lg);
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
  max-width: 350px;
  font-weight: 500;
}
.forum-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.forum-toast.success { background: linear-gradient(135deg, var(--f-success), #128238); }
.forum-toast.error { background: linear-gradient(135deg, var(--f-danger), #d63227); }
.forum-toast.info { background: linear-gradient(135deg, var(--f-primary), var(--f-primary-dark)); }

/* ─── Forum Messages ────────────────────────────────────────────────── */
.forum-message {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  border-left: 3px solid;
}
.forum-message.success { background: rgba(29, 168, 81, 0.1); color: var(--f-success); border-color: var(--f-success); }
.forum-message.error { background: rgba(244, 74, 64, 0.1); color: var(--f-danger); border-color: var(--f-danger); }

/* ─── Spinners ──────────────────────────────────────────────────────── */
.forum-spinner { text-align: center; padding: 60px; color: var(--f-primary); }
.forum-spinner i { color: var(--f-primary); }
.topic-spinner { text-align: center; padding: 30px; color: var(--f-primary); }

/* ─── Empty States ──────────────────────────────────────────────────── */
.forum-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--f-text-muted);
  background: white;
  border-radius: 12px;
  border: 1px dashed var(--f-border);
}
.forum-empty-state i { color: var(--f-border); margin-bottom: 16px; }
.forum-empty-state p { margin: 0; font-size: 15px; }
.forum-empty-msg {
  text-align: center;
  padding: 30px;
  color: var(--f-text-muted);
  font-size: 14px;
}
.forum-empty-msg.error { color: var(--f-danger); }

.empty-msg { color: var(--f-text-muted); padding: 12px; text-align: center; font-size: 13px; }

/* ─── Markdown Content ─────────────────────────────────────────────── */
.topic-detail-content-text p { margin: 0 0 12px; }
.topic-detail-content-text code {
  background: var(--f-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--f-primary-dark);
}
.topic-detail-content-text pre {
  background: #1a1a2e;
  color: #e8ecf1;
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
}
.topic-detail-content-text blockquote {
  border-left: 4px solid var(--f-primary);
  padding-left: 14px;
  margin: 12px 0;
  color: var(--f-text-muted);
  font-style: italic;
}
.topic-detail-content-text a {
  color: var(--f-primary);
  text-decoration: none;
}
.topic-detail-content-text a:hover { text-decoration: underline; }

/* ─── Owner Actions (Düzenle / Sil) ────────────────────────────── */
.owner-actions { margin-left: auto; display: flex; gap: 8px; }
.owner-actions button {
  padding: 6px 14px; border: none; border-radius: 6px;
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px;
}
.btn-edit-topic { background: var(--f-primary); color: white; }
.btn-edit-topic:hover { background: var(--f-primary-dark); opacity: 0.9; }
.btn-delete-topic { background: #ef4444; color: white; }
.btn-delete-topic:hover { background: #dc2626; opacity: 0.9; }

/* ─── Edit Form ────────────────────────────────────────────────── */
#topic-edit-form {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 12px 0;
  border: 1px solid #eef2f6;
}
.edit-input, .edit-textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid #dee2e9;
  border-radius: 10px; font-size: 14px; font-family: inherit;
  transition: all 0.2s; box-sizing: border-box;
  background: white;
}
.edit-input:focus, .edit-textarea:focus {
  border-color: var(--f-primary); outline: none;
  box-shadow: 0 0 0 3px rgba(0, 147, 223, 0.08);
}
.edit-textarea { min-height: 200px; resize: vertical; }
#topic-edit-form .form-group-f {
  margin-bottom: 14px;
}
#topic-edit-form .form-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px;
}
#topic-edit-form .form-actions .btn-cancel {
  padding: 10px 24px; border: 1.5px solid #dee2e9; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s;
  background: white; color: #6b7280;
}
#topic-edit-form .form-actions .btn-cancel:hover {
  background: #f3f4f6; border-color: #d1d5db;
}
#topic-edit-form .form-actions .btn-submit {
  padding: 10px 24px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s;
  background: var(--f-primary); color: white;
}
#topic-edit-form .form-actions .btn-submit:hover {
  background: var(--f-primary-dark); transform: translateY(-1px);
}

/* ─── Missing States ──────────────────────────────────────────────── */
.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--f-text-muted);
  font-size: 14px;
  background: #fafcff;
  border-radius: 10px;
  border: 1px dashed #dee2e9;
}
.no-comments i {
  font-size: 36px;
  color: #d0d5dd;
  display: block;
  margin-bottom: 12px;
}
.comments-tree-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--f-primary);
}
.no-topics {
  text-align: center;
  padding: 60px 20px;
  color: var(--f-text-muted);
  background: var(--f-card);
  border-radius: 12px;
  border: 1px dashed var(--f-border);
}
.no-topics i {
  display: block;
  font-size: 40px;
  color: var(--f-border);
  margin-bottom: 14px;
}
.no-topics p {
  margin: 0;
  font-size: 15px;
}
.error-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--f-danger);
  background: #fef2f2;
  border-radius: 10px;
  border: 1px solid #fde5e5;
}
.error-message i {
  display: block;
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--f-danger);
}
.topic-date, .topic-stats {
  white-space: nowrap;
}
.topic-date i, .topic-stats i {
  margin-right: 4px;
  font-size: 12px;
}
/* Reply form inside comments */
.comment-reply-form textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #dee2e9;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: white;
}
.comment-reply-form textarea:focus {
  border-color: var(--f-primary);
  box-shadow: 0 0 0 3px rgba(0, 147, 223, 0.08);
}
.reply-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.reply-cancel-btn {
  padding: 8px 16px;
  border: 1.5px solid #dee2e9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: white;
  color: #6b7280;
  transition: all 0.15s;
}
.reply-cancel-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}