/* assets/css/style.css - FiveLive Forum Dark Theme (Obsidian & Gold) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
  --bg-main: #0A090E;
  --bg-card: #14131A;
  --bg-card-hover: #1C1B24;
  --bg-sidebar: #0E0D13;
  --bg-header: #0E0D13;
  --bg-input: #0E0D13;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 187, 28, 0.35);
  
  --primary: #FFBB1C;
  --primary-hover: #FFC940;
  --primary-glow: rgba(255, 187, 28, 0.25);
  
  --text-main: #FFFFFF;
  --text-muted: #A09EA7;
  --text-dim: #5C5A65;
  
  --accent-blue: #38bdf8;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-yellow: #FFBB1C;
  --accent-purple: #a855f7;

  --sidebar-width: 270px;
  --header-height: 64px;
  --radius: 8px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'HCo Gotham', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 187, 28, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10, 9, 14, 0.72) 0%, rgba(10, 9, 14, 0.88) 320px, rgba(10, 9, 14, 0.96) 650px, #0A090E 1000px),
    url('../images/forum_bg.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.fl-header {
  height: var(--header-height);
  background-color: rgba(14, 13, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.fl-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fl-menu-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.fl-menu-toggle:hover {
  color: var(--text-main);
  background-color: var(--border-color);
}

.fl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  height: 100%;
}

.fl-logo img.fl-default-logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
}

.fl-logo img.fl-custom-logo {
  height: 42px;
  max-height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.fl-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.fl-logo span {
  background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fl-header-search {
  flex: 1;
  max-width: 460px;
  margin: 0 30px;
  position: relative;
}

.fl-search-box {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 8px 16px 8px 40px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.fl-search-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.fl-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.fl-search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}

.fl-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-new-topic {
  background: linear-gradient(135deg, #FFBB1C 0%, #FEBF1F 100%);
  color: #0E0D12;
  border: none;
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(255, 187, 28, 0.25);
  transition: var(--transition);
}

.btn-new-topic:hover {
  background: linear-gradient(135deg, #FFC940 0%, #FFBB1C 100%);
  box-shadow: 0 4px 16px rgba(255, 187, 28, 0.4);
  transform: translateY(-1px);
  color: #0E0D12;
}

.fl-header-icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl-header-icon-btn:hover {
  color: var(--text-main);
  background-color: var(--border-color);
}

.fl-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-header);
}

.fl-user-menu {
  position: relative;
}

.fl-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.fl-avatar:hover {
  border-color: var(--primary);
}

.fl-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  min-width: 210px;
  padding: 8px 0;
  display: none;
  z-index: 1005;
}

.fl-dropdown.show {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.fl-dropdown-header {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--border-color);
}

.fl-dropdown-username {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.fl-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.fl-dropdown-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

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

/* ==========================================================================
   APP LAYOUT (SIDEBAR + MAIN)
   ========================================================================== */
.fl-app-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--header-height));
}

