/* ============================================================
   FiveM Topluluk — Ana CSS Tasarım Sistemi
   GTA5 / FiveM Temalı Dark/Light Forum
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS DEĞİŞKENLERİ (DARK MODE — VARSAYILAN) ===== */
:root,
[data-theme="dark"] {
  /* Renkler */
  --bg-primary:     #0a0c10;
  --bg-secondary:   #0f1318;
  --bg-tertiary:    #161b24;
  --bg-card:        #111827;
  --bg-card-hover:  #1a2234;
  --bg-input:       #0d1117;

  /* Neon Vurgu Renkleri */
  --accent-primary:  #00d4ff;
  --accent-orange:   #ff6b35;
  --accent-green:    #00ff88;
  --accent-purple:   #9b59ff;
  --accent-red:      #ff3860;
  --accent-yellow:   #ffd700;

  /* Kenar & Çizgiler */
  --border-color:    #1e2d3d;
  --border-accent:   rgba(0, 212, 255, 0.3);
  --border-hover:    rgba(0, 212, 255, 0.6);

  /* Metin */
  --text-primary:    #e8eaf0;
  --text-secondary:  #8892a4;
  --text-muted:      #4b5563;
  --text-accent:     #00d4ff;

  /* Gölgeler */
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:       0 8px 48px rgba(0,0,0,0.6);
  --shadow-neon:     0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-orange:   0 0 20px rgba(255, 107, 53, 0.3);

  /* Geçişler */
  --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-bg:       rgba(10, 12, 16, 0.96);
  --header-height:   62px;

  /* Scrollbar */
  --scrollbar-track: #0f1318;
  --scrollbar-thumb: #1e2d3d;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg-primary:     #f0f2f5;
  --bg-secondary:   #ffffff;
  --bg-tertiary:    #e8edf2;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f5f7fa;
  --bg-input:       #f8fafc;

  --accent-primary:  #0099cc;
  --accent-orange:   #e85d2f;
  --accent-green:    #059669;
  --accent-purple:   #7c3aed;
  --accent-red:      #dc2626;
  --accent-yellow:   #d97706;

  --border-color:    #d1d9e0;
  --border-accent:   rgba(0, 153, 204, 0.3);
  --border-hover:    rgba(0, 153, 204, 0.6);

  --text-primary:    #1a202c;
  --text-secondary:  #4a5568;
  --text-muted:      #9ca3af;
  --text-accent:     #0099cc;

  --shadow-sm:       0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:       0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:       0 8px 48px rgba(0,0,0,0.15);
  --shadow-neon:     0 0 20px rgba(0, 153, 204, 0.2);
  --shadow-orange:   0 0 20px rgba(232, 93, 47, 0.2);

  --header-bg:       rgba(255, 255, 255, 0.97);
  --scrollbar-track: #f0f2f5;
  --scrollbar-thumb: #c8d0da;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-primary);
}

/* Search */
.header-search {
  flex: 0 0 220px;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 9px 14px;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.search-form button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 9px 12px;
  cursor: pointer;
  transition: var(--transition);
}
.search-form button:hover { color: var(--accent-primary); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Tema Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: var(--shadow-neon);
}

/* Avatar Dropdown */
.user-menu { position: relative; }

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: var(--transition);
}
.user-avatar-btn:hover { border-color: var(--accent-primary); }

.user-avatar-btn img,
.user-avatar-btn .avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.avatar-placeholder {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.user-menu-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  overflow: hidden;
}

.user-menu:hover .user-dropdown,
.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}
.user-dropdown a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.user-dropdown .dropdown-divider { height: 1px; background: var(--border-color); }
.user-dropdown .danger { color: var(--accent-red) !important; }

/* Giriş Butonları */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #0099bb);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.45);
}

.btn-orange {
  background: linear-gradient(135deg, var(--accent-orange), #e04d20);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), #cc2244);
  color: white;
}

.btn-green {
  background: linear-gradient(135deg, var(--accent-green), #00cc66);
  color: #000;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

/* ===== LAYOUT ===== */
.page-wrapper {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 28px 0;
}

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ===== KARTLAR ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { border-color: var(--border-accent); }

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(0,212,255,0.03), transparent);
}

/* ===== FORUM STATS BAR ===== */
.forum-statsbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* subtle top accent line */
.forum-statsbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-orange), var(--accent-purple));
}

