/* ========== UFC Türkiye Forum — Design Tokens ========== */

:root {
  /* Brand */
  --ufc-red: #D20A0A;
  --ufc-red-hover: #B10808;
  --ufc-red-soft: #FFE5E5;
  --ufc-gold: #D4A24C;

  /* Light theme */
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --surface-hover: #F1F1EE;
  --border: #E8E6E1;
  --border-strong: #D4D2CC;
  --text: #0A0A0A;
  --text-muted: #6B6B66;
  --text-subtle: #9B9B94;

  --chip-bg: #F1F1EE;
  --chip-text: #2A2A28;
  --success: #2E7D32;
  --warning: #C77700;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

  --header-h: 68px;
  --maxw: 1280px;

  --font-display: 'Barlow Condensed', 'Oswald', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1A1A1A;
  --surface-hover: #1F1F1F;
  --border: #262626;
  --border-strong: #333333;
  --text: #F5F5F3;
  --text-muted: #9B9B94;
  --text-subtle: #6B6B66;
  --chip-bg: #1F1F1F;
  --chip-text: #D4D2CC;
  --ufc-red-soft: #2A0808;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
/* Dark mode spesifik düzeltmeler */
[data-theme="dark"] .input,
[data-theme="dark"] .textarea,
[data-theme="dark"] .select { background: var(--surface-2); }
[data-theme="dark"] .btn-ghost { background: var(--surface-2); border-color: var(--border); }
[data-theme="dark"] .card { border-color: var(--border); }
[data-theme="dark"] .topic:hover { background: var(--surface-2); }
[data-theme="dark"] .cat-item.active { background: rgba(210, 10, 10, 0.12); }
[data-theme="dark"] .post-author { background: rgba(255, 255, 255, 0.02); }
[data-theme="dark"] .section-hd { background: rgba(255, 255, 255, 0.02); }
[data-theme="dark"] .match-card { background: var(--surface); }
[data-theme="dark"] .pill.active { background: #f5f5f3; color: #0a0a0a; }
[data-theme="dark"] .notif:hover { background: var(--surface-2); }
[data-theme="dark"] .notif.unread { background: rgba(210, 10, 10, 0.04); }
[data-theme="dark"] .avatar { border-color: var(--border); }
[data-theme="dark"] .hdr { background: rgba(20, 20, 20, 0.92); border-bottom-color: var(--border); }
[data-theme="dark"] .hdr-nav a { color: var(--text-muted); }
[data-theme="dark"] .hdr-nav a:hover,
[data-theme="dark"] .hdr-nav a.active { color: #fff; }
[data-theme="dark"] .bottom-nav { background: rgba(20, 20, 20, 0.92); }
[data-theme="dark"] .drawer { background: var(--surface); }
[data-theme="dark"] .search-overlay { background: var(--bg); }
[data-theme="dark"] blockquote { background: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .reaction { background: rgba(255, 255, 255, 0.04); border-color: var(--border); }
[data-theme="dark"] .reaction.active { background: rgba(210, 10, 10, 0.15); }
[data-theme="dark"] .badge { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .icon-btn:hover { background: var(--surface-2); }
[data-theme="dark"] .icon-btn .badge-count { border-color: var(--bg); }
[data-theme="dark"] .icon-btn .dot { border-color: var(--bg); }
[data-theme="dark"] .online-dot { border-color: var(--surface) !important; }
[data-theme="dark"] .kbd { background: var(--surface-2); border-color: var(--border); }
[data-theme="dark"] .tabs { background: var(--surface); }
[data-theme="dark"] .user-pill:hover { background: var(--surface-2); }
[data-theme="dark"] .leaderboard-row:hover { background: var(--surface-2); }

/* ========== Base ========== */
* { box-sizing: border-box; }
html { overflow-x: hidden; }
html, body { margin: 0; padding: 0; font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { font-size: 14px; line-height: 1.5; overflow-x: hidden; width: 100%; }
a { color: inherit; text-decoration: none; }
main { overflow-x: hidden; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
  text-transform: uppercase;
}
.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ========== Header (logo centered) ========== */
.hdr {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.hdr-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 8px; }
.hdr-right { justify-content: flex-end; }
.hdr-center { display: flex; justify-content: center; transform: translateX(-30px); }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--ufc-red);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 15px;
  border-radius: 5px;
  letter-spacing: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ufc-red) 30%, transparent);
}
.logo-tr { color: var(--ufc-red); margin-left: 2px; }

.hdr-nav { display: flex; gap: 2px; font-weight: 500; font-size: 13px; }
.hdr-nav a {
  padding: 8px 12px; border-radius: 6px;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.hdr-nav a:hover { color: var(--text); background: var(--surface-hover); }
.hdr-nav a.active { color: var(--text); font-weight: 600; background: var(--surface-hover); }

.hdr-search {
  position: relative;
  width: 220px;
  transition: width 0.2s;
}
.hdr-search:focus-within { width: 280px; }
.hdr-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.hdr-search input:focus { border-color: var(--border-strong); background: var(--surface); }
.hdr-search::before {
  content: '';
  position: absolute; left: 11px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%239B9B94' stroke-width='2' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat center/contain;
}
.kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-family: var(--font-mono);
  padding: 2px 5px; border-radius: 3px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-subtle);
  pointer-events: none;
}

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--text-muted);
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn .dot {
  position: absolute;
  top: 9px; right: 9px;
  width: 8px; height: 8px;
  background: var(--ufc-red);
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.icon-btn .badge-count {
  position: absolute;
  top: 4px; right: 3px;
  min-width: 16px; height: 16px;
  background: var(--ufc-red);
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
}

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D20A0A, #7a0606);
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
  font-size: 12px;
  font-family: var(--font-display);
  overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--border);
  position: relative;
}
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.md { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 16px; }
.avatar.xl { width: 104px; height: 104px; font-size: 32px; }