/* SIDEBAR */
.fl-sidebar {
  width: var(--sidebar-width);
  background-color: rgba(14, 13, 19, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  gap: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, border-color 0.28s ease;
  white-space: nowrap;
  z-index: 99;
}

body.sidebar-collapsed .fl-sidebar {
  width: 0 !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-right: none !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Mobile backdrop */
.fl-sidebar-backdrop {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 1001;
  animation: fadeIn 0.2s ease-out;
}

.fl-sidebar-backdrop.show {
  display: block;
}

.fl-nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fl-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.fl-nav-title i {
  font-size: 12px;
  transition: var(--transition);
}

.fl-nav-title.collapsed i {
  transform: rotate(-90deg);
}

.fl-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.fl-nav-link:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.fl-nav-link.active {
  background-color: rgba(255, 187, 28, 0.12);
  color: var(--primary);
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

.fl-user-profile-link {
  cursor: pointer;
  transition: var(--transition);
}

.fl-user-profile-link:hover {
  background-color: var(--bg-card-hover) !important;
  border-color: var(--primary) !important;
}

.fl-category-indicator {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.fl-blue-dot {
  width: 7px;
  height: 7px;
  background-color: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 8px #3b82f6;
  display: inline-block;
  margin-left: 4px;
}

/* MAIN CONTENT */
.fl-main-content {
  flex: 1;
  padding: 24px 32px;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* İndex sayfası iki kolonlu layout */
.fl-index-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.fl-index-layout-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fl-index-layout-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FILTER TABS (Kategoriler, En Son, Yeni, Popüler vb.) */
.fl-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.fl-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-tab-dropdown {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.fl-tab-dropdown:hover {
  border-color: var(--border-light);
  color: var(--text-main);
}

.fl-filter-tab {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.fl-filter-tab:hover {
  color: var(--text-main);
}

.fl-filter-tab.active {
  background-color: var(--primary);
  color: #0E0D12;
  font-weight: 700;
}

/* ==========================================================================
   CATEGORY SECTIONS (FiveLive Screenshot Style)
   ========================================================================== */
.fl-category-group {
  margin-bottom: 28px;
}

.fl-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.fl-group-title-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fl-group-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFBB1C;
  letter-spacing: 0.2px;
}

.fl-group-count {
  font-size: 13px;
  color: var(--text-dim);
}

.fl-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.fl-group-meta-header {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  color: var(--text-dim);
  padding-right: 16px;
}

.fl-meta-col-topics {
  width: 60px;
  text-align: center;
  display: inline-block;
}

.fl-meta-col-latest {
  width: 260px;
  text-align: left;
  display: inline-block;
}

/* CATEGORY CARD ITEM */
.fl-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
  position: relative;
}

.fl-category-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.fl-category-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.fl-category-accent-bar {
  width: 4px;
  height: 38px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.fl-category-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fl-category-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-category-name:hover {
  color: var(--primary);
}

.fl-category-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 800px;
}

.fl-category-right {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 16px;
  flex-shrink: 0;
}

.fl-category-stats {
  width: 60px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.fl-category-stats strong {
  color: var(--text-muted);
  font-weight: 600;
}

.fl-category-latest {
  width: 260px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.fl-latest-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-color);
}

.fl-latest-topic-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.fl-latest-topic-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 215px;
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition);
}

.fl-latest-topic-title .fl-topic-prefix {
  font-size: 10px;
  padding: 1.5px 6px;
  margin-right: 5px;
}

.fl-latest-topic-title:hover {
  color: var(--primary);
}

.fl-latest-topic-meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.fl-latest-topic-meta a {
  color: var(--text-muted);
}

.fl-latest-topic-meta a:hover {
  color: var(--primary);
}

/* ==========================================================================
   TOPIC PREFIX BADGES (ÖN EKLER)
   ========================================================================== */
.fl-topic-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 4px;
  margin-right: 7px;
  letter-spacing: 0.4px;
  line-height: 1.2;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.fl-topic-prefix.prefix-glow {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   TOPIC LIST & CARDS
   ========================================================================== */
.fl-topic-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.fl-topic-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.fl-topic-card.pinned {
  border-left: 3px solid var(--primary);
}

.fl-topic-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.fl-topic-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fl-topic-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fl-topic-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fl-topic-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.fl-topic-meta a {
  color: var(--text-muted);
}

.fl-topic-meta a:hover {
  color: var(--primary);
}

.fl-topic-right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.fl-topic-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   TOPIC VIEW & REPLIES
   ========================================================================== */
.fl-topic-view-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.fl-topic-view-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fl-post-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  overflow: hidden;
}

.fl-post-author {
  width: 200px;
  background-color: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-color);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.fl-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid var(--border-color);
}

.fl-author-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.fl-author-stats {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.fl-author-stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 2px 0;
}

.fl-post-content-area {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fl-post-top-bar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.fl-post-body {
  font-size: 14px;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.fl-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Post Content Attached Images */
.content-img-box {
  margin: 16px 0;
  display: block;
}

.content-img-box img,
.fl-post-image {
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
  display: block;
}

.content-img-box img:hover,
.fl-post-image:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  border-color: var(--primary);
}

.fl-upload-zone:hover {
  border-color: var(--primary) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Editor Live Attached Images Preview Tray */
.fl-editor-attached-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.fl-attached-image-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px 6px 6px;
  transition: var(--transition);
  animation: fadeIn 0.25s ease-out;
}

.fl-attached-image-card:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
}

.fl-attached-image-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: zoom-in;
}

.fl-attached-image-card .fl-img-info {
  display: flex;
  flex-direction: column;
}

.fl-attached-image-card .fl-img-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-attached-image-card .fl-img-badge {
  font-size: 10.5px;
  color: #10b981;
}

.fl-attached-image-card .fl-img-del {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.fl-attached-image-card .fl-img-del:hover {
  background: #ef4444;
  color: #fff;
}

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

.fl-action-btn {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.fl-action-btn:hover {
  background-color: var(--border-color);
  color: #fff;
}

.fl-action-btn.liked {
  color: var(--primary);
  border-color: var(--primary);
  background-color: rgba(255, 187, 28, 0.15);
}

/* ==========================================================================
   EDITOR & FORMS
   ========================================================================== */
.fl-editor-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.fl-form-group {
  margin-bottom: 18px;
}

.fl-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.fl-form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.fl-form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.fl-editor-toolbar {
  display: flex;
  gap: 6px;
  background-color: var(--bg-input);
  padding: 8px;
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
}

.fl-tool-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.fl-tool-btn:hover {
  background-color: var(--border-color);
  color: #fff;
}

.fl-editor-textarea {
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
}

/* ==========================================================================
   RANK BADGES & PILLS (Custom FiveLive Badges)
   ========================================================================== */
.fl-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  user-select: none;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-rank-badge i {
  font-size: 11px;
  flex-shrink: 0;
}

.fl-user-profile-link .fl-rank-badge {
  font-size: 10px;
  padding: 2px 7px;
  letter-spacing: 0.2px;
  max-width: 100%;
}

.rank-admin {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.rank-mod {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.rank-user {
  background-color: #232736;
  color: #cbd5e1;
  border: 1px solid #2d3345;
}

.rank-banned {
  background-color: #450a0a;
  color: #f87171;
  border: 1px solid #ef4444;
}

.rank-glow {
  animation: badgePulse 2.5s infinite alternate;
}

@keyframes badgePulse {
  0% { filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }
  100% { filter: drop-shadow(0 0 6px rgba(255,255,255,0.6)); }
}

/* === GELİŞMİŞ ROZET ANİMASYONLARI === */

/* GLOW stili - nefes alan ışıma */
.rank-glow {
  animation: rankGlowPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.rank-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: rankShimmer 3s ease-in-out infinite;
  border-radius: inherit;
}

@keyframes rankGlowPulse {
  0%, 100% { 
    box-shadow: 0 0 8px currentColor, 0 2px 8px rgba(0,0,0,0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 20px currentColor, 0 0 35px currentColor, 0 2px 8px rgba(0,0,0,0.3);
    transform: scale(1.03);
  }
}

@keyframes rankShimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

/* GRADIENT stili - renk kayması */
.rank-custom:not(.rank-glow) {
  background-size: 200% 200%;
}

/* SOLID stili - hafif titreşim hover'da */
.fl-rank-badge:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.15);
  cursor: default;
}

/* Admin rozeti - özel kırmızı glow */
.rank-admin {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
  animation: adminBadgePulse 3s ease-in-out infinite;
}

@keyframes adminBadgePulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 2px 18px rgba(239, 68, 68, 0.85), 0 0 30px rgba(239, 68, 68, 0.3); }
}

/* Mod rozeti - mavi pulse */
.rank-mod {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
  animation: modBadgePulse 3s ease-in-out infinite;
}

@keyframes modBadgePulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 2px 18px rgba(59, 130, 246, 0.85), 0 0 30px rgba(59, 130, 246, 0.3); }
}