.forum-statsbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
}

.fsbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fsbar-brand i {
  color: var(--accent-primary);
  font-size: .9rem;
}

.fsbar-sep {
  color: var(--border-color);
  font-weight: 300;
}

.fsbar-sub {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 400;
}

.fsbar-stats {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.fsbar-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.fsbar-stat i {
  font-size: .7rem;
  color: var(--text-muted);
}

.fsbar-stat strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fsbar-stat.online i { color: var(--accent-green); }
.fsbar-stat.online strong { color: var(--accent-green); }

.fsbar-cta {
  flex-shrink: 0;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 20px; }

/* ===== HERO (ANA SAYFA) — SLIM BANNER ===== */
.hero-section {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 28px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero_bg.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.22) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,212,255,0.04) 100%
  );
}

/* Subtle left neon edge */
.hero-overlay::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-orange));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.hero-left { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  color: #fff;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  max-width: 420px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Right stats block */
.hero-stats {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.hero-stat {
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-stat:last-child { border-right: none; }

.hero-stat .num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  display: block;
}

.hero-stat .label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
  display: block;
}

/* ===== FORUM KATEGORİ LİSTESİ ===== */
.category-section {
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-primary);
  transform: scaleY(0);
  transition: var(--transition);
}

.category-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.category-item:hover::before { transform: scaleY(1); }

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.cat-info { flex: 1; min-width: 0; }
.cat-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.cat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  text-align: right;
}

.cat-stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.cat-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== KONU LİSTESİ ===== */
.thread-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 6px;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.thread-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.thread-item.pinned {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.02);
}

.thread-item.pinned::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 2px;
  opacity: 0.7;
}

.thread-item.locked::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 30px;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  opacity: 0.7;
}

.thread-avatar img,
.thread-avatar .avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.thread-meta { flex: 1; min-width: 0; }

.thread-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}

.thread-item:hover .thread-title { color: var(--accent-primary); }

.thread-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.thread-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.thread-cat-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0,212,255,0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(0,212,255,0.2);
}

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

.thread-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  align-items: center;
}