/* Admin nick RGB glow efekti */
h1.admin-nick,
.admin-nick {
  background-image: linear-gradient(90deg, #555, #999, #ddd, #fff, #ddd, #999, #555) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: adminShimmer 2.5s ease-in-out infinite !important;
  display: inline-block !important;
}
[data-theme="light"] h1.admin-nick,
[data-theme="light"] .admin-nick {
  background-image: linear-gradient(90deg, #333, #666, #999, #bbb, #999, #666, #333) !important;
}
@keyframes adminShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Rol rozet tooltip */
.role-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.role-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.role-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}
.role-badge-wrap:hover .role-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Auth modal logo — dark beyaz, light siyah */
[data-theme="dark"] .auth-logo { filter: brightness(0) invert(1); }
[data-theme="light"] .auth-logo { filter: brightness(0); }
.avatar .online-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  background: #22C55E;
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.avatar.sm .online-dot { width: 8px; height: 8px; border-width: 1.5px; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.hamburger:hover { background: var(--surface-hover); }

/* Mobile search button */
.mobile-search-btn { display: none; }

/* ========== Drawer ========== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 84%; max-width: 340px;
  background: var(--surface);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.drawer.open { transform: translateX(0); }
.drawer-hd {
  padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.drawer-section { padding: 12px 16px; }
.drawer-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  font-weight: 700;
  padding: 12px 8px 8px;
}
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
}
.drawer-link:hover { background: var(--surface-hover); }
.drawer-link.active { background: var(--ufc-red-soft); color: var(--ufc-red); }
.drawer-link .num { margin-left: auto; font-size: 11px; color: var(--text-subtle); font-variant-numeric: tabular-nums; }

/* Mobile search overlay */
.search-overlay {
  position: fixed; inset: 0 0 auto 0;
  background: var(--surface);
  z-index: 60;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: none;
  gap: 8px;
  align-items: center;
}
.search-overlay.open { display: flex; }
.search-overlay input {
  flex: 1; padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, transform 0.05s, border-color 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ufc-red); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--ufc-red) 25%, transparent); }