/* GRADIENT stili - soldan sağa parlama */
.rank-gradient {
  position: relative;
  overflow: hidden;
}

.rank-gradient::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: rankGradientShimmer 2.5s ease-in-out infinite;
  border-radius: inherit;
}

@keyframes rankGradientShimmer {
  0% { left: -60%; }
  100% { left: 140%; }
}

/* OUTLINE stili - border renk dalgalanması */
.rank-outline {
  animation: rankOutlinePulse 2s ease-in-out infinite;
}

@keyframes rankOutlinePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pinned {
  background-color: var(--primary);
  color: #fff;
}

.badge-locked {
  background-color: #475569;
  color: #fff;
}

/* FLASH NOTIFICATIONS */
.fl-alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.fl-alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

.fl-alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

.fl-alert-warning {
  background-color: rgba(234, 179, 8, 0.15);
  border: 1px solid #eab308;
  color: #facc15;
}

/* ANNOUNCEMENT BANNER */
.fl-announcement {
  background: linear-gradient(90deg, rgba(255, 187, 28, 0.12), rgba(255, 201, 64, 0.05));
  border: 1px solid rgba(255, 187, 28, 0.3);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #FFFFFF;
}

.fl-announcement i {
  color: var(--primary);
  font-size: 18px;
}

/* MARKDOWN RICH CONTENT STYLES */
.topic-h1 { font-size: 20px; font-weight: 800; margin: 16px 0 8px; color: #fff; }
.topic-h2 { font-size: 18px; font-weight: 700; margin: 14px 0 6px; color: #fff; }
.topic-h3 { font-size: 16px; font-weight: 600; margin: 12px 0 4px; color: #fff; }
.code-block {
  background-color: #0b0c10;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Consolas', monospace;
  font-size: 13px;
  margin: 12px 0;
}
.inline-code {
  background-color: #0b0c10;
  color: #FFBB1C;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.topic-quote {
  border-left: 3px solid var(--primary);
  background-color: rgba(255, 187, 28, 0.08);
  padding: 10px 16px;
  margin: 12px 0;
  color: #cbd5e1;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}
.mention-tag {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.mention-tag:hover {
  background-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .fl-sidebar {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    height: calc(100vh - var(--header-height));
    z-index: 1002;
    transition: var(--transition);
  }
  .fl-sidebar.open {
    left: 0;
  }
  .fl-category-right {
    display: none;
  }
  .fl-post-box {
    flex-direction: column;
  }
  .fl-post-author {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 16px;
  }
  .fl-author-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }
  .fl-author-stats {
    display: none;
  }
}

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

/* ==========================================================================
   PAGINATION BUTTONS
   ========================================================================== */
.fl-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.fl-page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--border-light);
  color: var(--text-main);
  background-color: var(--bg-hover, rgba(255,255,255,0.05));
}

.fl-page-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: default;
}

.fl-page-btn.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   ONLINE USERS & STAFF WIDGETS (PRO GAMING FORUM STYLE)
   ========================================================================== */
.fl-community-status-box {
  background: linear-gradient(180deg, rgba(22, 25, 37, 0.95) 0%, rgba(15, 17, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-top: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.fl-community-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 10px;
}

.fl-community-status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.fl-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fl-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fl-community-status-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 860px) {
  .fl-community-status-body {
    grid-template-columns: 1fr;
  }
}

.fl-status-col {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.fl-status-col:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 860px) {
  .fl-status-col:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.fl-status-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-staff-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-staff-pro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.fl-staff-pro-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.fl-staff-pro-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fl-staff-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.fl-staff-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.fl-staff-avatar-wrap .fl-avatar-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border: 2px solid #161925;
  border-radius: 50%;
}

.fl-online-members-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fl-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.fl-member-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.fl-community-status-footer {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.fl-status-pills-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fl-status-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}




/* ==========================================================================
   MOBİL RESPONSIVE — Kapsamlı Düzenlemeler
   ========================================================================== */

/* Online widget layout (index sayfası sağ kolon) */
.fl-index-online-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.fl-index-online-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fl-index-online-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: flex-start;
}

/* Online widget kutuları */
.fl-online-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.fl-online-box-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- 768px ve altı (Tablet / Büyük Telefon) ---- */
@media (max-width: 768px) {

  /* Header */
  .fl-header {
    padding: 0 14px;
    gap: 10px;
  }

  .fl-header-search {
    flex: 1;
    margin: 0 10px;
    max-width: none;
  }

  /* "Yeni Konu" butonunda metni gizle, sadece ikon göster */
  .btn-new-topic .btn-label {
    display: none;
  }

  .btn-new-topic {
    padding: 8px 10px;
    min-width: 36px;
    justify-content: center;
  }

  /* Ana içerik padding küçültme */
  .fl-main-content {
    padding: 16px 14px;
  }

  /* Index sayfası iki kolonlu yapıyı tek kolona al */
  .fl-index-layout {
    flex-direction: column;
  }

  .fl-index-layout-sidebar {
    width: 100%;
    position: static;
  }

  /* Online widget'ı da tek kolona al */
  .fl-index-online-layout {
    flex-direction: column;
  }

  .fl-index-online-sidebar {
    width: 100%;
    position: static;
    order: -1; /* Widget üste gelsin */
    flex-direction: row; /* İki kutu yan yana */
    flex-wrap: wrap;
  }

  .fl-online-box {
    flex: 1;
    min-width: 220px;
  }

  /* Konu kartı sağ taraf: küçük ekranda istatistikleri gizle */
  .fl-topic-right {
    gap: 12px;
    font-size: 12px;
  }

  .fl-stat-views,
  .fl-stat-likes {
    display: none;
  }

  /* Konu kartı padding */
  .fl-topic-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .fl-topic-user-avatar {
    width: 36px;
    height: 36px;
  }

  .fl-topic-title {
    font-size: 14px;
  }

  /* Kategori listesi sağ taraf zaten 992'de gizleniyor,
     ama sol taraftaki açıklama da kısaltılsın */
  .fl-category-desc {
    display: none;
  }

  /* Post kutusu — yazar bilgisini kompakt tut */
  .fl-post-author {
    padding: 10px 14px;
  }

  .fl-post-content-area {
    padding: 14px 16px;
  }

  /* Editor kutusu */
  .fl-editor-box {
    padding: 16px;
  }

  /* Filter bar sığdır */
  .fl-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .fl-filter-tabs {
    flex-wrap: wrap;
  }

  /* Sayfa başlığı */
  .fl-topic-view-title {
    font-size: 18px;
  }

  /* Grup meta başlığı gizle */
  .fl-group-meta-header {
    display: none;
  }

  /* Pagination */
  .fl-page-btn {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
    padding: 0 8px;
  }

  /* Community status widget */
  .fl-community-status-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Dropdownlar ekran genişliğini aşmasın */
  .fl-dropdown {
    right: 0;
    left: auto;
    max-width: calc(100vw - 28px);
  }

  #notifDropdown {
    width: calc(100vw - 28px) !important;
    right: 0;
    left: auto;
  }
}

