/* v2026-03-18-FINAL */
/*
 * ForumPHP — app.css  v4.1
 * Forum v1 pixel-perfect CSS
 * Fixed: DiscussionListItem flex layout, TagLabel, color-mix() removed
 */

/* ══════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════════
   CSS VARIABLES
   ══════════════════════════════════════════════ */
:root {
  --primary:         #2563eb;
  --primary-dark:    #1d4ed8;

  /* Header — overridden by PHP inline style */
  --header-bg:           #2563eb;
  --header-text:         #ffffff;
  --header-ctrl:         rgba(255,255,255,0.65);
  --header-ctrl-hover:   #ffffff;
  --header-ctrl-bg:      rgba(255,255,255,0.14);
  --header-ctrl-bg-hover:rgba(255,255,255,0.24);

  /* Hero — overridden by PHP inline style */
  --hero-bg:         #2563eb;
  --hero-text:       #ffffff;
  --hero-text-muted: rgba(255,255,255,0.65);

  --body-bg:         #fff;
  --body-color:      #3d4147;
  --ctrl-bg:         #e8eaea;
  --border:          rgba(0,0,0,0.07);
  --shadow:          0 1px 4px rgba(0,0,0,0.09);
  --radius:          2px;
  --radius-lg:       4px;
  --ease:            0.15s ease;
}

/* ══════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════ */
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--body-color);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
img { max-width: 100%; }
ul, ol { list-style: none; }
*, *:focus { outline: none; }
.App { padding-top: 51px; }

/* ══════════════════════════════════════════════
   BUTTON
   ══════════════════════════════════════════════ */