.btn-primary:hover { background: var(--ufc-red-hover); box-shadow: 0 4px 14px color-mix(in srgb, var(--ufc-red) 35%, transparent); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-text { color: var(--text-muted); padding: 6px 10px; }
.btn-text:hover { color: var(--text); background: var(--surface-hover); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 12px 18px; font-size: 14px; }

/* ========== Layout ========== */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  overflow-x: hidden;
}
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.three-col { display: grid; grid-template-columns: 220px 1fr 300px; gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

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

/* ========== Chips / Badges ========== */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chip-red { background: var(--ufc-red-soft); color: var(--ufc-red); }
.chip-gold { background: color-mix(in srgb, var(--ufc-gold) 15%, transparent); color: var(--ufc-gold); }
.chip-green { background: color-mix(in srgb, #22C55E 12%, transparent); color: #22C55E; }
.chip-pin { background: color-mix(in srgb, var(--ufc-red) 10%, transparent); color: var(--ufc-red); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
  cursor: pointer;
}
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ========== Topic row ========== */
.topic {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) 64px 64px 160px;
  gap: 16px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  cursor: pointer;
}
.topic:last-child { border-bottom: none; }
.topic:hover { background: var(--surface-2); }
.topic-cat { width: 4px; align-self: stretch; border-radius: 2px; background: var(--ufc-red); }
.topic-main { min-width: 0; }
.topic-title {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
  line-height: 1.3;
  flex-wrap: wrap;
}
.topic-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-muted);
  flex-wrap: wrap;
}
.topic-meta .author { color: var(--text); font-weight: 500; }
.topic-stat { text-align: center; font-variant-numeric: tabular-nums; }
.topic-stat-num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  color: var(--text); line-height: 1;
}
.topic-stat-lbl {
  font-size: 10px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 3px;
}

/* Section header */
.section-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.section-hd h3 { font-size: 13px; letter-spacing: 0.08em; }
.section-hd .count {
  font-size: 11px; color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
.section-hd a {
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer;
}
.section-hd a:hover { color: var(--ufc-red); }

/* ========== Sidebar cards ========== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sb-card { padding: 16px; }
.sb-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 12px;
  font-family: var(--font-body);
  display: flex; align-items: center; justify-content: space-between;
}

.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
}
.cat-item:hover { background: var(--surface-hover); color: var(--text); }
.cat-item.active { background: var(--ufc-red-soft); color: var(--ufc-red); font-weight: 600; }
.cat-item .dot-sq { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.cat-item .num {
  font-size: 11px; color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
.cat-item.active .num { color: var(--ufc-red); }

/* ========== Hero ========== */
.hero {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid var(--border);
  color: #fff;
}
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero p { color: #fff; }
[data-theme="dark"] .hero p { color: rgba(255,255,255,0.75); }
.hero::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 260px; height: 260px;
  background: var(--ufc-red);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}
.hero::after {
  content: '';
  position: absolute;
  left: 50%; top: -20px; bottom: -20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06), transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 60%; min-width: 0; }
.hero h1 { font-size: 36px; margin-bottom: 8px; }
.hero p { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0; line-height: 1.55; }

/* ========== Match strip ========== */
.match-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.match-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.match-card .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ufc-red);
  animation: pulse 1.5s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.match-fighters {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
  margin-top: 12px;
}
.fighter {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
}
.fighter-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-hover));
  border: 2px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  color: var(--text-subtle);
  font-size: 14px;
}
.fighter-name { font-size: 12px; font-weight: 600; }
.fighter-country { font-size: 10px; color: var(--text-subtle); }
.vs {
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  color: var(--ufc-red);
  padding: 4px 8px;
  background: var(--ufc-red-soft);
  border-radius: 4px;
}