/* ---- 480px ve altı (Küçük Telefon) ---- */
@media (max-width: 480px) {

  :root {
    --header-height: 56px;
  }

  /* Header */
  .fl-header {
    padding: 0 10px;
  }

  /* Arama kutusunu header'dan al, alt satıra geç */
  .fl-header {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 10px;
    gap: 8px;
  }

  .fl-header-left {
    order: 1;
    flex: 0 0 auto;
  }

  .fl-header-right {
    order: 2;
    flex: 0 0 auto;
    gap: 8px;
  }

  .fl-header-search {
    order: 3;
    flex: 1 1 100%;
    margin: 0;
    max-width: none;
    padding-bottom: 4px;
  }

  /* Logo yazısını gizle */
  .fl-logo span {
    display: none;
  }

  /* Bildirim ve avatar butonları */
  .fl-header-icon-btn {
    font-size: 16px;
    padding: 6px;
  }

  .fl-avatar {
    width: 30px;
    height: 30px;
  }

  /* Ana içerik */
  .fl-main-content {
    padding: 12px 10px;
  }

  /* Konu kartı */
  .fl-topic-card {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .fl-topic-left {
    flex: 1 1 100%;
  }

  .fl-topic-right {
    width: 100%;
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
  }

  .fl-topic-stat {
    display: flex !important; /* Tüm istatistikleri göster */
  }

  .fl-stat-views,
  .fl-stat-likes {
    display: flex !important; /* 480px'de tekrar göster */
  }

  /* Post kutusu */
  .fl-post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .fl-post-actions {
    flex-wrap: wrap;
  }

  /* Topic view başlık */
  .fl-topic-view-title {
    font-size: 16px;
    flex-wrap: wrap;
  }

  /* Editor toolbar butonları küçültme */
  .fl-tool-btn {
    padding: 4px 6px;
    font-size: 13px;
  }

  /* Form */
  .fl-form-control {
    font-size: 16px; /* iOS zoom önleme: input font 16px altında olunca zoom yapıyor */
  }

  /* Alert */
  .fl-alert {
    font-size: 13px;
    padding: 10px 14px;
  }

  /* Kategori item */
  .fl-category-item {
    padding: 12px 10px;
  }

  .fl-category-name {
    font-size: 14px;
  }

  /* Grup başlık */
  .fl-group-title {
    font-size: 14px;
  }

  /* Online widget kutuları tam genişlik */
  .fl-index-online-sidebar {
    flex-direction: column;
  }

  .fl-online-box {
    min-width: 0;
    width: 100%;
  }

  /* Rozet boyutu */
  .fl-rank-badge {
    font-size: 10px;
    padding: 3px 7px;
  }
}

/* ---- Sidebar: sidebar-collapsed mobilde de çalışsın ---- */
@media (max-width: 992px) {
  body.sidebar-collapsed .fl-sidebar {
    width: var(--sidebar-width) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-right: 1px solid var(--border-color) !important;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    left: -100%; /* Mobilde açık değilse gizli kalmalı */
  }

  body.sidebar-collapsed .fl-sidebar.open {
    left: 0;
  }
}

/* ==========================================================================
   USER SIGNATURE & POLLS SYSTEM
   ========================================================================== */
.fl-post-signature {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--text-muted);
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.6;
}
.fl-post-signature img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 6px;
  margin: 6px 0;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}