.thread-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.thread-stat .num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.thread-stat .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ===== ROZET SİSTEMİ ===== */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.role-badge.server_sahibi  { color: #ef4444; background: rgba(239,68,68,0.1); }
.role-badge.yazilimci      { color: #8b5cf6; background: rgba(139,92,246,0.1); }
.role-badge.tasarimci      { color: #ec4899; background: rgba(236,72,153,0.1); }
.role-badge.onayli_isletme { color: #06b6d4; background: rgba(6,182,212,0.1); }
.role-badge.moderator      { color: #84cc16; background: rgba(132,204,22,0.1); }
.role-badge.admin          { color: #f97316; background: rgba(249,115,22,0.1); }
.role-badge.emektar_oyuncu { color: #ffd700; background: rgba(255,215,0,0.1); }
.role-badge.deneyimli_oyuncu { color: #10b981; background: rgba(16,185,129,0.1); }
.role-badge.gelismis_oyuncu  { color: #3b82f6; background: rgba(59,130,246,0.1); }
.role-badge.yeni_oyuncu    { color: #6b7280; background: rgba(107,114,128,0.1); }

/* ===== KONU DETAY SAYFASI ===== */
.post-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.post-author-info {
  flex: 0 0 140px;
  text-align: center;
}

.post-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 2px solid var(--border-accent);
  display: block;
}

.post-author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.post-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.post-content-area {
  flex: 1;
  min-width: 0;
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.post-body {
  color: var(--text-primary);
  line-height: 1.7;
  padding: 0 20px 20px;
}

.post-body p { margin-bottom: 12px; }
.post-body strong { color: var(--accent-primary); }
.post-body a { color: var(--accent-primary); }
.post-body code {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 0.875em;
}
.post-body pre {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}
.post-body blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 10px 16px;
  background: rgba(0,212,255,0.03);
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
  color: var(--text-secondary);
}
.post-body img { max-width: 100%; border-radius: 8px; }

.post-signature {
  padding: 12px 20px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-signature a { color: var(--accent-primary); }

.post-actions {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

/* ===== WYSIWYG EDITOR CONTAINER ===== */
.editor-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.editor-wrapper:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.editor-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.editor-btn:hover {
  background: var(--accent-primary);
  color: #000;
  border-color: var(--accent-primary);
}

.editor-area {
  min-height: 200px;
  padding: 16px;
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== PROFİL SAYFASI ===== */
.profile-banner {
  height: 180px;
  background: linear-gradient(135deg, #0a0c10 0%, #1a2234 50%, #0f1318 100%);
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
}

.profile-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero_bg.jpg') center/cover;
  opacity: 0.15;
}

.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-info-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 0 28px 24px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  border: 3px solid var(--bg-card);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.profile-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Ticaret Puan Sistemi */
.trade-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
}
.trade-score.positive { color: var(--accent-green); }
.trade-score.negative { color: var(--accent-red); }
.trade-score.neutral  { color: var(--text-muted); }

.trade-rating-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  margin-bottom: 8px;
}

.rating-icon { font-size: 1.4rem; }
.rating-comment { font-size: 0.875rem; color: var(--text-secondary); }
.rating-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ===== FORM ELEMANLARI ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-select option { background: var(--bg-card); }

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

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--accent-red);
  margin-top: 5px;
}

/* ===== ALERTler ===== */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--accent-green);
}

.alert-error {
  background: rgba(255,56,96,0.08);
  border: 1px solid rgba(255,56,96,0.25);
  color: var(--accent-red);
}

.alert-info {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent-primary);
}

.alert-warning {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  color: var(--accent-yellow);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 24px 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: var(--accent-primary);
  color: #000;
  border-color: var(--accent-primary);
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.widget-header {
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(0,212,255,0.05), transparent);
  border-bottom: 1px solid var(--border-color);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-body { padding: 16px 18px; }

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--text-muted); }
.stat-row .value { font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 1rem; color: var(--accent-primary); }

/* ===== BUMP BUTONU ===== */
.bump-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-orange), #c0392b);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.bump-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.bump-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== ADMIN PANELİ ===== */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  position: fixed;
  top: var(--header-height);
  left: 0;
  overflow-y: auto;
}

.admin-main {
  margin-left: 260px;
  padding: 28px;
  min-height: calc(100vh - var(--header-height));
}

.admin-nav-group { margin-bottom: 8px; }

.admin-nav-group-title {
  padding: 8px 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(0,212,255,0.06);
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.admin-stat-card:hover { border-color: var(--border-accent); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-tertiary);
}

.stat-data .num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-data .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table tr:last-child td { border-bottom: none; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo-text { font-size: 1.3rem; margin-bottom: 12px; display: block; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); max-width: 280px; }

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-stats { gap: 20px; }
  .header-search { display: none; }
  .header-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .cat-stats { display: none; }
  .thread-stats { display: none; }
}

/* ===== ANİMASYONLAR ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0,212,255,0.3); }
  50%       { box-shadow: 0 0 30px rgba(0,212,255,0.6); }
}

.animate-fade-up { animation: fadeInUp 0.5s ease forwards; }
.animate-slide-in { animation: slideIn 0.4s ease forwards; }

/* Staggered animations */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }

/* Neon glow effect on featured items */
.featured-glow { animation: glow 3s ease-in-out infinite; }

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ONLINE BADGE ===== */
.online-indicator {
  position: relative;
}
.online-indicator::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb .sep { color: var(--border-color); }

/* ===== BUMP GERİ SAYIM ===== */
.bump-timer {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== BADGE / TAG ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; }

/* ===== NOTIFICATION DOT ===== */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--accent-red);
  border-radius: 50%;
  font-size: 0.6rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--bg-primary);
}