/* ========== Tabs ========== */
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 14px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--ufc-red); font-weight: 600; }

/* ========== Post ========== */
.post {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}
.post-author {
  padding: 20px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  text-align: center;
}
.post-author .avatar { margin: 0 auto 10px; }
.post-author-name { font-weight: 600; font-size: 13px; margin-bottom: 2px; cursor: pointer; }
.post-author-name:hover { color: var(--ufc-red); }
.post-author-role {
  font-size: 10px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.post-author-stats {
  display: flex; justify-content: center; gap: 14px;
  font-size: 10px; color: var(--text-muted);
}
.post-author-stats strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px; display: block;
}

.post-body { padding: 20px 24px; }
.post-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px; color: var(--text-subtle);
}
.post-meta .post-num { font-family: var(--font-mono); }
.post-content { font-size: 14px; line-height: 1.65; color: var(--text); }
.post-content p { margin: 0 0 12px; }
.post-content p:last-child { margin-bottom: 0; }
.post-content blockquote {
  border-left: 3px solid var(--ufc-red);
  padding: 10px 14px;
  margin: 12px 0;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 0 6px 6px 0;
}
.post-content blockquote .q-author {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-actions {
  display: flex; align-items: center; gap: 4px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.post-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.post-action:hover { background: var(--surface-hover); color: var(--text); }
.post-action.liked { color: var(--ufc-red); }
.post-action svg { width: 14px; height: 14px; }

.reactions {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 12px;
}
.reaction {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.reaction:hover { border-color: var(--border-strong); }
.reaction.active { background: var(--ufc-red-soft); border-color: var(--ufc-red); color: var(--ufc-red); font-weight: 600; }
.reaction .r-count { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ========== Forms ========== */
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ufc-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ufc-red) 15%, transparent);
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.input-lg { padding: 14px 16px; font-size: 16px; }

/* ========== Badges ========== */
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge {
  aspect-ratio: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 22px;
  position: relative;
  cursor: help;
  transition: transform 0.15s, border-color 0.15s;
}
.badge:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.badge.locked { opacity: 0.3; filter: grayscale(1); }

/* ========== Notifications ========== */
.notif {
  display: flex; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--ufc-red) 4%, transparent); }
.notif.unread::before {
  content: '';
  position: absolute;
  left: 8px; top: 24px;
  width: 6px; height: 6px;
  background: var(--ufc-red);
  border-radius: 50%;
}
.notif-body { flex: 1; font-size: 13px; }
.notif-body .who { font-weight: 600; }
.notif-body .what { color: var(--text-muted); }
.notif-time { font-size: 11px; color: var(--text-subtle); white-space: nowrap; }

/* ========== Online users / leaderboard ========== */
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.user-pill:hover { background: var(--surface-hover); }
.user-pill-info { flex: 1; min-width: 0; }

.leaderboard-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.leaderboard-row:hover { background: var(--surface-hover); }
.leaderboard-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1;
}
.leaderboard-rank.top-1 { color: #FFB800; }
.leaderboard-rank.top-2 { color: #B0B0B0; }
.leaderboard-rank.top-3 { color: #CD7F32; }

/* ========== Bottom Nav (mobile) ========== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bn-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 4px 0;
  font-size: 10px; font-weight: 600;
  color: var(--text-subtle);
  position: relative;
}
.bn-item.active { color: var(--ufc-red); }
.bn-item .dot {
  position: absolute;
  top: 2px; right: 50%; margin-right: -14px;
  width: 6px; height: 6px;
  background: var(--ufc-red);
  border-radius: 50%;
}

/* ========== Footer ========== */
.ft {
  margin-top: 60px;
  background: var(--text);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.ft::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 400px; height: 400px;
  background: var(--ufc-red);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
}
.ft::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ufc-red), transparent);
}
[data-theme="dark"] .ft { background: #050505; border-top: 1px solid var(--border); }

.ft-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 24px;
  position: relative;
  overflow: hidden;
}
.ft-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ft-brand .logo-mark { box-shadow: 0 6px 20px color-mix(in srgb, var(--ufc-red) 40%, transparent); }
.ft-brand h4 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin: 16px 0 10px;
  color: #fff;
  letter-spacing: 0.02em;
}
.ft-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  margin: 0 0 16px;
}
.ft-social {
  display: flex;
  gap: 8px;
}
.ft-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s;
}
.ft-social a:hover {
  background: var(--ufc-red);
  border-color: var(--ufc-red);
  color: #fff;
  transform: translateY(-2px);
}