.fl-post-signature a {
  color: var(--primary);
  text-decoration: underline;
}
@keyframes fl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin {
  display: inline-block;
  animation: fl-spin 1s linear infinite;
}

/* POLLS / ANKETLER */
.fl-poll-card {
  background: linear-gradient(145deg, #14131A 0%, #0E0D13 100%);
  border: 1px solid rgba(255, 187, 28, 0.25);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.fl-poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.fl-poll-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fl-poll-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.fl-poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}
.fl-poll-option-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}
.fl-poll-option-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 187, 28, 0.4);
}
.fl-poll-option-item.selected {
  border-color: var(--primary);
  background: rgba(255, 187, 28, 0.08);
}
.fl-poll-progress-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 187, 28, 0.22) 0%, rgba(255, 201, 64, 0.35) 100%);
  border-radius: 7px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}
.fl-poll-option-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fl-poll-option-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fl-poll-option-stats {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fl-poll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   USER CARD HOVER POPOVER (Modern XenForo Tarzı Kullanıcı Önizleme Kartı)
   ========================================================================== */
.fl-user-card-popover {
  position: absolute;
  z-index: 10000;
  width: 330px;
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  pointer-events: none;
  font-family: inherit;
  color: var(--text-main, #cbd5e1);
}

.fl-user-card-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Banner Üst Alanı */
.fl-uc-banner {
  height: 64px;
  background-color: #232530;
  background-size: cover;
  background-position: center;
  position: relative;
}

.fl-uc-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(24,25,32,0.95) 100%);
}