.Button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 12px; height: 31px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: normal;
  color: #555; background: var(--ctrl-bg);
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  text-decoration: none; vertical-align: middle; line-height: 1;
  transition: background var(--ease), color var(--ease);
}
.Button:hover     { background: #dcdcdc; color: #333; text-decoration: none; }
.Button.active    { background: #dcdcdc; font-weight: bold; }
.Button--primary  { background: var(--primary); color: #fff !important; }
.Button--primary:hover { background: var(--primary-dark); color: #fff !important; }
.Button--danger   { background: #dd4b39; color: #fff !important; }
.Button--danger:hover { background: #c0392b; }
.Button--link     { background: transparent; color: var(--primary); padding: 0; }
.Button--link:hover { background: transparent; color: var(--primary-dark); text-decoration: underline; }
.Button--sm       { height: 26px; padding: 0 8px; font-size: 12px; }
.Button--lg       { height: 38px; padding: 0 18px; font-size: 14px; }
.Button--block    { width: 100%; }
.Button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.App-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 51px; z-index: 200;
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
  display: flex; align-items: center;
  /* relative: DrawerToggle--back absolute için */
  /* NOT: position:relative koyarsak z-index stack bozulur */
}
.App-header .container {
  display: flex; align-items: center;
  flex: 1; max-width: 1100px;
  margin: 0 auto; padding: 0 15px; height: 100%;
}
/* Ok butonu container padding'inden çıkıp tam sola yapışsın */
.DrawerToggle--back {
  /* Flex item olarak header'ın en solunda */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
  width: 44px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: var(--header-text);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.DrawerToggle--back:hover { background: rgba(255,255,255,0.1); }

/* Hamburger sadece mobilde görünür */
.DrawerToggle--mobile {
  display: none;
  width: 34px; height: 34px; border-radius: 50%;
  align-items: center; justify-content: center;
  color: var(--header-ctrl); background: transparent; border: none;
  margin-right: 4px; flex-shrink: 0; cursor: pointer;
  transition: background 0.15s;
}
.DrawerToggle--mobile:hover { background: var(--header-ctrl-bg); }

/* Hamburger */
.DrawerToggle {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--header-ctrl); background: transparent; border: none;
  margin-right: 4px; flex-shrink: 0; cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.DrawerToggle:hover { background: var(--header-ctrl-bg); color: var(--header-ctrl-hover); }

/* Logo */
.Header-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0; margin-right: 8px;
  transition: opacity var(--ease);
}
.Header-logo:hover { opacity: 0.8; text-decoration: none; }
.Header-logo-text { color: var(--header-text); font-size: 15px; font-weight: 600; white-space: nowrap; }
.HeaderLogo-icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; flex-shrink: 0;
}

/* Search — sağa hizalı */
.App-header .Search { position: relative; width: 200px; flex-shrink: 0; }
.App-header .Search-input {
  width: 100%; height: 32px; padding: 0 12px 0 34px;
  background: var(--header-ctrl-bg); border: none; border-radius: 4px;
  color: var(--header-text); font-size: 13px;
  transition: background var(--ease), width 0.2s;
}
.App-header .Search-input::placeholder { color: var(--header-ctrl); }
.App-header .Search-input:focus { background: var(--header-ctrl-bg-hover); outline: none; width: 240px; }
.App-header .Search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--header-ctrl); font-size: 12px; pointer-events: none;
}

/* Right side */
.Header-secondary { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; position: relative; }

.Header-iconBtn {
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  color: var(--header-ctrl); font-size: 15px; position: relative;
  transition: background var(--ease), color var(--ease);
}
.Header-iconBtn:hover { background: var(--header-ctrl-bg); color: var(--header-ctrl-hover); }

.Header-newBtn { background: var(--header-ctrl-bg); color: var(--header-text) !important; font-weight: 600; }
.Header-newBtn:hover { background: var(--header-ctrl-bg-hover); color: var(--header-text) !important; }

.Header-authBtn { background: transparent; color: var(--header-ctrl); border: none; }
.Header-authBtn:hover { background: var(--header-ctrl-bg); color: var(--header-ctrl-hover); }

.Header-userBtn {
  display: flex; align-items: center; gap: 7px;
  padding: 3px 8px 3px 3px; border-radius: 17px;
  background: transparent; border: none;
  transition: background var(--ease);
}
.Header-userBtn:hover { background: var(--header-ctrl-bg); }
.Header-username { font-size: 13px; color: var(--header-text); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.Header-caret { font-size: 9px; color: var(--header-ctrl); }

/* Notification badge */
.unread-count {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; background: #dd4b39; border-radius: 50%;
  font-size: 9px; font-weight: bold; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--header-bg); pointer-events: none;
}

/* Sign Up in header */
.App-header .Button--primary {
  background: var(--header-ctrl-bg-hover);
  color: var(--header-text) !important;
  font-weight: 600;
}
.App-header .Button--primary:hover { background: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════
   DROPDOWN
   ══════════════════════════════════════════════ */
/* Dropdown wrapper — position:relative şart */
.SessionDropdown,
.NotificationsDropdown {
  position: relative;
  z-index: 201;
}

.Dropdown-menu {
  position: absolute; top: calc(100% + 5px); right: 0; left: auto;
  min-width: 200px; background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: 5px 0; z-index: 9999;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: all 0.15s ease;
  overflow: hidden;
}
.Dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.Dropdown-menu li a,
.Dropdown-menu li button {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13px; color: #555;
  text-decoration: none; background: none; border: none;
  width: 100%; text-align: left; cursor: pointer;
  transition: background var(--ease);
}
.Dropdown-menu ul { list-style: none; margin: 0; padding: 0; }
.Dropdown-menu li a:hover,
.Dropdown-menu li button:hover { background: #f5f6f8; color: #333; }
.Dropdown-menu .icon { width: 16px; text-align: center; color: #bbb; font-size: 13px; }
.Dropdown-menu li.divider { height: 1px; background: #eee; margin: 4px 0; }
.Dropdown-menu .MenuItem--destructive { color: #dd4b39 !important; }
.Dropdown-menu .user-info { padding: 10px 16px 8px; border-bottom: 1px solid #eee; margin-bottom: 3px; }
.Dropdown-menu .user-info .displayname { font-weight: bold; font-size: 13.5px; }
.Dropdown-menu .user-info .username { font-size: 12px; color: #999; }

/* Notifications dropdown */
.NotificationsDropdown .Dropdown-menu {
  width: 340px;
  right: -10px;
  max-height: 480px;
  overflow-y: auto;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.NotificationsDropdown-content-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px 11px;
  border-bottom: 1px solid #f0f2f5;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.NotificationsDropdown-content-header span {
  font-size: 14px; font-weight: 700; color: #222;
}
.NotificationsDropdown-content-header div {
  display: flex; gap: 10px;
}
.NotificationsDropdown-content-header a {
  font-size: 12.5px; color: var(--primary); text-decoration: none; font-weight: 500;
}
.NotificationsDropdown-content-header a:hover { text-decoration: underline; }

.NotificationList-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 16px;
  border-bottom: 1px solid #f5f6f8;
  text-decoration: none; color: #333;
  transition: background 0.1s;
}
.NotificationList-item:last-child { border-bottom: none; }
.NotificationList-item:hover { background: #f9fafb; }
.NotificationList-item.unread { background: #f0f4fa; }
.NotificationList-item.unread:hover { background: #e8eef7; }

/* Avatar dairesi (icon) */
.NotificationList-item .icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; flex-shrink: 0;
}

/* Avatar img (varsa) */
.NotificationList-item img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}

.NotificationList-item .content { flex: 1; min-width: 0; }
.NotificationList-item .content .excerpt {
  font-size: 13px; line-height: 1.45; color: #333;
  white-space: normal; word-break: break-word;
}
.NotificationList-item .content .time {
  font-size: 11.5px; color: #aaa; margin-top: 3px;
}
.NotificationList-item .unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 4px;
}
.NotificationList-empty {
  padding: 32px 16px; text-align: center; color: #bbb; font-size: 13px;
}
.NotificationList-empty i { font-size: 28px; display: block; margin-bottom: 10px; opacity: 0.35; }

/* ══════════════════════════════════════════════
   DRAWER (hamburger nav)
   ══════════════════════════════════════════════ */
.App-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 490;
  opacity: 0; visibility: hidden; transition: all 0.2s;
  backdrop-filter: blur(2px);
}
.App-overlay.open { opacity: 1; visibility: visible; }
.App-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 270px;
  background: #fff; z-index: 500;
  box-shadow: 2px 0 16px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; display: flex; flex-direction: column;
}
.App-drawer.open { transform: translateX(0); }
.App-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; height: 51px; background: var(--header-bg); flex-shrink: 0;
}
.App-drawer-close {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--header-ctrl); font-size: 13px; cursor: pointer;
  transition: background var(--ease);
}
.App-drawer-close:hover { background: var(--header-ctrl-bg); color: var(--header-ctrl-hover); }
.App-drawer-content { padding: 8px 0 16px; flex: 1; overflow-y: auto; }
.App-drawer-search { padding: 10px 12px 4px; border-bottom: 1px solid #f0f0f0; }
.Drawer-newBtn { color: var(--primary) !important; font-weight: 700; background: rgba(77,105,142,0.06); margin: 4px 8px; border-radius: var(--radius-lg); }
.Drawer-newBtn:hover { background: rgba(77,105,142,0.12) !important; }
.App-drawer-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 14px; border-bottom: 1px solid #eee; margin-bottom: 6px;
}
.App-drawer-user .name { font-weight: bold; font-size: 13px; }
.App-drawer-user .username { font-size: 12px; color: #aaa; }
.NavItem {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13.5px; color: #666;
  text-decoration: none; transition: background var(--ease);
  border-left: 3px solid transparent; cursor: pointer;
}
.NavItem:hover { background: rgba(0,0,0,0.04); color: #333; }
.NavItem.active { color: var(--primary); border-left-color: var(--primary); background: rgba(77,105,142,0.07); font-weight: 600; }
.NavItem .icon { width: 18px; text-align: center; font-size: 13px; flex-shrink: 0; color: #bbb; }
.NavItem.active .icon { color: var(--primary); }
.NavItem .tag-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.NavItem .count { margin-left: auto; font-size: 11px; color: #bbb; }
.Nav-section { padding: 10px 16px 3px; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.07em; color: #bbb; }
.Nav-divider { height: 1px; background: #eee; margin: 6px 0; }

/* ══════════════════════════════════════════════
   HERO BANNER
   ══════════════════════════════════════════════ */
.Hero { background: var(--hero-bg); position: relative; width: 100%; }
.Hero-inner { max-width: 1100px; margin: 0 auto; padding: 40px 15px 40px; text-align: center; }
.Hero-title { font-size: 22px; font-weight: bold; color: var(--hero-text); margin-bottom: 10px; }
.Hero-subtitle { font-size: 14px; color: var(--hero-text-muted); max-width: 480px; margin: 0 auto; line-height: 1.6; }
.Hero-close {
  position: absolute; top: 10px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.12); border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--hero-text-muted); font-size: 11px; cursor: pointer;
  transition: all var(--ease);
}
.Hero-close:hover { background: rgba(0,0,0,0.22); color: var(--hero-text); }

/* TAG HERO — Forum style: full width, centered, tag color bg */
.TagHero {
  width: 100%;
  padding: 48px 20px 48px;
}
.TagHero-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.TagHero-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.TagHero-content { min-width: 0; }
.TagHero-name {
  font-size: 22px; font-weight: 700;
  color: rgba(255,255,255,0.97);
  margin: 0 0 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.TagHero-description {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.6;
  max-width: 540px;
}
.TagHero-stats { display: flex; gap: 28px; margin-top: 8px; }
.TagHero-stat { text-align: center; }
.TagHero-stat strong {
  display: block; font-size: 20px; font-weight: 700;
  color: rgba(255,255,255,0.95); line-height: 1;
}
.TagHero-stat span {
  font-size: 11px; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 3px; display: block;
}

/* ══════════════════════════════════════════════
   INDEX PAGE LAYOUT
   ══════════════════════════════════════════════ */
.IndexPage {
  display: flex; gap: 20px; align-items: flex-start;
  max-width: 1100px; margin: 0 auto; padding: 20px 15px;
}

/* ── Sidebar ── */
.IndexPage-nav {
  width: 178px; flex-shrink: 0;
  position: sticky; top: calc(51px + 15px);
}
.IndexPage-newDiscussion {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 38px; margin-bottom: 12px;
  background: #e7562a; color: #fff !important;
  border-radius: 4px; font-size: 13.5px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(231,86,42,0.35);
}
.IndexPage-newDiscussion:hover { background: #cf4a22; color: #fff !important; }

/* Sidebar nav */
.IndexNav { display: flex; flex-direction: column; }
.IndexNav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius);
  font-size: 13px; color: #666; text-decoration: none;
  transition: background var(--ease), color var(--ease);
  min-width: 0;
}
.IndexNav-link:hover { background: rgba(0,0,0,0.06); color: #333; text-decoration: none; }
.IndexNav-link.active { background: rgba(77,105,142,0.1); color: var(--primary); font-weight: 600; }
.IndexNav-icon { width: 16px; text-align: center; font-size: 12px; color: #bbb; flex-shrink: 0; }
.IndexNav-link.active .IndexNav-icon { color: var(--primary); }
.IndexNav-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.IndexNav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.IndexNav-count { font-size: 11px; color: #bbb; flex-shrink: 0; margin-left: auto; }
.IndexNav-divider { height: 1px; background: rgba(0,0,0,0.07); margin: 6px 0; }
.IndexNav-stats { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.07); }
.IndexNav-stat { display: flex; align-items: center; gap: 7px; padding: 3px 10px; font-size: 12px; color: #aaa; }
.IndexNav-stat i { font-size: 11px; width: 14px; text-align: center; }

/* ── Main ── */
.IndexPage-main { flex: 1; min-width: 0; background: #fff; }

.IndexPage-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; padding: 4px 0 10px;
}
.IndexPage-toolbar-count { font-size: 12px; color: #aaa; }
.IndexPage-sortLinks { display: flex; gap: 2px; }
.IndexPage-sortLink {
  padding: 4px 9px; border-radius: var(--radius);
  font-size: 12.5px; color: #aaa; text-decoration: none;
  transition: all var(--ease); cursor: pointer;
}
.IndexPage-sortLink:hover { background: rgba(0,0,0,0.06); color: #555; }
.IndexPage-sortLink.active { color: var(--primary); font-weight: 600; }

/* ══════════════════════════════════════════════
   DISCUSSION LIST TOOLBAR (Latest ▼ + ✓)
   ══════════════════════════════════════════════ */
.DiscList-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 8px;
  position: relative;
}

/* "Latest ▼" sort button */
.DiscList-sortBtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 13.5px; font-weight: 600;
  color: #555; cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.DiscList-sortBtn:hover { border-color: rgba(0,0,0,0.2); color: #333; }
.DiscList-sortBtn i { font-size: 11px; color: #aaa; }

.DiscList-sortWrap { position: relative; }
.DiscList-sortMenu {
  position: absolute;
  top: calc(100% + 4px); left: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.15);
  padding: 5px 0;
  z-index: 100;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.15s ease;
}
.DiscList-sortMenu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.DiscList-sortOption {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  font-size: 13px; color: #555;
  text-decoration: none;
  transition: background 0.1s;
}
.DiscList-sortOption:hover { background: #fff; color: #333; }
.DiscList-sortOption.active { color: var(--primary); font-weight: 600; }
.DiscList-sortOption i { width: 12px; text-align: center; font-size: 11px; }

/* ✓ Mark all read button */
.DiscList-markRead {
  width: 34px; height: 34px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: #aaa;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.DiscList-markRead:hover { color: var(--primary); border-color: var(--primary); background: rgba(77,105,142,0.05); }

/* ══════════════════════════════════════════════
   DISCUSSION LIST + ITEMS — Forum-style
   ══════════════════════════════════════════════ */
.DiscussionList {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* DIV item — no nested <a> problem */
.DiscItem {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
  min-height: 60px;
}
.DiscItem:last-child { border-bottom: none; }
.DiscItem:hover { background: #f9fafb; }
.DiscItem--sticky { /* border kaldırıldı */ }
.DiscItem--locked { opacity: 0.75; }

.DiscItem-avatar {
  flex-shrink: 0;
  width: 56px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1px;
  position: relative;
}
.DiscItem-badge {
  position: absolute; bottom: -2px; right: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; color: #fff; border: 2px solid #fff;
}
.DiscItem-badge--sticky { background: var(--primary); }
.DiscItem-badge--locked { background: #aaa; }

.DiscItem-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.DiscItem-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  line-height: 1.35;
  display: block;
  word-break: break-word;
}
.DiscItem:hover .DiscItem-title { color: var(--primary); }
.DiscItem-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 3px; font-size: 12.5px; color: #aaa;
}
.DiscItem-meta-icon { font-size: 10px; color: #bbb; }
.DiscItem-meta-user { color: #888; font-weight: 500; text-decoration: none; }
.DiscItem-meta-user:hover { color: var(--primary); }
.DiscItem-meta-verb { color: #bbb; }
.DiscItem-meta-time { color: #aaa; }
.DiscItem-excerpt {
  font-size: 13px; color: #888; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.DiscItem-right {
  flex-shrink: 0; display: flex; align-items: center;
  gap: 12px; margin-left: 12px; padding-top: 2px;
}
.DiscItem-tags {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 5px; justify-content: flex-end; max-width: 200px;
}
.DiscItem-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 3px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.12s;
}
.DiscItem-tag:hover { opacity: 0.8; }
.DiscItem-tag i { font-size: 10px; }
.DiscItem-replyCount { display: flex; align-items: center; gap: 5px; min-width: 30px; }
.DiscItem-replyIcon { font-size: 17px; color: #ddd; transition: color 0.12s; }
.DiscItem-replyIcon.has-replies { color: #bbb; }
.DiscItem:hover .DiscItem-replyIcon { color: var(--primary); }
.DiscItem-replyNum { font-size: 13px; font-weight: bold; color: #888; min-width: 16px; }
.DiscItem:hover .DiscItem-replyNum { color: var(--primary); }

/* Empty state */
.DiscList-empty { padding: 52px 20px; text-align: center; color: #ccc; }
.DiscList-empty i { font-size: 40px; display: block; margin-bottom: 12px; opacity: 0.35; }
.DiscList-empty p { font-size: 14px; }

/* ══════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════ */
.Pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 16px 0; flex-wrap: wrap;
}
.Pagination .Button { min-width: 32px; height: 32px; padding: 0 5px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.1); background: #fff; color: #777; font-size: 13px; }
.Pagination .Button:hover { border-color: var(--primary); color: var(--primary); background: rgba(77,105,142,0.06); }
.Pagination .Button.active { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.Pagination-prev, .Pagination-next { font-size: 11px; }
.Pagination-loadMore { color: #bbb; padding: 0 2px; }



/* ══════════════════════════════════════════════
   HEADER NAV LINKS + DROPDOWN
   ══════════════════════════════════════════════ */
.Header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}
.Header-navLink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--header-ctrl-hover);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.Header-navLink:hover,
.Header-navLink--drop:hover { background: var(--header-ctrl-bg); color: var(--header-text); }
.Header-navLink i { font-size: 10px; opacity: 0.7; }

.Header-navDropdown { position: relative; }
.Header-navMenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 5px 0;
  z-index: 300;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.15s ease;
}
.Header-navMenu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.Header-navMenuItem {
  display: block;
  padding: 9px 16px;
  font-size: 13.5px;
  color: #444;
  text-decoration: none;
  transition: background 0.1s;
}
.Header-navMenuItem:hover { background: #f5f6f8; color: var(--primary); }

/* ══════════════════════════════════════════════
   STATIC PAGES (Hakkımızda, Gizlilik vb.)
   ══════════════════════════════════════════════ */
.StaticHero {
  width: 100%;
  padding: 80px 20px;
  text-align: center;
}
.StaticHero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}
.StaticHero-home {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.1s;
}
.StaticHero-home:hover { color: #fff; }
.StaticHero-sep { color: rgba(255,255,255,0.5); font-size: 13px; }
.StaticHero-current { color: #fff; font-weight: 600; text-decoration: none; }
.StaticHero-current:hover { text-decoration: underline; color: rgba(255,255,255,0.85); }

.StaticPage {
  max-width: 760px;
  margin: 24px auto;
  padding: 0 16px 60px;
}
.StaticPage-inner {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.StaticPage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px 20px;
  border-bottom: 1px solid #f0f2f5;
}
.StaticPage-header i {
  font-size: 22px;
  color: var(--primary);
  width: 28px;
  text-align: center;
}
.StaticPage-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.StaticPage-content {
  padding: 28px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #444;
}
.StaticPage-content h2 {
  font-size: 18px; font-weight: 700; color: #222;
  margin: 0 0 14px; display: none;
}
.StaticPage-content h3 {
  font-size: 15px; font-weight: 700; color: #333;
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f2f5;
}
.StaticPage-content p { margin: 0 0 12px; }
.StaticPage-content strong { color: #333; font-weight: 600; }

@media (max-width: 680px) {
  .Header-nav { display: none; }
  .DrawerToggle--mobile { display: flex; }
  .StaticPage { margin: 12px auto; padding: 0 10px 40px; }
  .StaticPage-content { padding: 18px; }

  /* Mobile discussion */
  .DiscussionPage { padding: 8px 0 40px; }
  .DiscussionPage-stream { min-width: 0; }
  .Post { padding: 12px 14px 0; }
  .Post { padding: 12px 12px 0; gap: 0; }
  .Post-side { width: 42px; padding-right: 10px; padding-top: 0; }
  .Post-side .Avatar, .Post-side img { width: 36px !important; height: 36px !important; font-size: 13px !important; }
  .Post-author { font-size: 13px; }
  .Post-content { font-size: 13.5px; line-height: 1.6; }
  /* 1 of X posts üstündeki boşluğu kaldır */
  .MobileScrubBar + .DiscussionPage-body,
  .DiscussionHero { margin-top: 0; }
  .ComposerPlaceholder { margin: 12px 10px 0; }
  .DiscHero { padding: 28px 14px 28px; }
  .DiscHero-title { font-size: 16px; }

  /* Scrubber mobilde gizle — yerine MobileScrubber bar göster */
  .Scrubber { display: none; }
  .MobileScrubBar {
    display: flex !important;
    position: fixed; top: 51px; left: 0; right: 0; z-index: 190;
    background: #fff; border-bottom: 1px solid #e5e7eb;
    height: 40px; align-items: center;
    padding: 0 12px; gap: 8px;
    font-size: 13px; color: #555;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
  .MobileScrubBar-info { flex: 1; text-align: center; font-weight: 600; color: #374151; }
  .MobileScrubBar-info span { color: #e7562a; }
  .MobileScrubBar-btn {
    background: none; border: none; cursor: pointer;
    color: #9ca3af; font-size: 16px; padding: 4px 6px;
    transition: color 0.1s;
  }
  .MobileScrubBar-btn:hover { color: #374151; }
  /* Body padding artır — fixed bar için */
  .DiscussionPage { padding-top: 38px; margin-top: 0; }
}

/* ══════════════════════════════════════════════
   DISCUSSION NAV PANEL (sol ← paneli)
   ══════════════════════════════════════════════ */
.DiscNav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 399;
}
.DiscNav-backdrop.open { display: block; }

.DiscNav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 320px;
  background: #fff;
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 20px rgba(0,0,0,0.15);
}
.DiscNav.open { transform: translateX(0); }

.DiscNav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  height: 51px;
  background: var(--header-bg);
  flex-shrink: 0;
  font-size: 14px; font-weight: 700;
  color: var(--header-text);
}
.DiscNav-header i { margin-right: 6px; }
.DiscNav-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--header-ctrl-bg); border: none;
  color: var(--header-text); font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.1s;
}
.DiscNav-close:hover { background: var(--header-ctrl-bg-hover); }

.DiscNav-list {
  flex: 1; overflow-y: auto;
  padding: 6px 0;
}
.DiscNav-loading {
  padding: 30px; text-align: center; color: #aaa; font-size: 20px;
}
.DiscNav-empty { padding: 20px 16px; text-align: center; color: #aaa; font-size: 13px; }

.DiscNav-item {
  display: flex; align-items: flex-start;
  padding: 11px 16px;
  border-bottom: 1px solid #f5f6f8;
  text-decoration: none; color: #333;
  transition: background 0.1s;
  gap: 10px;
}
.DiscNav-item:hover { background: #f9fafb; }
.DiscNav-item:last-child { border-bottom: none; }
.DiscNav-itemMain { flex: 1; min-width: 0; }
.DiscNav-itemTitle {
  font-size: 13.5px; font-weight: 600; color: #333;
  line-height: 1.35; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.DiscNav-item:hover .DiscNav-itemTitle { color: var(--primary); }
.DiscNav-itemMeta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: #aaa;
}
.DiscNav-itemMeta i { font-size: 10px; }
.DiscNav-tag {
  padding: 1px 6px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}

/* Back arrow — Forum gibi, header en solunda, beyaz kutu */
/* DrawerToggle--back duplicate removed */

@media (max-width: 680px) {
  .DiscNav { width: 85vw; max-width: 300px; }
}

/* ══════════════════════════════════════════════
   DISCUSSION PAGE
   ══════════════════════════════════════════════ */
.DiscussionPage-stream { flex: 1; min-width: 0; background: transparent; padding: 20px 0; }


/* Discussion Hero — tags top right, title bottom, like Forum screenshot */
.DiscussionHero {
  background: var(--hero-bg);
  padding: 20px 24px 18px;
  position: relative;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Tags row — top right (sticky icon + tag pills) */
.DiscussionHero-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.DiscHero-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: rgba(255,255,255,0.85);
}
.DiscHero-badge--sticky { background: rgba(255,255,255,0.22); }
.DiscHero-badge--locked { background: rgba(0,0,0,0.2); }
.DiscHero-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 3px;
  font-size: 12.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  background: rgba(255,255,255,0.9);
  transition: opacity 0.15s;
}
.DiscHero-tag:hover { opacity: 0.85; text-decoration: none; }
.DiscHero-tag i { font-size: 11px; }

/* Title — big white text */
.DiscussionHero-title {
  font-size: 22px;
  font-weight: bold;
  color: rgba(255,255,255,0.95);
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Meta: views, replies, date */
.DiscussionHero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
}
.DiscussionHero-meta span { display: flex; align-items: center; gap: 4px; }

/* Mod controls */
.DiscussionHero-controls {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 6px;
}
.DiscussionHero-controls .Button { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8) !important; font-size: 12px; height: 28px; border: none; }
.DiscussionHero-controls .Button:hover { background: rgba(255,255,255,0.22); color: #fff !important; }
.DiscussionHero-controls .Button--danger { background: rgba(220,50,50,0.3); }
.DiscussionHero-controls select { height: 28px; padding: 0 8px; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); border: none; border-radius: var(--radius); font-size: 12px; cursor: pointer; }
.DiscussionHero-controls select option { background: #333; color: #eee; }

/* Post stream */
/* ══════════════════════════════════════════════
   DISCUSSION HERO — full width, Forum style
   ══════════════════════════════════════════════ */
.DiscHero {
  width: 100%;
  background: var(--hero-bg, #4d90c4);
  padding: 48px 20px 48px;
  text-align: center;
}
.DiscHero-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.DiscHero-tagPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.25);
  border-radius: 20px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.DiscHero-tagPill:hover { background: rgba(255,255,255,0.35); color: #fff; }
.DiscHero-tagPill i { font-size: 11px; }
.DiscHero-title {
  color: rgba(255,255,255,0.95);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ================================================================
   DISCUSSION PAGE — Forum screenshot exact match
   ================================================================ */

/* Page wrapper */
.DiscussionPage {
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100vh - 51px);
}

/* Left: stream */
.DiscussionPage-stream {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* ── Individual post ── */
.Post {
  display: flex;
  gap: 0;
  padding: 18px 28px 0;
  background: #fff;
  border-bottom: 1px solid #e8ecef;
  position: relative;
}
.Post:last-of-type { border-bottom: none; }
.Post--op { background: #fff; }

/* Avatar side */
.Post-side {
  flex-shrink: 0;
  width: 56px;
  padding-right: 12px;
  padding-top: 2px;
}
.Post-side img, .Post-side span {
  border-radius: 50%;
}

/* Main content */
.Post-main {
  flex: 1;
  min-width: 0;
  padding-bottom: 0;
}

/* Author + time */
.Post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.Post-author {
  font-weight: 700;
  font-size: 14.5px;
  color: #111;
  text-decoration: none;
}
.Post-author:hover { color: var(--primary); }
.Post-time {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
}
.Post-time:hover { color: #666; }
.Post-edited { font-size: 12px; color: #d1d5db; font-style: italic; }

/* Badges */
.Badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.Badge--admin { background: rgba(231,76,60,0.1); color: #c0392b; }
.Badge--mod   { background: rgba(77,105,142,0.1); color: var(--primary); }

/* Content */
.Post-content {
  font-size: 14px; line-height: 1.75; color: #333;
  overflow-wrap: break-word; word-break: break-word;
  overflow-x: hidden; max-width: 100%;
}
.Post-content pre, .Post-content code {
  max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
.Post-content p           { margin-bottom: 0.85em; }
.Post-content p:last-child{ margin-bottom: 0; }
.Post-content strong      { font-weight: 700; }
.Post-content em          { font-style: italic; }
.Post-content a           { color: var(--primary); }
.Post-content a:hover     { text-decoration: underline; }
.Post-content code        { background: #f3f4f6; padding: 2px 6px; border-radius: 3px; font-size: 91%; font-family: monospace; }
.Post-content pre         { background: #282c34; color: #abb2bf; padding: 14px 16px; border-radius: 6px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; margin: 12px 0; font-family: monospace; }
.Post-content pre code    { background: none; padding: 0; }
.Post-content blockquote  { border-left: 3px solid #e5e7eb; padding: 4px 14px; color: #999; margin: 10px 0; font-style: italic; }
.Post-content ul          { list-style: disc; padding-left: 22px; margin: 8px 0; }
.Post-content ol          { list-style: decimal; padding-left: 22px; margin: 8px 0; }
.Post-content li          { margin-bottom: 4px; }
.Post-content h1,.Post-content h2 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.Post-content h3          { font-size: 15px; font-weight: 700; margin: 12px 0 6px; }
.Post-content hr          { border: none; border-top: 1px solid #eee; margin: 16px 0; }
.PostMention { color: var(--primary); font-weight: 600; }

/* "X replied to this." */
.Post-repliedBy {
  margin-top: 12px;
  font-size: 13px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 6px;
}
.Post-repliedBy i { font-size: 11px; color: #ccc; }
.Post-repliedBy a { color: #888; font-weight: 600; text-decoration: none; }
.Post-repliedBy a:hover { color: var(--primary); }

/* Post-likeInfo defined in Post-footer */

/* Post reply quote box — Forum style */
.Post-replyQuote {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #9ca3af;
  cursor: pointer;
  flex-wrap: wrap;
}
.Post-replyQuote:hover .Post-replyQuote-author a { color: var(--primary); }
.Post-replyQuote-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  flex-shrink: 0;
}
.Post-replyQuote-author i { font-size: 10px; color: #c0c4cc; }
.Post-replyQuote-author a { color: #6b7280; text-decoration: none; }
.Post-replyQuote-text {
  color: #9ca3af;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 480px;
  display: inline;
}

/* Post flash highlight (reply tıklandığında) */
.Post--mentioned {
  animation: postPulse 0.8s ease 2;
}
@keyframes postPulse {
  0%   { transform: scale(1);     opacity: 1; }
  20%  { transform: scale(0.982); opacity: 0.7; }
  50%  { transform: scale(1.01);  opacity: 1; }
  80%  { transform: scale(0.988); opacity: 0.75; }
  100% { transform: scale(1);     opacity: 1; }
}
.Post--flash {
  animation: postFlash 1.2s ease;
}
@keyframes postFlash {
  0%   { background: rgba(77,105,142,0.12); }
  40%  { background: rgba(77,105,142,0.08); }
  100% { background: transparent; }
}

/* Engage info (replied/liked by names) */
.Post-engageInfo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 10px;
  line-height: 1.5;
}
.Post-engageInfo i { font-size: 12px; margin-right: 2px; flex-shrink: 0; }
.Post-engageInfo a { color: #6b7280; font-weight: 600; text-decoration: none; }
.Post-engageInfo a:hover { color: var(--primary); text-decoration: underline; }
.Post-engageMore {
  background: none; border: none; padding: 0;
  color: #6b7280; font-weight: 600; font: inherit; font-size: 13px;
  cursor: pointer; text-decoration: underline;
}
.Post-engageMore:hover { color: var(--primary); }

/* Engage modal user list */
/* Engage modal override */
#engageModal {
  z-index: 9999 !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 380px !important;
  width: 90% !important;
}
#engageModalBackdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.45) !important;
  z-index: 9998 !important;
}

.EngageModal-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; text-decoration: none; color: #333;
  border-bottom: 1px solid #f3f4f6; transition: background 0.1s;
}
.EngageModal-user:last-child { border-bottom: none; }
.EngageModal-user:hover { background: #f9fafb; }
.EngageModal-user span { font-size: 14px; font-weight: 500; }

/* Edit form */
.Post-editWrap { margin: 8px 0; }
.PostEdit-textarea {
  width: 100%; min-height: 80px; padding: 10px 12px;
  border: 1px solid #ddd; border-radius: 6px;
  font: inherit; font-size: 14px; resize: vertical; color: #333;
}
.PostEdit-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Actions: Reply · Like · ··· */
.Post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px;
}
.Post-likeInfo {
  font-size: 13px; color: #aaa;
  display: flex; align-items: center; gap: 5px; min-height: 30px;
}
.Post-likeInfo i { color: #e74c3c; font-size: 12px; }
.Post-actions {
  display: flex; align-items: center; gap: 0;
}
.PostAction {
  height: 28px; padding: 0 10px;
  font-size: 13px; color: #aaa; font-weight: 400;
  background: transparent; border: none; border-radius: 14px;
  cursor: pointer; font: inherit; transition: all 0.12s;
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: 0;
}
.PostAction:hover { background: rgba(0,0,0,0.05); color: #333; }
.PostAction--like.is-liked { color: #e74c3c; }
.PostAction--like:hover { color: #e74c3c !important; }
.PostAction--dots { font-size: 16px; letter-spacing: 2px; }

.PostAction-more { position: relative; display: inline-block; }
.PostAction-menu {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 3px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); min-width: 140px; padding: 4px 0; z-index: 50;
}
.PostAction-menu.open { display: block; }
.PostAction-menuItem {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 14px; font-size: 13px; color: #333;
  background: none; border: none; cursor: pointer; font: inherit; text-align: left;
  transition: background 0.1s;
}
.PostAction-menuItem:hover { background: #f3f4f6; }
.PostAction-menuItem--danger { color: #e74c3c; }

/* Empty state */
.Post-empty {
  text-align: center; padding: 48px 24px; color: #9ca3af;
  font-size: 14px;
}
.Post-empty i { display: block; font-size: 36px; margin-bottom: 12px; }

/* ── Composer Placeholder — inline dashed box ── */
.ComposerPlaceholder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 20px 20px 0;
  border: 2px dashed #d5dde5;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}
.ComposerPlaceholder:hover {
  border-color: #aab;
  background: #fafbfc;
}
.ComposerPlaceholder-text {
  font-size: 14px;
  color: #a0aab4;
}
.ComposerPlaceholder-text a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
.ComposerPlaceholder--locked,
.ComposerPlaceholder--guest {
  cursor: default;
}
.ComposerPlaceholder--locked:hover {
  border-color: #dde1e5;
  background: #fff;
}

/* ── Forum-style Floating Composer (Composer2) ── */
.Composer2 {
  position: fixed;
  bottom: 0;
  left: 0;       /* JS ile override edilecek */
  width: 100px;  /* JS ile override edilecek */
  transform: translateY(100%);
  z-index: 500;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.Composer2.open {
  transform: translateY(0);
}
.Composer2.minimized .Composer2-textarea,
.Composer2.minimized .Composer2-footer {
  display: none;
}
/* Fullscreen: tüm sayfa kapla */
.Composer2.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  z-index: 600;
}
.Composer2.fullscreen .Composer2-box {
  height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.Composer2.fullscreen .Composer2-textarea {
  flex: 1 !important;
  max-height: none !important;
  min-height: 0 !important;
  resize: none;
}
.Composer2-box {
  background: #fff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 30px rgba(0,0,0,0.15);
  border: 1px solid #e0e3e8;
  border-bottom: none;
  overflow: hidden;
}

/* Header */
.Composer2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  background: #fff;
  cursor: pointer;
}
.Composer2-headerLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.Composer2-replying {
  font-size: 13.5px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.Composer2-replying i {
  color: #aaa;
  margin-right: 3px;
  font-size: 11px;
}
.Composer2-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.Composer2-ctrl {
  width: 30px; height: 30px;
  border: none; background: none; border-radius: 4px;
  color: #aaa; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.Composer2-ctrl:hover { background: #f3f4f6; color: #555; }

/* Textarea */
.Composer2-textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  max-height: 40vh;
  padding: 14px 16px;
  border: none;
  resize: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  outline: none;
}
.Composer2-textarea::placeholder { color: #bbb; }

/* Footer: Post Reply + tools */
.Composer2-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  background: #f9fafb;
  flex-wrap: wrap;
}
.Composer2-submit {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 18px;
  background: #e74c3c; color: #fff;
  border: none; border-radius: 4px;
  font: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: background 0.15s; flex-shrink: 0;
}
.Composer2-submit:hover { background: #c0392b; }
.Composer2-tools {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
}
.Composer2-tool {
  width: 30px; height: 30px;
  border: none; background: none; border-radius: 4px;
  color: #888; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.Composer2-tool:hover { background: #eee; color: #333; }

.Composer-charcount {
  margin-left: auto;
  font-size: 12px;
  color: #bbb;
}
.Composer-charcount.over { color: #e74c3c; }

/* Btn (shared with Composer) */
.Btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 34px; border-radius: 4px;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s; text-decoration: none;
}
.Btn--primary { background: var(--primary); color: #fff; }
.Btn--primary:hover { background: var(--primary-dark); }
.Btn { background: #f3f4f6; color: #555; border: 1px solid #e5e7eb; }
.Btn:hover { background: #e5e7eb; }

/* ══════════════════════════════════════════════
   SCRUBBER — Forum screenshot exact match
   ══════════════════════════════════════════════ */

.Scrubber {
  width: 170px;
  flex-shrink: 0;
  position: sticky;
  top: calc(51px + 20px);
  max-height: calc(100vh - 51px - 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  align-self: flex-start;
}

/* Orange Reply button */
.Scrubber-reply {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 38px;
  background: #e74c3c; color: #fff;
  border: none; border-radius: 4px;
  font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s; flex-shrink: 0;
}
.Scrubber-reply:hover { background: #c0392b; }

/* Follow + caret */
.Scrubber-followRow {
  display: flex; width: 100%; flex-shrink: 0; position: relative;
}
.Scrubber-followBtn {
  flex: 1; height: 34px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: #555;
  border: 1px solid #e5e7eb; border-right: none;
  border-radius: 4px 0 0 4px;
  font: inherit; font-size: 13px; cursor: pointer;
}
.Scrubber-followBtn:hover { background: #f9fafb; }
.Scrubber-followCaret {
  width: 30px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #aaa;
  border: 1px solid #e5e7eb; border-radius: 0 4px 4px 0;
  font-size: 10px; cursor: pointer;
}
.Scrubber-followCaret:hover { background: #f9fafb; }
.Scrubber-followMenu {
  position: absolute; top: 100%; right: 0; margin-top: 3px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 130px; padding: 4px 0; z-index: 100; display: none;
}
.Scrubber-followMenu.open { display: block; }
.Scrubber-followMenu a,
.Scrubber-followMenu-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 14px; font-size: 13px; color: #333;
  cursor: pointer; text-decoration: none;
  background: none; border: none; font: inherit; text-align: left;
  transition: background 0.1s;
}
.Scrubber-followMenu a:hover,
.Scrubber-followMenu-item:hover { background: #f3f4f6; color: #111; }
.Scrubber-followMenu-item--danger { color: #e74c3c !important; }
.Scrubber-followMenu-divider {
  height: 1px; background: #e5e7eb; margin: 4px 0;
}
.Scrubber-followMenu i { width: 14px; text-align: center; color: #999; font-size: 12px; }

/* Scrubber body */
.Scrubber-body {
  flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 28px;
}

/* Original Post + Now labels */
.Scrubber-top, .Scrubber-bottom {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; color: #6b7280; font-weight: 700;
  padding: 4px 0 4px 14px;
  cursor: pointer; user-select: none;
  flex-shrink: 0; transition: color 0.12s;
}
.Scrubber-top:hover, .Scrubber-bottom:hover { color: var(--primary); }
.Scrubber-top i, .Scrubber-bottom i { font-size: 16px; }

/* "N of X posts / March 2026" — SABIT, track'ten önce */
.Scrubber-info {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.Scrubber-count {
  font-size: 14px; font-weight: 700; color: #111; line-height: 1.3;
}
.Scrubber-date {
  font-size: 12px; color: #9ca3af; margin-top: 1px;
}

/* Track wrapper */
.Scrubber-trackWrap {
  flex: 1;
  min-height: 260px;
  position: relative;
  padding-left: 10px;
}

/* Gri arka plan track */
.Scrubber-track {
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: #e0e3e8; border-radius: 2px; cursor: pointer;
}

/* Fill tamamen gizle — kullanılmıyor */
.Scrubber-fill {
  display: none;
}

/* Cursor: mavi daire */
.Scrubber-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 36px;
  background: #e7562a;
  border-radius: 2px;
  cursor: grab;
  z-index: 2;
  transform: translateY(-50%);
}
.Scrubber-cursor:active { cursor: grabbing; }


/* ══════════════════════════════════════════════
   PROFILE FEED (FProf) — Forum birebir
   ══════════════════════════════════════════════ */

/* Discussion grup başlığı: "In Word association game" */
.FProf-group {
  margin-bottom: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 0 16px 12px;
  overflow: hidden;
}
.FProf-discTitle {
  font-size: 13px;
  color: var(--primary);
  padding: 14px 0 4px;
  font-weight: 500;
}
.FProf-discTitle a {
  color: var(--primary);
  text-decoration: none;
  font-style: italic;
}
.FProf-discTitle a:hover { text-decoration: underline; }

/* Post satırı — avatar SOL, içerik SAĞ yatay */
.FProf-post {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 6px 0 0;
}

/* Avatar */
.FProf-avatar {
  flex-shrink: 0;
  position: relative;
}
.FProf-avatar img,
.FProf-avatar .Avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  font-size: 18px !important;
  display: block;
}
.FProf-onlineDot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  flex-shrink: 0;
}
.FProf-avatarOnlineDot {
  display: none;
}
.FProf-likes {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}
.FProf-likes i { color: var(--primary); font-size: 12px; }

/* Sağ taraf: meta + içerik */
.FProf-body {
  flex: 1;
  min-width: 0;
}
.FProf-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.FProf-author {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}
.FProf-author:hover { color: var(--primary); }
.FProf-time { font-size: 12px; color: #aaa; }
.FProf-edited { font-size: 11.5px; color: #bbb; font-style: italic; }
.FProf-content {
  font-size: 13.5px;
  color: #444;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.FProf-content p { margin: 0 0 4px; }
.FProf-content p:last-child { margin: 0; }
.FProf-content blockquote {
  border-left: 3px solid #e0e3e8;
  margin: 4px 0;
  padding: 3px 10px;
  color: #888;
  font-style: italic;
}

@media (max-width: 680px) {
  .FProf-post { padding: 10px; gap: 10px; }
  .FProf-avatar img,
  .FProf-avatar .Avatar { width: 36px !important; height: 36px !important; }
}

/* ══════════════════════════════════════════════
   SETTINGS PAGE
   ══════════════════════════════════════════════ */
.SettingsPage2 {
  max-width: 860px;
  margin: 24px auto;
  padding: 0 16px 40px;
}
.SettingsPage2-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Settings sidebar nav */
.SettingsNav {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: calc(51px + 15px);
}
.SettingsNav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f5;
}
.SettingsNav-user img,
.SettingsNav-user .Avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 16px !important;
}
.SettingsNav-name { font-size: 13.5px; font-weight: 700; color: #333; }
.SettingsNav-username { font-size: 12px; color: #aaa; }
.SettingsNav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  border-left: 3px solid transparent;
}
.SettingsNav-link i { width: 16px; text-align: center; color: #aaa; font-size: 13px; }
.SettingsNav-link:hover { background: #f5f6f8; color: #333; }
.SettingsNav-link.active {
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
  background: rgba(77,105,142,0.05);
}
.SettingsNav-link.active i { color: var(--primary); }

/* Settings content area */
.SettingsContent {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Settings card */
.SettingsCard {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.SettingsCard-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

/* Avatar edit */
.AvatarEdit {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  flex-wrap: wrap;
}
.AvatarEdit-preview img,
.AvatarEdit-preview .Avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  font-size: 28px !important;
}
.AvatarEdit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.SettingsHint { font-size: 12px; color: #aaa; margin: 4px 0 0; width: 100%; }

/* Settings form */
.SettingsForm {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.SettingsForm-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.SettingsForm-group label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}
.SettingsForm-group label i { color: #aaa; font-size: 12px; }
.SettingsForm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.SettingsForm-footer {
  padding-top: 4px;
}

/* Input fields */
.SettingsInput {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e2e5e9;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.SettingsInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77,105,142,0.1);
  outline: none;
}
.SettingsInput--textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.SettingsInput-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.SettingsInput-wrap .SettingsInput { padding-right: 40px; }
.SettingsInput-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}
.SettingsInput-eye:hover { color: #555; }

/* Mobile */
@media (max-width: 680px) {
  .SettingsPage2-layout { flex-direction: column; }
  .SettingsNav { width: 100%; position: static; }
  .SettingsNav-user { padding: 12px; }
  .SettingsForm-row { grid-template-columns: 1fr; }
  .SettingsPage2 { padding: 0 10px 30px; margin-top: 12px; }
}

/* ══════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════ */
.Modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all 0.15s; backdrop-filter: blur(3px); }
.Modal-backdrop.open { opacity: 1; visibility: visible; }
.Modal { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 6px 40px rgba(0,0,0,0.2); width: 100%; max-width: 425px; transform: scale(0.96) translateY(10px); transition: all 0.15s; overflow: hidden; }
.Modal-backdrop.open .Modal { transform: scale(1) translateY(0); }
.Modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eee; }
.Modal-title { font-size: 15px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.Modal-title i { color: var(--primary); }
.Modal-close { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #bbb; cursor: pointer; transition: all var(--ease); }
.Modal-close:hover { background: rgba(0,0,0,0.07); color: #666; }
.Modal-content { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.Modal-footer { padding: 12px 18px; border-top: 1px solid #eee; text-align: center; font-size: 13px; color: #aaa; }
.Modal-footer button { color: var(--primary); font-weight: bold; background: none; border: none; cursor: pointer; font: inherit; font-size: 13px; }
.Modal-footer button:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   FORM CONTROLS
   ══════════════════════════════════════════════ */
.Form-group { display: flex; flex-direction: column; gap: 5px; }
.Form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.Form-label { font-size: 13px; font-weight: 600; color: #555; }
.Form-required { color: #dd4b39; }
.Form-hint { font-size: 11.5px; color: #aaa; margin-top: 2px; }
.FormControl { width: 100%; padding: 8px 11px; border: 1px solid #dde3e9; border-radius: var(--radius); font-size: 13.5px; color: #3d4147; background: #fff; transition: border-color var(--ease), box-shadow var(--ease); }
.FormControl:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(77,105,142,0.12); outline: none; }
.FormControl::placeholder { color: #bbb; }
.FormControl-wrap { position: relative; }
.FormControl-wrap .FormControl { padding-right: 36px; }
.FormControl-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 13px; cursor: pointer; }
.Form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23aaa' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 26px; cursor: pointer; }

/* ══════════════════════════════════════════════
   ALERT
   ══════════════════════════════════════════════ */
.Alert { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; }
.Alert i { flex-shrink: 0; margin-top: 1px; }
.Alert--success { background: rgba(39,174,96,0.1);  color: #1e8449; border: 1px solid rgba(39,174,96,0.2); }
.Alert--error   { background: rgba(220,50,50,0.1);  color: #c0392b; border: 1px solid rgba(220,50,50,0.2); }
.Alert--warning { background: rgba(243,156,18,0.1); color: #9a6e02; border: 1px solid rgba(243,156,18,0.2); }
.Alert--info    { background: rgba(52,152,219,0.1); color: #1a6ea3; border: 1px solid rgba(52,152,219,0.2); }

/* ══════════════════════════════════════════════
   USER PAGE
   ══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   FORUM PROFILE PAGE
   ══════════════════════════════════════════════ */

/* Banner */
.ForumProfile-banner {
  width: 100%;
  padding: 0;
}
.ForumProfile-bannerInner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 24px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.ForumProfile-avatarWrap {
  position: relative;
  flex-shrink: 0;
}
.ForumProfile-avatarWrap img,
.ForumProfile-avatarWrap .Avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4);
  font-size: 28px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ForumProfile-online {
  position: absolute; bottom: 2px; right: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #2ecc71; border: 2px solid #fff;
}
.ForumProfile-bannerInfo {
  flex: 1; min-width: 0;
}
.ForumProfile-name {
  font-size: 20px; font-weight: 700;
  color: rgba(255,255,255,0.97);
  margin: 0 0 5px;
}
.ForumProfile-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  font-size: 12.5px; color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}
.ForumProfile-meta span { display: flex; align-items: center; gap: 4px; }
.ForumProfile-meta i { font-size: 11px; }
.ForumProfile-onlineLabel { display: flex; align-items: center; gap: 5px; }
.ForumProfile-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; flex-shrink: 0; }
.ForumProfile-bio {
  font-size: 13px; color: rgba(255,255,255,0.55);
  font-style: italic;
}
.ForumProfile-bio--empty { opacity: 0.6; }

/* Controls dropdown */
.ForumProfile-controls { flex-shrink: 0; margin-left: auto; }
.ForumProfile-controlsBtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 4px;
  background: rgba(0,0,0,0.25); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s; white-space: nowrap;
}
.ForumProfile-controlsBtn:hover { background: rgba(0,0,0,0.4); }
.ForumProfile-controlsBtn--primary { background: var(--primary); border-color: transparent; }
.ForumProfile-controlsDropdown { position: relative; }
.ForumProfile-controlsMenu {
  position: absolute; right: 0; top: calc(100% + 4px);
  background: #fff; border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 160px; padding: 5px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s; z-index: 100;
}
.ForumProfile-controlsMenu.open { opacity: 1; visibility: visible; transform: none; }
.ForumProfile-controlsMenu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 13px; color: #444;
  text-decoration: none; transition: background 0.1s;
}
.ForumProfile-controlsMenu a:hover { background: #f5f6f8; }
.ForumProfile-controlsMenu i { width: 14px; color: #999; }

/* Body layout */
.ForumProfile-body {
  max-width: 1060px; margin: 0 auto;
  padding: 20px;
  display: flex; gap: 20px; align-items: flex-start;
}

/* Sidebar */
.ForumProfile-sidebar {
  width: 220px; flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: calc(51px + 15px);
}
.ForumProfile-sideItem {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 14px; color: #555;
  text-decoration: none; cursor: pointer;
  transition: background 0.1s;
}
.ForumProfile-sideItem:hover { background: #f5f6f8; color: var(--primary); }
.ForumProfile-sideItem--active { color: var(--primary); font-weight: 600; }
.ForumProfile-sideItem--stat { cursor: default; color: #777; }
.ForumProfile-sideItem--stat:hover { background: none; color: #777; }
.ForumProfile-sideItem i { width: 16px; text-align: center; font-size: 14px; color: #999; flex-shrink: 0; }
.ForumProfile-sideItem--active i,
.ForumProfile-sideItem:hover i { color: var(--primary); }
.ForumProfile-sideCount { margin-left: auto; font-size: 12px; color: #aaa; }
.ForumProfile-sideDivider { height: 1px; background: #f0f2f5; margin: 4px 0; }

/* Main feed */
.ForumProfile-feed { flex: 1; min-width: 0; }

.ForumProfile-discGroup {
  margin-bottom: 8px;
}
.ForumProfile-discTitle {
  font-size: 13px; font-weight: 600;
  padding: 0 0 8px;
  color: #aaa;
}
.ForumProfile-discTitle a {
  color: #888; text-decoration: none;
  font-style: italic;
}
.ForumProfile-discTitle a:hover { color: var(--primary); }

.ForumProfile-post {
  display: flex; gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.ForumProfile-postAvatar { flex-shrink: 0; position: relative; }
.ForumProfile-postAvatar img,
.ForumProfile-postAvatar .Avatar {
  width: 38px !important; height: 38px !important;
  border-radius: 50%; font-size: 14px !important;
}
.ForumProfile-postOnline {
  position: absolute; bottom: 0; right: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: #2ecc71; border: 1.5px solid #fff;
}
.ForumProfile-postBody { flex: 1; min-width: 0; }
.ForumProfile-postMeta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.ForumProfile-postAuthor { font-weight: 700; font-size: 14px; color: #333; text-decoration: none; }
.ForumProfile-postAuthor:hover { color: var(--primary); }
.ForumProfile-postTime { font-size: 12px; color: #aaa; }
.ForumProfile-postEdited { font-size: 11px; color: #bbb; }
.ForumProfile-postContent {
  font-size: 14px; color: #444; line-height: 1.6;
  overflow-wrap: break-word;
}
.ForumProfile-postContent p { margin: 0 0 6px; }
.ForumProfile-postContent p:last-child { margin-bottom: 0; }

.ForumProfile-empty {
  text-align: center; padding: 80px 20px; color: #bbb;
}
.ForumProfile-empty i { font-size: 40px; margin-bottom: 12px; display: block; opacity: 0.3; }

/* Mobile */
@media (max-width: 680px) {
  .ForumProfile-bannerInner { flex-wrap: wrap; }
  .ForumProfile-avatarWrap img,
  .ForumProfile-avatarWrap .Avatar { width: 70px !important; height: 70px !important; font-size: 26px !important; }
  .ForumProfile-name { font-size: 18px; }
  .ForumProfile-body { flex-direction: column; padding: 12px; }
  .ForumProfile-sidebar { width: 100%; position: static; }
  .ForumProfile-controls { position: absolute; top: 16px; right: 16px; }
}

.SettingsPage { max-width: 700px; margin: 24px auto; padding: 0 15px; }
.SettingsPage-grid { display: grid; grid-template-columns: 185px 1fr; gap: 20px; align-items: start; }
.SettingsPage-nav { position: sticky; top: calc(51px + 15px); }
.SettingsPage-nav .IndexNav-link { border-radius: var(--radius-lg); }
.SettingsSection { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.SettingsSection-header { padding: 14px 18px; border-bottom: 1px solid #eee; font-size: 15px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 7px; }
.SettingsSection-header i { color: var(--primary); }
.SettingsSection-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }

/* ══════════════════════════════════════════════
   SEARCH PAGE
   ══════════════════════════════════════════════ */
.SearchPage { max-width: 770px; margin: 24px auto; padding: 0 15px; }
.SearchInput-wrapper { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.SearchInput-wrapper .search-box { position: relative; }
.SearchInput-wrapper input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1px solid #dde3e9; border-radius: var(--radius-lg); font-size: 15px; color: #3d4147; transition: all var(--ease); }
.SearchInput-wrapper input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(77,105,142,0.1); outline: none; }
.SearchInput-wrapper .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 15px; }
.SearchResults { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.SearchResult { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); text-decoration: none; color: #3d4147; transition: background var(--ease); }
.SearchResult:hover { background: rgba(0,0,0,0.018); }
.SearchResult:last-child { border-bottom: none; }
.SearchResult-title { font-size: 14px; font-weight: bold; color: #333; margin-bottom: 4px; }
.SearchResult-excerpt { font-size: 12.5px; color: #888; line-height: 1.5; margin-bottom: 4px; }
.SearchResult-meta { font-size: 11.5px; color: #bbb; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   NOTIFICATIONS PAGE
   ══════════════════════════════════════════════ */
.NotificationsPage { max-width: 670px; margin: 24px auto; padding: 0 15px; }
.NotificationsPage-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.NotificationsPage-header h1 { font-size: 18px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 8px; }
.NotificationPage-list { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.NotificationPage-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); text-decoration: none; color: #3d4147; transition: background var(--ease); }
.NotificationPage-item:hover { background: rgba(0,0,0,0.018); }
.NotificationPage-item.unread { background: rgba(77,105,142,0.04); }
.NotificationPage-item:last-child { border-bottom: none; }
.NotificationPage-item .unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }

/* ══════════════════════════════════════════════
   MESSAGES PAGE
   ══════════════════════════════════════════════ */
.MessagesPage { display: flex; max-width: 950px; margin: 24px auto; padding: 0 15px; gap: 18px; align-items: flex-start; }
.MessagesPage-nav { width: 185px; flex-shrink: 0; position: sticky; top: calc(51px + 15px); }
.MessagesPage-content { flex: 1; min-width: 0; }
.MessageList { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.MessageItem { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); text-decoration: none; color: #3d4147; transition: background var(--ease); cursor: pointer; }
.MessageItem:hover { background: rgba(0,0,0,0.018); }
.MessageItem.unread { background: rgba(77,105,142,0.04); }
.MessageItem:last-child { border-bottom: none; }
.MessageItem .title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.MessageItem .meta { font-size: 12px; color: #bbb; }
.MessageItem .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ══════════════════════════════════════════════
   NEW DISCUSSION PAGE
   ══════════════════════════════════════════════ */
.TextEditor-tabs { display: flex; gap: 0; border-bottom: 1px solid #e5e7eb; margin-bottom: 0; }
.TextEditor-tab { padding: 7px 16px; font-size: 13px; font-weight: 600; color: #888; background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.1s, border-color 0.1s; }
.TextEditor-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.TextEditor-toolbar { display: flex; gap: 4px; padding: 6px 8px; background: #f8f9fb; border: 1px solid #e5e7eb; border-bottom: none; border-radius: 4px 4px 0 0; flex-wrap: wrap; }
.TextEditor-toolbar .Button { padding: 4px 8px; font-size: 12px; background: #fff; border: 1px solid #dde3e9; border-radius: 4px; color: #555; min-width: 28px; }
.TextEditor-toolbar .Button:hover { background: #f0f2f5; color: var(--primary); }
.TextEditor-editor { width: 100%; min-height: 200px; padding: 12px; font-size: 14px; line-height: 1.65; border: 1px solid #e5e7eb; border-radius: 0 0 4px 4px; resize: vertical; font-family: inherit; color: #333; outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.TextEditor-editor:focus { border-color: var(--primary); }
.TextEditor-hint { font-size: 12px; color: #aaa; margin-top: 4px; display: flex; justify-content: space-between; }
.TextEditor-preview { min-height: 200px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 0 0 4px 4px; font-size: 14px; line-height: 1.65; color: #333; }
.NewDiscPage { max-width: 730px; margin: 24px auto; padding: 0 15px; }
.NewDiscCard { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.NewDiscCard-header { padding: 16px 20px; border-bottom: 1px solid #eee; font-size: 15px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 8px; }
.NewDiscCard-header i { color: var(--primary); }
.NewDiscCard-body { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.DiscussionComposer-title { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #dde3e9; border-radius: var(--radius); font-size: 16px; font-weight: 500; color: #333; transition: all var(--ease); }
.DiscussionComposer-title:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(77,105,142,0.1); outline: none; }
.DiscussionComposer-title::placeholder { color: #bbb; font-weight: 400; }
.TagPicker { display: flex; flex-wrap: wrap; gap: 7px; }
.TagPicker-item { cursor: pointer; }
.TagPicker-item input { display: none; }
.TagPicker-label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--radius); border: 2px solid rgba(0,0,0,0.1); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all var(--ease); }
.TagPicker-item input:checked + .TagPicker-label { box-shadow: 0 0 0 2px currentColor; border-color: currentColor; }

/* ══════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════ */
.AdminLayout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 51px); }
.AdminNav { background: #1e2a3b; color: #8899aa; min-height: calc(100vh - 51px); position: sticky; top: 51px; height: calc(100vh - 51px); overflow-y: auto; display: flex; flex-direction: column; }
.AdminNav-header { padding: 16px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 8px; }
.AdminNav-header span { font-weight: bold; font-size: 14px; color: #fff; }
.AdminNav-section { padding: 14px 14px 3px; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(255,255,255,0.3); }
.AdminNav-link { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13px; color: #8899aa; text-decoration: none; transition: all var(--ease); border-left: 3px solid transparent; }
.AdminNav-link:hover { background: rgba(255,255,255,0.05); color: #c8d8e8; }
.AdminNav-link.active { background: rgba(255,255,255,0.08); color: #fff; border-left-color: var(--primary); font-weight: 600; }
.AdminNav-link i { width: 17px; text-align: center; font-size: 13px; }
.AdminNav hr { border: none; border-top: 1px solid rgba(255,255,255,0.05); margin: 5px 0; }
.AdminMain { padding: 26px; background: var(--body-bg); min-height: calc(100vh - 51px); overflow-y: auto; }
.AdminPage-title { font-size: 19px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.AdminPage-title i { color: var(--primary); font-size: 17px; }
.AdminPage-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.AdminPage-header .AdminPage-title { margin-bottom: 0; }
.AdminStats { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 13px; margin-bottom: 22px; }
.AdminStat { background: #fff; border-radius: var(--radius-lg); padding: 15px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.AdminStat-icon { width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.AdminStat-num { font-size: 21px; font-weight: bold; line-height: 1; color: #333; }
.AdminStat-label { font-size: 12px; color: #aaa; margin-top: 3px; }
.AdminStat-trend { font-size: 11px; margin-top: 3px; }
.AdminStat-trend.up { color: #2ecc71; }
.AdminGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.AdminCard { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.AdminCard-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid #eee; font-size: 14px; font-weight: bold; color: #333; }
.AdminCard-header i { color: var(--primary); margin-right: 4px; }
.AdminCard-body { padding: 16px; }
.AdminTable { width: 100%; border-collapse: collapse; font-size: 13px; }
.AdminTable th { padding: 9px 15px; text-align: left; font-size: 11px; font-weight: bold; color: #bbb; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #eee; }
.AdminTable td { padding: 10px 15px; border-bottom: 1px solid rgba(0,0,0,0.04); vertical-align: middle; }
.AdminTable tr:last-child td { border-bottom: none; }
.AdminTable tr:hover td { background: rgba(0,0,0,0.01); }
.AdminSection { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.AdminSection-header { padding: 13px 18px; border-bottom: 1px solid #eee; font-size: 15px; font-weight: bold; display: flex; align-items: center; gap: 7px; color: #333; }
.AdminSection-header i { color: var(--primary); }
.AdminSection-body { padding: 18px; }
.AdminSearch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.AdminSearch input { height: 32px; padding: 0 11px; border: 1px solid #dde3e9; border-radius: var(--radius); font-size: 13px; color: #3d4147; background: #fff; transition: border-color var(--ease); }
.AdminSearch input:focus { border-color: var(--primary); outline: none; }
.AdminActions { display: flex; align-items: center; gap: 5px; }
.ColorRow { display: flex; align-items: center; gap: 8px; }
.ColorRow input[type=color] { width: 36px; height: 34px; border: 1px solid #dde3e9; border-radius: var(--radius); cursor: pointer; padding: 2px; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.App-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 36px; padding: 14px 18px; }
.App-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #bbb; flex-wrap: wrap; justify-content: center; }
.App-footer-inner a { color: #aaa; transition: color var(--ease); }
.App-footer-inner a:hover { color: var(--primary); }
.App-footer-inner .sep { color: #ddd; }

/* ══════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════ */
.Placeholder { padding: 46px 20px; text-align: center; color: #ccc; }
.Placeholder i { font-size: 36px; display: block; margin-bottom: 12px; opacity: 0.35; }
.Placeholder p { font-size: 14px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }
.hidden { display: none !important; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
.PostMenu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 13px; color: #374151;
  background: none; border: none; width: 100%; text-align: left;
  cursor: pointer; transition: background 0.1s;
  font: inherit;
}
.PostMenu-item:hover { background: #f3f4f6; }

/* ================================================================
   RESPONSIVE — Forum Mobile
   ================================================================ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  /* Index */
  .IndexPage { flex-direction: column; gap: 0; padding: 0; }
  .IndexPage-nav { display: none; }
  .IndexPage-main { flex: 1; min-width: 0; background: #fff; }

  /* Discussion */
  .DiscussionPage { flex-direction: column; }
  .Scrubber { display: none; }

  /* Admin */
  .AdminLayout { grid-template-columns: 1fr; }
  .AdminNav { display: none; }
  .AdminGrid { grid-template-columns: 1fr; }
  .AdminMain { padding: 16px; }

  /* Settings */
  .SettingsPage-grid { grid-template-columns: 1fr; }
  .SettingsPage-nav { display: none; }
  .SettingsPage { padding: 0 12px; margin: 12px auto; }

  /* Messages */
  .MessagesPage { flex-direction: column; }
  .MessagesPage-nav { display: none; }

  /* Discussion hero */
  .DiscussionHero-title { font-size: 18px; }
}

/* ── Mobile (≤ 680px) — Forum mobile look ── */
@media (max-width: 680px) {
  .Composer2 { width: 100% !important; left: 0 !important; max-width: 100% !important; }
  .DiscussionPage { overflow-x: hidden; }
  .Post { overflow: hidden; }
  .Post-main { overflow-x: hidden; min-width: 0; }

  /* Body padding for mobile header */
  .App { padding-top: 51px; }

  /* ── Header ── */
  .App-header { height: 48px; }
  .App-header .container { padding: 0 10px; }
  .App-header .Search { display: none; }           /* search hidden, access via drawer */
  .Header-logo-text { font-size: 14px; }
  .Header-username { display: none; }
  .Header-secondary { gap: 2px; }
  .Header-newBtn { display: none !important; }     /* new discussion via drawer */

  /* ── Drawer — full width on mobile ── */
  .App-drawer { width: 100%; border-radius: 0; }

  /* ── Hero ── */
  .Hero-inner { padding: 22px 14px 18px; }
  .Hero-title { font-size: 18px; }
  .Hero-subtitle { font-size: 13px; }
  .TagHero-inner { padding: 14px 12px; gap: 10px; }
  .TagHero-stats { display: none; }
  .TagHero-icon { width: 38px; height: 38px; font-size: 16px; }
  .TagHero-name { font-size: 17px; }

  /* ── Index page ── */
  .IndexPage-main { flex: 1; min-width: 0; background: #fff; }
  .IndexPage-newDiscussion { border-radius: 0; margin: 0 0 8px; }

  /* ── Sort toolbar ── */
  .DiscList-toolbar { padding: 0 4px 8px; }

  /* ── Discussion items ── */
  .DiscItem { padding: 10px 12px; }
  .DiscItem-avatar { width: 44px; }
  .DiscItem-title { font-size: 14px; }
  .DiscItem-excerpt { display: none; }            /* no excerpt on mobile */
  .DiscItem-right { gap: 8px; }
  .DiscItem-tags { max-width: 120px; }
  .DiscItem-tag { font-size: 11px; padding: 2px 6px; }

  /* ── Discussion page ── */
  .DiscussionPage-stream { min-width: 0; }
  .DiscussionHero { padding: 14px 14px 14px; }
  .DiscussionHero-title { font-size: 16px; }
  .DiscussionHero-meta { font-size: 11px; gap: 8px; }
  .DiscussionHero-tags { gap: 5px; }
  .DiscHero-badge { width: 22px; height: 22px; font-size: 9px; }
  .DiscHero-tag { font-size: 11px; padding: 3px 7px; }

  /* ── Post cards ── */
  .DiscussionPage-stream { border-radius: 0; }
  /* posts no extra padding */ /* bottom pad via MobileReplyBar */
  .PostStream-item { padding: 14px 14px; gap: 10px; }
  .Post-side { width: 46px; }
  .Post-header { gap: 5px; }
  .Post-user { font-size: 13px; }
  .Post-content { font-size: 13.5px; }
  .Post-footer { gap: 2px; }
  .Post-footer .Button { height: 24px; padding: 0 7px; font-size: 11.5px; }
  .Post-number { display: none; }

  /* ── Sticky Reply button at bottom (Forum mobile) ── */
  .MobileReplyBar {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 100;
    gap: 8px;
  }
  .MobileReplyBar-btn {
    flex: 1; height: 40px;
    background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius);
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    cursor: pointer;
  }
  .MobileReplyBar-btn:hover { background: var(--primary-dark); }

  /* ── Composer ── */
  .Composer-body { gap: 8px; }
  .Composer-avatar { display: none; }             /* hide avatar in composer on mobile */
  .TextEditor-editor { min-height: 80px; }
  .Composer-hint { display: none; }

  /* ── Modal — bottom sheet on mobile ── */
  .Modal-backdrop { align-items: flex-end; padding: 0; }
  .Modal {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* ── Forms ── */
  .Form-row { grid-template-columns: 1fr; }

  /* ── User card ── */
  .UserCard { flex-direction: column; align-items: center; text-align: center; }
  .UserCard-meta { justify-content: center; }
  .UserCard-stats { justify-content: center; }
  .UserCard-actions { justify-content: center; }

  /* ── Search page ── */
  .SearchPage { padding: 0 8px; margin-top: 12px; }

  /* ── New discussion ── */
  .NewDiscPage { padding: 0 8px; margin-top: 12px; }

  /* ── Pagination ── */
  .Pagination { gap: 2px; }
  .Pagination .Button { min-width: 28px; height: 28px; font-size: 12px; }
}

/* ── Small mobile (≤ 420px) ── */
@media (max-width: 420px) {
  .DiscItem-tags { display: none; }               /* tags hidden on very small screens */
  .DiscussionHero-controls { flex-wrap: wrap; gap: 4px; }
  .DiscussionHero-controls .Button { height: 24px; font-size: 11px; }
  .PostStream-repliesHeader { font-size: 11px; }
  .TagHero-description { display: none; }
}

/* Discussions list in profile — Forum style */
.FProf-discItem {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  text-decoration: none; color: #333;
  transition: background 0.1s;
}
.FProf-discItem:last-child { border-bottom: none; }
.FProf-discItem:hover { background: #f9fafb; }

.FProf-discItem-avatar {
  flex-shrink: 0; position: relative;
}
.FProf-discItem-avatar img,
.FProf-discItem-avatar .Avatar {
  width: 40px !important; height: 40px !important;
  border-radius: 50%; font-size: 14px !important;
}
.FProf-discItem-lock {
  position: absolute; bottom: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #aaa; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
}

.FProf-discItem-main { flex: 1; min-width: 0; }
.FProf-discItem-title {
  font-size: 14px; font-weight: 600; color: #333; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.FProf-discItem:hover .FProf-discItem-title { color: var(--primary); }
.FProf-discItem-sub { font-size: 12px; color: #aaa; }

.FProf-discItem-right {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
}
.FProf-discItem-tag {
  padding: 2px 9px; border-radius: 10px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.FProf-discItem-replies { font-size: 12px; color: #aaa; display: flex; align-items: center; gap: 4px; }
.FProf-discItem-replies i { font-size: 11px; }

/* ── Notification Preferences ── */
.NotifPrefs { padding: 0; }
.NotifPrefs-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: #f8f9fb;
  border-bottom: 1px solid #eee;
  font-size: 12px; font-weight: 700; color: #888;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.NotifPrefs-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid #f5f6f8;
  transition: background 0.1s;
}
.NotifPrefs-row:last-child { border-bottom: none; }
.NotifPrefs-row:hover { background: #fafbfc; }
.NotifPrefs-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #444;
}
.NotifPrefs-label i { width: 16px; text-align: center; color: #aaa; font-size: 13px; }
.NotifPrefs-toggle { flex-shrink: 0; }

/* Toggle switch */
.Toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.Toggle-input { opacity: 0; width: 0; height: 0; }
.Toggle-slider {
  position: absolute; inset: 0;
  background: #ddd; border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.Toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.Toggle-input:checked + .Toggle-slider { background: var(--primary); }
.Toggle-input:checked + .Toggle-slider::before { transform: translateX(18px); }


.MobileScrubOverlay.open { display: flex; flex-direction: column; }

.MobileScrubPanel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  overflow-y: auto;
  width: 100%;
}
/* ══════════════════════════════════════════════
   v1.9 — Eksik sınıflar (şablonlarda kullanılıyor)
   ══════════════════════════════════════════════ */
.TagLabel { display:inline-flex; align-items:center; gap:4px; max-width:100%; font-size:11.5px; font-weight:600; line-height:1; padding:3px 8px; border-radius:var(--radius-lg); color:#fff; background:var(--tag-color,var(--primary)); text-decoration:none; vertical-align:middle; }
a.TagLabel:hover { filter:brightness(.92); color:#fff; }
.TagLabel-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.Modal-body { padding:16px 20px; }
.SettingsCard-body { padding:18px 20px; display:flex; flex-direction:column; gap:14px; }
.Button--icon { width:34px; height:34px; padding:0; justify-content:center; }
.PostAction--reply { font-weight:600; }
.FProf-userGrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; padding:12px 0; }
.FProf-userCard { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius-lg); background:#fff; color:var(--body-color); text-decoration:none; }
.FProf-userCard:hover { box-shadow:var(--shadow); }
.inline-code { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.9em; background:rgba(0,0,0,.06); padding:1px 5px; border-radius:3px; }
.skip-link { position:absolute; left:-9999px; top:0; background:#fff; color:#000; padding:8px 14px; z-index:9999; }
.skip-link:focus { left:8px; top:8px; }
@media (max-width:768px) { .hide-sm { display:none !important; } }