.ft-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.ft-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ft-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.12s;
  display: inline-flex; align-items: center; gap: 6px;
}
.ft-col a:hover { color: var(--ufc-red); }

.ft-newsletter input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.ft-newsletter input:focus { border-color: var(--ufc-red); background: rgba(255,255,255,0.08); }
.ft-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.ft-newsletter button {
  width: 100%;
  padding: 11px;
  background: var(--ufc-red);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ft-newsletter button:hover { background: var(--ufc-red-hover); }
.ft-newsletter .hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  line-height: 1.5;
}

.ft-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ft-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: #fff;
  line-height: 1;
}
.ft-stat-num .acc { color: var(--ufc-red); }
.ft-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.ft-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}
.ft-copy strong { color: rgba(255,255,255,0.7); font-weight: 600; }
.ft-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.ft-meta .status {
  display: inline-flex; align-items: center; gap: 6px;
}
.ft-meta .status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse 2s infinite;
}

@media (max-width: 1000px) {
  .ft-top { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-newsletter { grid-column: 1 / -1; max-width: 420px; }
}
@media (max-width: 640px) {
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-brand, .ft-newsletter { grid-column: 1 / -1; }
  .ft-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ft-stat-num { font-size: 24px; }
  .ft-inner { padding: 40px 16px 20px; }
}

/* ========== Utilities ========== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.fw-600 { font-weight: 600; }
.mono-num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .three-col { grid-template-columns: 200px 1fr 280px; }
}
@media (max-width: 1100px) {
  .topic { grid-template-columns: 4px minmax(0, 1fr) 64px 160px; }
  .topic .topic-stat.hide-md { display: none; }
}
@media (max-width: 1000px) {
  .three-col { grid-template-columns: 1fr 280px; }
  .three-col > .sidebar:first-child { display: none; }
  .match-strip { grid-template-columns: 1fr 1fr; }
  .hdr-search { width: 160px; }
  .hdr-search:focus-within { width: 200px; }
  .hdr-nav { gap: 0; }
  .hdr-nav a { padding: 8px 8px; font-size: 12px; }
}
@media (max-width: 860px) {
  :root { --header-h: 56px; }
  .page { padding: 14px; padding-bottom: 80px; }
  .hdr-inner { padding: 0 12px; gap: 8px; }
  .hdr-nav { display: none; }
  .hdr-search { display: none; }
  .mobile-search-btn { display: flex; }
  .hamburger { display: flex; }
  .hdr-center { transform: none; }
  .hdr-center img { height: 26px !important; }
  .btn-primary-text-hide { font-size: 0; padding: 9px; }
  .hdr-actions .btn.hide-sm { display: none; }
  .hide-sm { display: none !important; }
  .icon-btn { width: 34px; height: 34px; }

  .two-col, .three-col { grid-template-columns: 1fr; }
  .three-col > .sidebar:first-child { display: none; }
  .three-col > .sidebar:last-child { display: flex; }
  .two-col > .sidebar { display: flex; }

  .hero { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 13px; }

  .match-strip { grid-template-columns: 1fr; gap: 10px; }
  .match-card { padding: 16px; }

  .topic { grid-template-columns: 4px minmax(0, 1fr) 56px; gap: 12px; padding: 14px; }
  .topic .topic-last, .topic .topic-stat.hide-md, .topic .topic-stat.hide-sm { display: none; }
  .topic-title { font-size: 14px; }
  .topic-meta { flex-wrap: wrap; gap: 4px; }

  .post { grid-template-columns: 1fr; }
  .post-author {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .post-author .avatar { margin: 0; }
  .post-author-stats { margin-left: auto; }
  .post-body { padding: 14px; }
  .post-actions { flex-wrap: wrap; gap: 6px; }
  .reactions { flex-wrap: wrap; }

  .bottom-nav { display: flex; }

  .badge-grid { grid-template-columns: repeat(4, 1fr); }

  .drawer { width: 88%; max-width: 320px; }

  .card { border-radius: 8px; }
  .sb-card { padding: 14px; }
  .section-hd { padding: 14px 16px; }
  .section-hd h3 { font-size: 12px; }
  .tabs { padding: 0 12px; }
  .tab { padding: 12px 10px; font-size: 12px; }

  /* Compose page mobil */
  .field .input, .field .textarea { font-size: 16px; }
  .field-label { font-size: 11px; }

  /* Profil header mobil */
  .avatar.xl { width: 72px; height: 72px; font-size: 24px; }
  .profile-header-body { padding: 0 12px 16px !important; margin-top: -32px !important; }
  .profile-header-body h1 { font-size: 18px !important; }
  .profile-info-row { align-items: center !important; gap: 10px !important; }
  .profile-info-row > div:last-child { padding-top: 40px !important; }
  .profile-avatar { width: 64px !important; height: 64px !important; font-size: 18px !important; }
  .profile-role-photos img { height: 28px !important; }
}