/* Kart Ana Gövdesi */
.fl-uc-body {
  padding: 0 14px 14px;
  position: relative;
}

.fl-uc-header {
  display: flex;
  gap: 12px;
  margin-top: -30px;
  margin-bottom: 12px;
  position: relative;
}

.fl-uc-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  overflow: visible;
}

.fl-uc-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #181920;
  background-color: #232530;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  display: block;
}

.fl-uc-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #181920;
  z-index: 2;
}

.fl-uc-status-dot.offline {
  background: #64748b;
}

.fl-uc-user-meta {
  min-width: 0;
  flex: 1;
  padding-top: 28px;
}

.fl-uc-username {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fl-uc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.fl-uc-title {
  font-size: 12px;
  color: #94a3b8;
}
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-uc-details {
  font-size: 11px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.fl-uc-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fl-uc-rep-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 8px;
}

/* İstatistik Grid */
.fl-uc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 4px;
  margin-bottom: 12px;
  text-align: center;
}

.fl-uc-stat-item {
  padding: 2px;
}

.fl-uc-stat-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.fl-uc-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

/* Alt Butonlar */
.fl-uc-actions {
  display: flex;
  gap: 6px;
}

.fl-uc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.fl-uc-btn-primary {
  background: #FFBB1C;
  color: #0E0D12;
  font-weight: 700;
}
.fl-uc-btn-primary:hover {
  background: #FFC940;
  color: #0E0D12;
}

.fl-uc-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fl-uc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}