@media (max-width: 520px) {
  .page { padding: 10px; padding-bottom: 80px; }
  .hdr-inner { padding: 0 10px; gap: 6px; }
  .hdr-center img { height: 22px !important; }
  .icon-btn { width: 32px; height: 32px; }

  .hero { padding: 20px 16px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 12px; line-height: 1.5; }
  .btn-lg { padding: 10px 18px; font-size: 13px; }

  h1 { font-size: 22px !important; }
  .avatar.xl { width: 64px; height: 64px; font-size: 22px; }

  .topic { padding: 12px 10px; gap: 10px; }
  .topic-title { font-size: 13px; }
  .chip { font-size: 10px; padding: 2px 6px; }

  .match-fighters { gap: 8px; }
  .fighter-name { font-size: 12px; }
  .fighter-country { font-size: 9px; }
  .vs { font-size: 11px; }

  .post-author-name { font-size: 13px; }
  .post-content p { font-size: 14px; line-height: 1.6; }
  .textarea { min-height: 100px; font-size: 15px; }

  /* Footer mobil */
  .ft-top { grid-template-columns: 1fr; gap: 24px; }
  .ft-brand, .ft-col, .ft-newsletter { grid-column: 1 / -1; }
  .ft-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ft-stat-num { font-size: 22px; }
  .ft-inner { padding: 32px 14px 16px; }
  .ft-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .ft-meta { justify-content: center; }

  /* Compose kategori grid mobil */
  .cat-select-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Profil stats mobil */
  div[style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  .badge-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  .search-overlay input { font-size: 16px; }

  /* Notif mobil */
  .notif { padding: 12px 14px; gap: 10px; }
  .notif .avatar { width: 36px; height: 36px; font-size: 12px; }
  .notif-time { font-size: 11px; }
}

/* Çok küçük ekranlar */
@media (max-width: 380px) {
  .hdr-center img { height: 20px !important; }
  .hero h1 { font-size: 20px; }
  h1 { font-size: 20px !important; }
  .btn { font-size: 12px; padding: 7px 12px; }
  .btn-lg { padding: 9px 14px; font-size: 12px; }
  .topic-title { font-size: 12px; }
  .ft-stat-num { font-size: 20px; }
}
