/*
Bu yazılım anxcure.com'a aittir.
Tüm hakları anxcure.com tarafından saklıdır.
İzinsiz kullanım, kopyalama veya dağıtım yasaktır.
© 2025 anxcure.com. Tüm hakları saklıdır.
*/

/* Modern Forum CSS Styles */
:root {
    --forum-primary: #4FD1C5;
    --forum-secondary: #38B2AC;
    --forum-accent: #81E6D9;
    --forum-text: #2D3748;
    --forum-text-light: #4A5568;
    --forum-bg: #F5F5F5;
    --forum-card-bg: rgba(255, 255, 255, 0.8);
    --forum-border: rgba(255, 255, 255, 0.2);
    --forum-hover: rgba(255, 255, 255, 0.9);
    --forum-shadow: 0 8px 32px rgba(45, 55, 72, 0.08);
    --forum-shadow-hover: 0 16px 48px rgba(79, 209, 197, 0.12);
    --forum-glass-bg: rgba(255, 255, 255, 0.25);
    --forum-glass-border: rgba(255, 255, 255, 0.18);
    --admin-color: #E53E3E;
    --user-color: #38B2AC;
    --solved-color: #38B2AC;
    --solved-bg: #F0FDF4;
    
    /* Modern Animation Variables */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --forum-text: #F7FAFC;
    --forum-text-light: #A0AEC0;
    --forum-bg: #1A202C;
    --forum-card-bg: rgba(45, 55, 72, 0.8);
    --forum-border: rgba(255, 255, 255, 0.1);
    --forum-hover: rgba(45, 55, 72, 0.9);
    --forum-glass-bg: rgba(45, 55, 72, 0.25);
    --forum-glass-border: rgba(255, 255, 255, 0.1);
    
    /* Dark mode için daha yumuşak primary renkler */
    --forum-primary-dark: #81E6D9; /* Daha yumuşak turkuaz */
    --forum-secondary-dark: #4FD1C5; /* Orta ton turkuaz */
    --forum-accent-dark: #38B2AC; /* Koyu turkuaz */
}

/* Dark mode body background */
[data-theme="dark"] body {
    background-color: var(--forum-bg) !important;
    color: var(--forum-text) !important;
}

/* Dark mode container backgrounds */
[data-theme="dark"] .container {
    background-color: transparent !important;
}

/* Dark mode forum main */
[data-theme="dark"] .forum-main {
    background-color: var(--forum-bg) !important;
}

/* Dark mode forum layout */
[data-theme="dark"] .forum-layout {
    background-color: transparent !important;
}

/* Dark mode forum content */
[data-theme="dark"] .forum-content {
    background-color: transparent !important;
}

/* Dark mode modern forum header */
[data-theme="dark"] .modern-forum-header {
    background: linear-gradient(135deg, 
        rgba(45, 55, 72, 0.9) 0%, 
        rgba(30, 40, 50, 0.8) 50%, 
        rgba(45, 55, 72, 0.85) 100%) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 24px !important;
    margin-bottom: 32px !important;
    padding: 32px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: var(--transition-smooth) !important;
}

[data-theme="dark"] .modern-forum-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, 
        var(--forum-primary) 0%, 
        var(--forum-accent) 50%, 
        var(--forum-primary) 100%) !important;
    border-radius: 24px 24px 0 0 !important;
}

[data-theme="dark"] .modern-forum-header:hover {
    transform: translateY(-4px) !important;
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 16px 40px rgba(79, 209, 197, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 2px 0 rgba(255, 255, 255, 0.1) inset !important;
}

[data-theme="dark"] .modern-forum-header h1 {
    color: #F8FAFC !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="dark"] .modern-forum-header p {
    color: #CBD5E0 !important;
    font-size: 1.125rem !important;
    margin: 0 !important;
    font-weight: 500 !important;
    opacity: 0.9 !important;
}

/* Dark mode header content */
[data-theme="dark"] .header-content {
    background: transparent !important;
}

[data-theme="dark"] .forum-brand {
    background: transparent !important;
}

[data-theme="dark"] .brand-icon {
    background: rgba(79, 209, 197, 0.2) !important;
    border: 1px solid rgba(79, 209, 197, 0.3) !important;
}

[data-theme="dark"] .brand-icon i {
    color: var(--forum-primary) !important;
}

[data-theme="dark"] .brand-text h1 {
    color: var(--forum-text) !important;
}

[data-theme="dark"] .brand-text p {
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .header-actions {
    background: transparent !important;
}

/* Dark mode search container */
[data-theme="dark"] .search-container {
    background: rgba(45, 55, 72, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 16px 24px !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    margin-bottom: 24px !important;
}

[data-theme="dark"] .search-container:hover {
    background: rgba(45, 55, 72, 0.7) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

[data-theme="dark"] .search-container:focus-within {
    background: rgba(45, 55, 72, 0.8) !important;
    border-color: rgba(79, 209, 197, 0.5) !important;
    box-shadow: 
        0 12px 40px rgba(79, 209, 197, 0.2),
        0 0 0 2px rgba(79, 209, 197, 0.2) inset !important;
}

[data-theme="dark"] .search-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #F8FAFC !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    width: 100% !important;
    padding: 8px 16px !important;
}

[data-theme="dark"] .search-input::placeholder {
    color: #A0AEC0 !important;
    font-weight: 400 !important;
}

[data-theme="dark"] .search-btn {
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary)) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.3) !important;
    margin-left: 12px !important;
}

[data-theme="dark"] .search-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4) !important;
}

[data-theme="dark"] .search-btn:active {
    transform: scale(0.95) !important;
}

/* Dark mode new topic button */
[data-theme="dark"] .new-topic-btn {
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary)) !important;
    color: white !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 16px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 8px 24px rgba(79, 209, 197, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

[data-theme="dark"] .new-topic-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(79, 209, 197, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

[data-theme="dark"] .new-topic-btn:active {
    transform: translateY(0) !important;
}

[data-theme="dark"] .new-topic-btn i {
    font-size: 1.1rem !important;
}

/* Dark mode topic filter navbar */
[data-theme="dark"] .topic-filter-navbar {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .filter-item {
    color: var(--forum-text-light) !important;
    background: transparent !important;
}

[data-theme="dark"] .filter-item:hover {
    background: var(--forum-hover) !important;
    color: var(--forum-text) !important;
}

[data-theme="dark"] .filter-item.active {
    background: var(--forum-primary) !important;
    color: white !important;
}

[data-theme="dark"] .search-input {
    background: var(--forum-card-bg) !important;
    color: var(--forum-text) !important;
    border: 1px solid var(--forum-border) !important;
}

[data-theme="dark"] .search-input::placeholder {
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .search-btn {
    background: var(--forum-primary) !important;
    color: white !important;
    border: 1px solid var(--forum-primary) !important;
}

/* Dark mode new topic button */
[data-theme="dark"] .new-topic-btn {
    background: var(--forum-primary) !important;
    color: white !important;
    border: 1px solid var(--forum-primary) !important;
}

[data-theme="dark"] .new-topic-btn:hover {
    background: var(--forum-secondary) !important;
    border-color: var(--forum-secondary) !important;
}

/* Dark mode topic filter navbar */
[data-theme="dark"] .topic-filter-navbar {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .filter-item {
    color: var(--forum-text-light) !important;
    background: transparent !important;
}

[data-theme="dark"] .filter-item:hover {
    background: var(--forum-hover) !important;
    color: var(--forum-text) !important;
}

[data-theme="dark"] .filter-item.active {
    background: var(--forum-primary) !important;
    color: white !important;
}

/* Dark mode section titles */
[data-theme="dark"] .section-title {
    color: var(--forum-text) !important;
}

[data-theme="dark"] .section-title i {
    color: var(--forum-primary) !important;
}

/* Dark mode section divider */
[data-theme="dark"] .section-divider {
    background: var(--forum-border) !important;
}

/* Dark mode sidebar */
[data-theme="dark"] .topic-sidebar {
    background: transparent !important;
}

[data-theme="dark"] .sidebar-section {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .sidebar-title {
    color: var(--forum-text) !important;
}

[data-theme="dark"] .sidebar-title i {
    color: var(--forum-primary) !important;
}

/* Dark mode stat items */
[data-theme="dark"] .stat-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
}

[data-theme="dark"] .stat-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
}

[data-theme="dark"] .stat-icon {
    background: var(--forum-primary) !important;
    color: white !important;
}

[data-theme="dark"] .stat-number {
    color: var(--forum-text) !important;
}

[data-theme="dark"] .stat-label {
    color: var(--forum-text-light) !important;
}

/* Dark mode popular topic items */
[data-theme="dark"] .popular-topic-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
}

[data-theme="dark"] .popular-topic-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
}

[data-theme="dark"] .popular-topic-info h6 {
    color: var(--forum-text) !important;
}

[data-theme="dark"] .popularity-stats {
    color: var(--forum-text-light) !important;
}

/* Dark mode online users */
[data-theme="dark"] .online-users {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .online-user-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
}

[data-theme="dark"] .online-user-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
}

/* Dark mode popular user items */
[data-theme="dark"] .popular-user-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
}

[data-theme="dark"] .popular-user-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
}

/* Dark mode popular tag items */
[data-theme="dark"] .popular-tag-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    color: var(--forum-text) !important;
}

[data-theme="dark"] .popular-tag-item:hover {
    background: var(--forum-primary) !important;
    color: white !important;
    border-color: var(--forum-primary) !important;
}

/* Dark mode forum categories */
[data-theme="dark"] .forum-categories {
    background: transparent !important;
}

[data-theme="dark"] .forum-categories-section {
    background: transparent !important;
}

/* Dark mode figma category cards */
[data-theme="dark"] .figma-category-card {
    background: #2D323B !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(74, 222, 128, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .figma-category-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(74, 222, 128, 0.2) !important;
    border-color: rgba(74, 222, 128, 0.4) !important;
}

[data-theme="dark"] .category-header-figma {
    background: #2D323B !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(74, 222, 128, 0.2) !important;
    box-shadow: 0 8px 32px rgba(74, 222, 128, 0.15) !important;
}

[data-theme="dark"] .category-header-figma .category-title-figma h3 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .category-header-figma .category-title-figma p {
    color: #FFFFFF !important;
}

[data-theme="dark"] .category-header-figma .category-icon-figma {
    background: #2EAE4F !important;
    border: 1px solid #2EAE4F !important;
}

[data-theme="dark"] .category-header-figma .category-icon-figma i {
    color: #FFFFFF !important;
}

[data-theme="dark"] .category-header-figma .category-stats .badge {
    background: #34C759 !important;
    border: 1px solid #34C759 !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .category-header-figma .category-stats .badge i {
    color: #34C759 !important;
}

[data-theme="dark"] .category-content-figma {
    background: #2D323B !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-top: 1px solid rgba(74, 222, 128, 0.1) !important;
}

[data-theme="dark"] .category-actions {
    background: #2D323B !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-top: 1px solid rgba(74, 222, 128, 0.1) !important;
}

[data-theme="dark"] .subcategory-item {
    border-bottom: 1px solid rgba(74, 222, 128, 0.08) !important;
    padding: 6px 0 !important;
}

[data-theme="dark"] .subcategory-item:hover {
    background: #3B4049 !important;
    transform: translateX(2px) !important;
}

[data-theme="dark"] .subcategory-info h6 {
    color: #FFFFFF !important;
    font-weight: 500 !important;
}

[data-theme="dark"] .subcategory-info span {
    color: #FFFFFF !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .subcategory-icon {
    background: #2EAE4F !important;
    border: 1px solid #2EAE4F !important;
}

[data-theme="dark"] .subcategory-icon i {
    color: #FFFFFF !important;
}

[data-theme="dark"] .user-info {
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .no-posts {
    color: var(--forum-text-light) !important;
}

/* Dark mode loading placeholders */
[data-theme="dark"] .loading-placeholder {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .spinner-border {
    color: var(--forum-primary) !important;
}

/* Dark mode navbar */
[data-theme="dark"] .navbar {
    background: var(--forum-card-bg) !important;
    border-bottom: 1px solid var(--forum-border) !important;
}

[data-theme="dark"] .navbar-brand img {
    filter: brightness(1.2) !important;
}

[data-theme="dark"] .nav-link {
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--forum-primary) !important;
}

/* Dark mode footer */
[data-theme="dark"] .footer {
    background: var(--forum-card-bg) !important;
    border-top: 1px solid var(--forum-border) !important;
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .footer h5 {
    color: var(--forum-text) !important;
}

[data-theme="dark"] .footer a {
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .footer a:hover {
    color: var(--forum-primary) !important;
}

/* Dark mode mobile bottom nav */
[data-theme="dark"] .mobile-bottom-nav {
    background: var(--forum-card-bg) !important;
    border-top: 1px solid var(--forum-border) !important;
}

[data-theme="dark"] .mobile-bottom-nav .nav-item {
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .mobile-bottom-nav .nav-item.active {
    color: var(--forum-primary) !important;
}

[data-theme="dark"] .mobile-bottom-nav .nav-item:hover {
    color: var(--forum-primary) !important;
}

/* Dark mode more menu */
[data-theme="dark"] .more-menu {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
}

[data-theme="dark"] .more-menu-item {
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .more-menu-item:hover {
    background: var(--forum-primary) !important;
    color: white !important;
}

/* Light mode modern forum header */
/* Enhanced Modern Glassmorphism Forum Header */
.modern-forum-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 50%, 
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    margin-bottom: 32px;
    padding: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(45, 55, 72, 0.12),
        0 8px 24px rgba(45, 55, 72, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
}

.modern-forum-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--forum-primary) 0%, 
        var(--forum-accent) 50%, 
        var(--forum-primary) 100%);
    border-radius: 24px 24px 0 0;
}

.modern-forum-header:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 32px 80px rgba(45, 55, 72, 0.16),
        0 16px 40px rgba(79, 209, 197, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

.modern-forum-header h1 {
    color: #1A202C;
    font-weight: 800;
    font-size: 2.5rem;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-forum-header p {
    color: #4A5568;
    font-size: 1.125rem;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

/* Light mode search container */
/* Enhanced Modern Glassmorphism Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 16px 24px;
    transition: var(--transition-smooth);
    box-shadow: 
        0 8px 32px rgba(45, 55, 72, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    margin-bottom: 24px;
}

.search-container:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(45, 55, 72, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(79, 209, 197, 0.5);
    box-shadow: 
        0 12px 40px rgba(79, 209, 197, 0.15),
        0 0 0 2px rgba(79, 209, 197, 0.2) inset;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #1A202C;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    padding: 8px 16px;
}

.search-input::placeholder {
    color: #718096;
    font-weight: 400;
}

.search-btn {
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.3);
    margin-left: 12px;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Modern glassmorphism new topic button */
.new-topic-btn {
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 8px 32px rgba(79, 209, 197, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Enhanced New Topic Button */
.new-topic-btn {
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(79, 209, 197, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.new-topic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 209, 197, 0.4);
    color: white;
    text-decoration: none;
}

.new-topic-btn:active {
    transform: translateY(0);
}

.new-topic-btn i {
    font-size: 1.1rem;
}

/* Light mode topic filter navbar */
.topic-filter-navbar {
    display: flex;
    background: var(--forum-card-bg);
    border-radius: 12px;
    padding: 8px;
    gap: 8px;
    border: 1px solid var(--forum-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--forum-text-light);
    background: transparent;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-item:hover {
    background: var(--forum-hover);
    color: var(--forum-text);
}

.filter-item.active {
    background: var(--forum-primary);
    color: white;
}

/* Search Highlighting */
.search-highlight {
    background-color: #FFD700;
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] .search-highlight {
    background-color: #FFA500;
    color: #000;
}

/* Search Message Styles */
.search-message-alert {
    border-left: 4px solid var(--forum-primary);
    border-radius: 8px;
    margin: 20px 0;
    animation: slideInDown 0.3s ease-out;
}

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

/* Advanced Search Modal */
#advancedSearchModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#advancedSearchModal .modal-header {
    background: linear-gradient(135deg, var(--forum-primary) 0%, var(--forum-secondary) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

#advancedSearchModal .btn-close {
    filter: invert(1);
}

#advancedSearchModal .form-label {
    font-weight: 600;
    color: var(--forum-text);
    margin-bottom: 8px;
}

#advancedSearchModal .form-control,
#advancedSearchModal .form-select {
    border: 2px solid var(--forum-border);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

#advancedSearchModal .form-control:focus,
#advancedSearchModal .form-select:focus {
    border-color: var(--forum-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 209, 197, 0.25);
}

/* Search Results Animation */
.topic-row {
    transition: all 0.3s ease;
}

.topic-row.search-result {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Forum Layout */
.forum-main {
    padding-top: 70px;
    min-height: 100vh;
    background: var(--forum-bg);
    transition: all 0.3s ease;
}

/* Forum Header */
.forum-header {
    background: linear-gradient(135deg, var(--forum-primary) 0%, var(--forum-secondary) 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: var(--forum-shadow);
}

.forum-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forum-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Forum Stats */
.forum-stats {
    margin-bottom: 40px;
}

.stat-card {
    background: var(--forum-card-bg) !important;
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--forum-shadow) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--forum-border) !important;
    position: relative;
    overflow: hidden;
}

/* Force light mode styling for forum stats */
body:not([data-theme="dark"]) .forum-stats .stat-card {
    background: var(--forum-card-bg) !important;
    border: 2px solid rgba(79, 209, 197, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

body:not([data-theme="dark"]) .forum-stats .stat-card:hover {
    background: #F8F9FA !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.2) !important;
}

body:not([data-theme="dark"]) .forum-stats .stat-card h3 {
    color: var(--forum-primary) !important;
}

body:not([data-theme="dark"]) .forum-stats .stat-card p {
    color: #6B7280 !important;
}

body:not([data-theme="dark"]) .forum-stats .stat-card i {
    color: var(--forum-primary) !important;
}

/* General light mode overrides for all stat cards */
body:not([data-theme="dark"]) .stat-card {
    background: var(--forum-card-bg) !important;
    border: 2px solid rgba(79, 209, 197, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

body:not([data-theme="dark"]) .stat-card:hover {
    background: #F8F9FA !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.2) !important;
}

body:not([data-theme="dark"]) .stat-card h3 {
    color: var(--forum-primary) !important;
}

body:not([data-theme="dark"]) .stat-card p {
    color: #6B7280 !important;
}

body:not([data-theme="dark"]) .stat-card i {
    color: var(--forum-primary) !important;
}

/* Dark Mode Stat Cards - Clean and Effective */
[data-theme="dark"] .stat-card {
    background: rgba(45, 55, 72, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    color: #F8FAFC !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

[data-theme="dark"] .stat-card:hover {
    background: rgba(45, 55, 72, 0.9) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 12px 40px rgba(79, 209, 197, 0.3) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

[data-theme="dark"] .stat-card h3 {
    color: #F8FAFC !important;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="dark"] .stat-card p {
    color: #CBD5E0 !important;
}

[data-theme="dark"] .stat-card i {
    color: var(--forum-primary) !important;
    filter: drop-shadow(0 2px 4px rgba(79, 209, 197, 0.3)) !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #22C55E, #16A34A);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--forum-shadow-hover) !important;
    border-color: var(--forum-primary) !important;
}

.stat-card i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
    color: var(--forum-primary) !important;
}

.stat-card:hover i {
    transform: scale(1.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--forum-primary) !important;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .stat-card h3 {
        color: var(--forum-primary) !important;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

.stat-card p {
    color: var(--forum-text-light) !important;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--forum-text);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #22C55E, #16A34A);
    border-radius: 2px;
}

.section-title i {
    color: var(--forum-primary);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(79, 209, 197, 0.3));
}

/* Forum Categories */
.forum-categories {
    margin-bottom: 50px;
}

.category-card {
    background: var(--forum-card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--forum-border);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(79, 209, 197, 0.2);
    border-color: #22C55E;
}

.category-header {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.category-header i {
    font-size: 1.8rem;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.category-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 20px;
}

.category-content {
    padding: 25px;
}

.subcategory {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--forum-border);
}

.subcategory:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.subcategory h6 {
    color: var(--forum-text);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subcategory h6 i {
    color: var(--forum-primary);
    font-size: 0.8rem;
}

.subcategory p {
    color: var(--forum-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Recent Topics */
.recent-topics {
    margin-bottom: 50px;
}

.topics-list {
    background: var(--forum-card-bg);
    border-radius: 15px;
    box-shadow: var(--forum-shadow);
    overflow: hidden;
    border: 1px solid var(--forum-border);
}

.topic-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--forum-border);
    transition: all 0.3s ease;
    gap: 20px;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background: var(--forum-hover);
}

.topic-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forum-hover);
    border-radius: 50%;
    font-size: 1.2rem;
}

.topic-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topic-title {
    color: var(--forum-text);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.3;
}

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

.topic-link {
    color: inherit;
    text-decoration: none;
}

.topic-link:hover {
    color: var(--forum-primary);
    text-decoration: none;
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--forum-text-light);
}

.topic-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.topic-meta i {
    font-size: 0.8rem;
}

.topic-body {
    flex: 1;
}

.topic-excerpt {
    color: var(--forum-text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.topic-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--forum-text-light);
}

.stat-item i {
    font-size: 0.75rem;
}

.topic-actions {
    flex-shrink: 0;
}

.topic-stats .views {
    display: block;
    color: var(--forum-text-light);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.topic-stats .last-activity {
    display: block;
    color: var(--forum-text-light);
    font-size: 0.8rem;
}

/* Online Users */
.online-users {
    background: var(--forum-card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--forum-shadow);
    border: 1px solid var(--forum-border);
    margin-bottom: 30px;
}

.online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--forum-card-bg);
    border: 1px solid var(--forum-border);
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    min-height: 60px;
}

.online-user:hover {
    transform: translateY(-2px);
    box-shadow: var(--forum-shadow);
}

.user-avatar {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--forum-primary) !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    background-image: url('/image/profil.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-name {
    font-weight: 600;
    color: var(--forum-text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-name:hover {
    color: var(--forum-primary);
    text-decoration: none;
}

.user-role {
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--forum-primary) 0%, var(--forum-secondary) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 30px;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--forum-border);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--forum-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 209, 197, 0.25);
}

.modal-footer {
    border-top: 1px solid var(--forum-border);
    padding: 20px 30px;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--forum-primary) 0%, var(--forum-secondary) 100%);
    color: white;
}

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

.btn-outline-primary {
    border: 2px solid var(--forum-primary);
    color: var(--forum-primary);
}

.btn-outline-primary:hover {
    background: var(--forum-primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .forum-main {
        padding-top: 70px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .forum-layout {
        display: block !important;
        min-height: auto;
    }
    
    .forum-content {
        width: 100% !important;
        margin-bottom: 20px;
        min-height: auto;
    }
    
    .topic-sidebar {
        width: 100% !important;
        position: static !important;
        margin-top: 20px;
        max-height: none;
    }
    
    .forum-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .forum-subtitle {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 15px 12px;
        margin-bottom: 12px;
        border-radius: 12px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    
    .stat-item {
        padding: 15px 10px !important;
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        justify-content: center !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
        top: calc(50% - 6px) !important;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
    }
    
    .stat-card h3 {
        font-size: 1.6rem;
        margin: 8px 0;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .category-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 8px;
        border: 1px solid var(--forum-border);
    }
    
    .topic-stats {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .online-list {
        flex-direction: column;
    }
    
    .online-user {
        width: 100%;
        justify-content: flex-start;
        min-height: 50px;
        padding: 8px 12px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .user-avatar {
        width: 35px !important;
        height: 35px !important;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .user-role {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .topic-filter-navbar {
        padding: 6px;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 15px;
    }
    
    .filter-item {
        padding: 10px 14px;
        font-size: 0.85rem;
        flex-shrink: 0;
        border-radius: 20px;
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 1.3rem;
        text-align: center;
        margin: 0 auto 15px auto;
        width: fit-content;
    }
    
    .section-title::after {
        width: 50px;
        height: 2px;
        margin: 8px auto 0;
    }
    
    /* Mobile-specific improvements */
    .forum-topics-table {
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .table-header {
        display: none; /* Hide table header on mobile */
    }
    
    .table-body {
        display: block;
    }
    
    /* Forum Topics Table - Mobile Card Style - DISABLED FOR NEW DESIGN */
    .topic-row {
        display: none !important; /* Disabled for new topic-card design */
    }
    
    .topic-row:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
        border-color: var(--forum-primary) !important;
    }
    
    /* Profile icon - only when present */
    .topic-row > div:first-child,
    .topic-row .user-icon {
        width: 45px !important;
        height: 45px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: #E2E8F0 !important;
        color: #A0AEC0 !important;
        font-size: 16px !important;
        border: 2px solid rgba(79, 209, 197, 0.2) !important;
        margin-right: 12px !important;
    }
    
    /* Category badge - flexible positioning */
    .topic-row .badge,
    .topic-row [class*="badge"] {
        width: 80px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--forum-primary) !important;
        color: white !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-right: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Content area - flexible */
    .topic-row .topic-title,
    .topic-row h6,
    .topic-row .topic-info {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        min-width: 0 !important;
        height: 68px !important;
    }
    
    /* Title text */
    .topic-row .topic-title,
    .topic-row h6 {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: var(--forum-text) !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Meta information */
    .topic-row .topic-meta,
    .topic-row .text-muted,
    .topic-row .sub-info {
        font-size: 0.85rem !important;
        color: var(--forum-text-light) !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    
    /* Special case: No profile photo - adjust badge position */
    .topic-row:not(:has(.user-icon)) .badge,
    .topic-row:not(:has(.user-icon)) [class*="badge"] {
        margin-left: 0 !important;
    }
    
    /* Fallback for browsers that don't support :has() */
    .topic-row.no-profile .badge,
    .topic-row.no-profile [class*="badge"] {
        margin-left: 0 !important;
    }
    
    /* Alternative approach: Use nth-child for different layouts */
    .topic-row:nth-child(odd) .badge,
    .topic-row:nth-child(odd) [class*="badge"] {
        margin-left: 0 !important;
    }
    
    .topic-row:nth-child(even) .badge,
    .topic-row:nth-child(even) [class*="badge"] {
        margin-left: 0 !important;
    }
    
    .topic-row:last-child {
        border-bottom: none !important;
    }
    
    /* Mobile forum categories */
    .forum-categories .row {
        margin: 0;
    }
    
    .forum-categories .col-lg-6 {
        padding: 0 5px;
        margin-bottom: 10px;
    }
    
    /* Mobile sidebar improvements */
    .sidebar {
        margin-top: 20px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .sidebar-section {
        margin-bottom: 20px;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-item {
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.2rem;
        font-weight: bold;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-top: 4px;
    }
}

@media (max-width: 576px) {
    .forum-layout {
        display: block !important;
        min-height: auto;
    }
    
    .forum-content {
        width: 100% !important;
        margin-bottom: 15px;
        min-height: auto;
    }
    
    .topic-sidebar {
        width: 100% !important;
        position: static !important;
        margin-top: 15px;
        max-height: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    
    .stat-item {
        padding: 12px 8px !important;
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
        justify-content: center !important;
    }
    
    .stat-number {
        font-size: 1.3rem !important;
        top: calc(50% - 5px) !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
    }
    
    .forum-header {
        padding: 20px 0;
        text-align: center;
    }
    
    .forum-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .forum-subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin: 0 auto 12px auto;
        width: fit-content;
    }
    
    .section-title i {
        font-size: 1rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 2px;
        margin: 6px auto 0;
    }
    
    /* Mobile topic content improvements */
    .topic-content {
        width: 100%;
        gap: 8px;
    }
    
    .topic-header {
        gap: 6px;
    }
    
    .topic-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .topic-meta {
        flex-direction: column;
        gap: 4px;
        font-size: 0.75rem;
    }
    
    .topic-body {
        margin: 8px 0;
    }
    
    .topic-excerpt {
        font-size: 0.85rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .topic-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .topic-stats {
        gap: 12px;
    }
    
    .stat-item {
        font-size: 0.75rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 12px 15px;
    }
    
    .stat-card {
        padding: 12px 8px;
        margin-bottom: 8px;
    }
    
    .stat-card h3 {
        font-size: 1.4rem;
        margin: 6px 0;
    }
    
    .stat-card i {
        font-size: 1.3rem;
    }
    
    .stat-card p {
        font-size: 0.75rem;
        margin: 0;
    }
    
    .topic-filter-navbar {
        border-radius: 12px;
        padding: 4px;
        margin-bottom: 12px;
    }
    
    .filter-item {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    
    .modern-forum-header {
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .forum-topics-table {
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .category-card {
        border-radius: 12px;
        margin-bottom: 8px;
    }
    
    /* Extra small screen improvements */
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .forum-main {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .sidebar {
        padding: 12px;
        margin-top: 15px;
    }
    
    .sidebar-section {
        margin-bottom: 15px;
    }
    
    .sidebar-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .user-avatar {
        width: 30px !important;
        height: 30px !important;
    }
    
    .user-name {
        font-size: 0.75rem;
    }
    
    .user-role {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
    
    /* Mobile-specific additional improvements */
    .mobile-view .forum-main {
        padding-bottom: 80px;
    }
    
    .mobile-view .container {
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .mobile-view .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .mobile-view .col-md-3,
    .mobile-view .col-lg-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Mobile loading states */
    .mobile-view .loading-placeholder {
        padding: 20px 10px;
        text-align: center;
    }
    
    .mobile-view .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    /* Mobile text improvements */
    .mobile-view .topic-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .mobile-view .topic-meta {
        font-size: 0.7rem;
        opacity: 0.8;
    }
    
    /* Mobile button improvements */
    .mobile-view .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 8px;
        touch-action: manipulation;
    }
    
    /* Mobile form improvements */
    .mobile-view .form-control {
        min-height: 44px;
        font-size: 16px;
        border-radius: 8px;
        padding: 12px 16px;
    }
    
    /* Mobile card improvements */
    .mobile-view .card {
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile list improvements */
    .mobile-view .list-group-item {
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 6px;
        border: 1px solid var(--forum-border);
    }
    
    /* Mobile modal improvements */
    .mobile-view .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .mobile-view .modal-content {
        border-radius: 12px;
        border: none;
    }
    
    .mobile-view .modal-header {
        border-radius: 12px 12px 0 0;
        padding: 15px 20px;
    }
    
    .mobile-view .modal-body {
        padding: 20px;
    }
    
    .mobile-view .modal-footer {
        border-radius: 0 0 12px 12px;
        padding: 15px 20px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States - Disabled to prevent visual glitches */
.loading {
    opacity: 1;
    pointer-events: auto;
}

.loading::after {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--forum-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--forum-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forum-secondary);
}

/* Forum Controls */
.forum-controls {
    background: var(--forum-card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--forum-shadow);
    border: 1px solid var(--forum-border);
    transition: all 0.3s ease;
}

.forum-controls:hover {
    box-shadow: var(--forum-shadow-hover);
    transform: translateY(-2px);
}

.search-box .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box .input-group:focus-within {
    box-shadow: 0 4px 20px rgba(79, 209, 197, 0.3);
    transform: translateY(-1px);
}

.search-box .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    background: var(--forum-bg);
    color: var(--forum-text);
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    box-shadow: none;
    background: var(--forum-bg);
    color: var(--forum-text);
}

.search-box .btn {
    border: none;
    padding: 12px 20px;
    background: var(--forum-primary);
    color: white;
    transition: all 0.3s ease;
}

.search-box .btn:hover {
    background: var(--forum-secondary);
    transform: translateY(-1px);
}

.filter-controls .btn-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.filter-controls .btn-group:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.filter-controls .btn {
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: none;
    position: relative;
    overflow: hidden;
}

.filter-controls .btn::before {
    display: none;
}

.filter-controls .btn.active {
    background: var(--forum-primary);
    color: white;
    transform: none;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.filter-controls .btn:not(.active) {
    background: var(--forum-card-bg);
    color: var(--forum-text);
}

.filter-controls .btn:not(.active):hover {
    background: var(--forum-hover);
    transform: none;
    color: var(--forum-text);
}

/* Modern Category Cards */
.modern-category {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--forum-primary), var(--forum-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-category:hover::before {
    transform: scaleX(1);
}

.modern-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--forum-shadow-hover);
}

.modern-category .category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modern-category .category-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.modern-category .category-info {
    flex: 1;
}

.modern-category .category-info h4 {
    margin: 0;
    color: var(--forum-text);
    font-weight: 600;
}

.modern-category .category-info p {
    margin: 5px 0 0 0;
    color: var(--forum-text-light);
    font-size: 0.9rem;
}

.modern-category .category-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.modern-category .category-stats .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 15px;
}

/* Figma Style Category Cards */
/* Modern glassmorphism category cards */
.figma-category-card {
    background: var(--forum-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--forum-glass-border);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    min-height: 200px;
    max-height: 280px;
    width: 100%;
    box-shadow: var(--forum-shadow);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.figma-category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--forum-shadow-hover);
    border-color: rgba(79, 209, 197, 0.3);
}

.figma-category-card:hover .category-header-figma {
    box-shadow: 0 12px 32px rgba(79, 209, 197, 0.25);
}

.figma-category-card:hover .category-content-figma {
    box-shadow: 0 12px 32px rgba(45, 55, 72, 0.15);
}

.category-header-figma {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.2);
    z-index: 2;
    min-height: 120px;
    flex-wrap: nowrap;
}

/* Aydınlık modda yumuşak renkler için metin renkleri */
body:not([data-theme="dark"]) .category-header-figma {
    /* Renkler JavaScript'ten gelecek, burada sadece metin renklerini ayarlıyoruz */
}

/* Yumuşak renkler için metin kontrastı */
body:not([data-theme="dark"]) .category-header-figma h3 {
    color: #2D3748 !important; /* Koyu gri metin */
    text-shadow: none !important;
}

body:not([data-theme="dark"]) .category-header-figma p {
    color: #4A5568 !important; /* Orta gri açıklama */
}

body:not([data-theme="dark"]) .category-header-figma i {
    color: #2D3748 !important; /* Koyu gri ikonlar */
    filter: none !important;
}

/* Karanlık mod için yumuşak renklerde metin kontrastı */
[data-theme="dark"] .category-header-figma h3 {
    color: #F8FAFC !important; /* Çok açık gri metin */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .category-header-figma p {
    color: #E2E8F0 !important; /* Açık gri açıklama */
}

[data-theme="dark"] .category-header-figma i {
    color: #F8FAFC !important; /* Çok açık gri ikonlar */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

.category-header-figma::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.category-icon-figma {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.category-icon-figma i {
    font-size: 1.5rem;
    color: white;
}

/* Dark mode için kategori ikon */
[data-theme="dark"] .category-icon-figma {
    background: #2EAE4F !important;
    border: 1px solid #2EAE4F !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

[data-theme="dark"] .category-icon-figma i {
    color: #FFFFFF !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.category-title-figma {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.category-title-figma h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-title-figma p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 4px 0 0 0;
    font-weight: 400;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.category-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.badge-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.badge-success {
    background: rgba(79, 209, 197, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.category-content-figma {
    padding: 12px 20px 60px 20px;
    background: var(--forum-card-bg);
    border-radius: 0 0 16px 16px;
    clear: both;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
    min-height: 70px;
    max-height: 110px;
    position: relative;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    flex: 1;
    height: auto;
    min-height: 28px;
    max-height: 36px;
    overflow: hidden;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-item:hover {
    background: rgba(79, 209, 197, 0.1);
    border-radius: 10px;
    padding: 12px 20px;
    margin: 0 -20px;
}

.subcategory-icon {
    width: 20px;
    height: 20px;
    background: rgba(79, 209, 197, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(79, 209, 197, 0.3);
}

.subcategory-icon i {
    font-size: 0.6rem;
    color: #22C55E;
}

.subcategory-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    line-height: 1.2;
}

.subcategory-info h6 {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    line-height: 1.2;
}

.subcategory-info span {
    color: #A0AEC0;
    font-size: 0.7rem;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    opacity: 0.8;
}

/* Responsive Figma Categories */
@media (max-width: 768px) {
    .figma-category-card {
        height: auto;
        min-height: 140px;
        max-height: 200px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .category-header-figma {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        padding: 16px;
        height: auto;
        min-height: 90px;
        max-height: none;
        flex-wrap: nowrap;
    }
    
    .category-icon-figma {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .category-title-figma {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .category-title-figma h3 {
        font-size: 1.1rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .category-title-figma p {
        font-size: 0.8rem;
        min-height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin: 4px 0 0 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .category-badges {
        flex-direction: column;
        gap: 6px;
        align-items: flex-end;
        flex-shrink: 0;
    }
    
    .category-content-figma {
        padding: 12px 16px 50px 16px;
        height: auto;
        min-height: 60px;
        max-height: 80px;
        margin-top: -8px;
        flex: 1;
    }
    
    .subcategory-item {
        padding: 8px 0;
        height: auto;
        min-height: 40px;
        max-height: none;
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .subcategory-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .subcategory-info {
        flex: 1;
        min-width: 0;
    }
    
    .subcategory-info h6 {
        font-size: 0.85rem;
        height: auto;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .subcategory-stats {
        flex-shrink: 0;
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile Improvements */
@media (max-width: 576px) {
    .figma-category-card {
        min-height: 120px;
        max-height: 180px;
        margin-bottom: 12px;
    }
    
    .category-header-figma {
        padding: 12px;
        gap: 10px;
        min-height: 80px;
    }
    
    .category-icon-figma {
        width: 36px;
        height: 36px;
    }
    
    .category-title-figma h3 {
        font-size: 1rem;
    }
    
    .category-title-figma p {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .category-badges {
        gap: 4px;
    }
    
    .category-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .category-content-figma {
        padding: 10px 12px 45px 12px;
        min-height: 50px;
        max-height: 70px;
    }
    
    .subcategory-item {
        padding: 6px 0;
        gap: 8px;
    }
    
    .subcategory-icon {
        width: 18px;
        height: 18px;
    }
    
    .subcategory-info h6 {
        font-size: 0.8rem;
    }
    
    .subcategory-stats {
        font-size: 0.65rem;
    }
    
    .category-actions {
        padding: 10px 12px;
    }
    
    .view-topics-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .subcategory-info span {
        font-size: 0.7rem;
        height: auto;
        -webkit-line-clamp: 1;
    line-clamp: 1;
    }
    
    /* Forum Topics Table - Mobile Card Style */
    .forum-topics-table {
        margin-top: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        border: none;
    }
    
    .table-header {
        display: none;
    }
    
    .table-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 5px;
    }
    
    /* Mobile topic row - vertical layout - DISABLED FOR NEW DESIGN */
    .topic-row {
        display: none !important; /* Disabled for new topic-card design */
    }
    
    .topic-row::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--forum-primary), rgba(79, 209, 197, 0.3));
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .topic-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        border-color: var(--forum-primary);
    }
    
    .topic-row:hover::before {
        opacity: 1;
    }
    
    .topic-info {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        flex: 1;
        margin-bottom: 12px;
    }
    
    .topic-avatar {
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid var(--forum-border) !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }
    
    .topic-content {
        flex: 1;
        min-width: 0;
    }
    
    .topic-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--forum-text);
        margin-bottom: 8px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .topic-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        font-size: 0.8rem;
        color: var(--forum-text-light);
        margin-bottom: 8px;
    }
    
    .topic-meta-item {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .topic-meta-item i {
        font-size: 0.7rem;
        color: var(--forum-primary);
    }
    
    .topic-stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid var(--forum-border);
        margin-top: 8px;
    }
    
    .topic-stats-left {
        display: flex;
        gap: 16px;
        align-items: center;
    }
    
    .topic-stats-right {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    
    .stat-badge {
        background: var(--forum-hover);
        color: var(--forum-text-light);
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
        border: 1px solid var(--forum-border);
    }
    
    .stat-badge.primary {
        background: var(--forum-primary);
        color: white;
        border-color: var(--forum-primary);
    }
    
    .topic-category {
        background: linear-gradient(135deg, var(--forum-primary), rgba(79, 209, 197, 0.8));
        color: white;
        padding: 4px 10px;
        border-radius: 15px;
        font-size: 0.7rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
    
    .topic-badge {
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 0.65rem;
        font-weight: 600;
        min-width: 40px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .topic-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #FFFFFF;
        text-decoration: none;
        line-height: 1.4;
        flex: 1;
        margin: 0;
        letter-spacing: 0.3px;
    }
    
    .topic-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
        font-size: 0.75rem;
        color: #A0AEC0;
        flex-shrink: 0;
        min-width: 80px;
    }
    
    .topic-category {
        font-weight: 600;
        text-align: right;
        color: #E2E8F0;
        font-size: 0.8rem;
    }
    
    .topic-time {
        font-weight: 500;
        text-align: right;
        color: #A0AEC0;
        font-size: 0.7rem;
    }
    
    /* Hide desktop columns on mobile */
    .col-forum,
    .col-replies,
    .col-views,
    .col-posted,
    .col-last {
        display: none;
    }
}

@media (max-width: 576px) {
    .figma-category-card {
        margin-bottom: 15px;
    }
    
    /* Extra small mobile improvements */
    .forum-topics-section {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .topic-filter-navbar {
        gap: 6px;
        padding: 0 0 12px 0;
    }
    
    .filter-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .filter-item i {
        margin-right: 4px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin: 0 auto 12px auto;
        width: fit-content;
    }
    
    .topic-row {
        display: none !important; /* Disabled for new topic-card design */
        box-sizing: border-box;
    }
    
    .topic-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .topic-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .topic-meta {
        gap: 8px;
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .topic-stats {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .topic-stats-left {
        gap: 12px;
    }
    
    .stat-badge {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .topic-category {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    
    .category-header-figma {
        padding: 16px;
        gap: 10px;
    }
    
    .category-title-figma h3 {
        font-size: 1.1rem;
    }
    
    .category-title-figma p {
        font-size: 0.8rem;
    }
    
    .category-content-figma {
        padding: 16px;
    }
    
    .subcategory-item {
        padding: 8px 0;
        gap: 12px;
    }
    
    .subcategory-icon {
        width: 20px;
        height: 20px;
    }
    
    .subcategory-info h6 {
        font-size: 0.8rem;
    }
    
    .subcategory-info span {
        font-size: 0.7rem;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--forum-card-bg);
    border-top: 1px solid var(--forum-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--forum-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    min-width: 60px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    color: var(--forum-text-light);
    transition: color 0.3s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--forum-text-light);
    transition: color 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--forum-primary);
}

.mobile-bottom-nav .nav-item:hover i,
.mobile-bottom-nav .nav-item.active i {
    color: var(--forum-primary);
}

.mobile-bottom-nav .nav-item:hover span,
.mobile-bottom-nav .nav-item.active span {
    color: var(--forum-primary);
}

/* Desktop'da gizle */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Mobile'da body padding ekle */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Touch-friendly interactions */
    .topic-row, .category-card, .online-user, .stat-card {
        -webkit-tap-highlight-color: rgba(79, 209, 197, 0.2);
        transition: all 0.2s ease;
    }
    
    .topic-row:active, .category-card:active, .online-user:active, .stat-card:active {
        transform: scale(0.98);
        background-color: var(--forum-hover);
    }
    
    /* Mobile scroll improvements */
    .topic-filter-navbar {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .topic-filter-navbar::-webkit-scrollbar {
        display: none;
    }
    
    /* Mobile search improvements */
    .search-container {
        margin-bottom: 15px;
    }
    
    .search-container input {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 25px;
        padding: 12px 20px;
    }
    
    /* Mobile modal improvements */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    /* Mobile button improvements */
    .btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Mobile form improvements */
    .form-control, .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        padding: 12px 16px;
    }
    
    /* Mobile card improvements */
    .card {
        border-radius: 12px;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile text improvements */
    p, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mobile image improvements */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile list improvements */
    .list-group-item {
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    /* Mobile spacing improvements */
    .mb-3 {
        margin-bottom: 15px !important;
    }
    
    .mb-4 {
        margin-bottom: 20px !important;
    }
    
    .py-3 {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .py-4 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}

/* Forum Topics Section */
.forum-topics-section {
    margin: 40px 0 30px 0;
    text-align: center;
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

/* Forum Categories Section */
.forum-categories-section {
    margin: 30px 0 20px 0;
    text-align: center;
}

.forum-topics-section {
    text-align: center;
    margin-bottom: 30px;
}

.forum-topics-section .section-title {
    color: #22C55E;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 20px auto;
    text-shadow: 0 0 8px rgba(79, 209, 197, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    width: fit-content;
}

.forum-topics-section .section-title::before,
.forum-topics-section .section-title::after,
.forum-categories-section .section-title::before,
.forum-categories-section .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4FD1C5, transparent);
    box-shadow: 0 0 8px rgba(79, 209, 197, 0.3);
    border-radius: 1px;
    max-width: 100px;
}

.forum-categories-section .section-title {
    color: #22C55E;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 20px auto;
    text-shadow: 0 0 8px rgba(79, 209, 197, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    width: fit-content;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #4FD1C5, transparent);
    margin: 15px 0 10px 0;
    border-radius: 1px;
    position: relative;
    box-shadow: 0 0 8px rgba(79, 209, 197, 0.3);
    width: 100%;
}

/* Topics Header */
.topics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px 0;
    border-bottom: 2px solid var(--forum-border);
}

.topics-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topics-controls .search-box {
    min-width: 300px;
}

.topics-controls .search-box .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topics-controls .search-box .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    background: var(--forum-bg);
    color: var(--forum-text);
}

.topics-controls .search-box .form-control:focus {
    box-shadow: none;
    background: var(--forum-bg);
}

.topics-controls .search-box .btn {
    border: none;
    padding: 12px 20px;
    background: var(--forum-primary);
    color: white;
    transition: all 0.3s ease;
}

.topics-controls .search-box .btn:hover {
    background: var(--forum-secondary);
    transform: translateY(-1px);
}

.topics-controls .filter-controls .btn-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topics-controls .filter-controls .btn {
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.topics-controls .filter-controls .btn.active {
    background: var(--forum-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.topics-controls .filter-controls .btn:not(.active) {
    background: var(--forum-card-bg);
    color: var(--forum-text);
}

.topics-controls .filter-controls .btn:not(.active):hover {
    background: var(--forum-hover);
    transform: translateY(-1px);
}

/* Responsive Topics Header */
@media (max-width: 768px) {
    .topics-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .topics-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .topics-controls .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .topics-controls .filter-controls {
        width: 100%;
    }
    
    .topics-controls .filter-controls .btn-group {
        width: 100%;
        display: flex;
    }
    
    .topics-controls .filter-controls .btn {
        flex: 1;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .forum-controls {
        padding: 20px;
    }
    
    .search-box .form-control {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .filter-controls .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .modern-category .category-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .modern-category .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modern-category .category-stats {
        flex-direction: row;
        justify-content: center;
    }
}

/* Forum Filter Tabs */
.forum-filter-tabs {
    margin: 20px 0;
    background: var(--forum-card-bg);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: transparent;
}

.filter-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--forum-text-light);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.filter-tab:hover::before {
    opacity: 0.1;
}

.filter-tab:hover {
    color: var(--forum-primary);
    transform: translateY(-1px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
    transform: translateY(-2px);
}

.filter-tab.active::before {
    opacity: 0;
}

.filter-tab i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.filter-tab span {
    position: relative;
    z-index: 1;
}

/* Forum Topics Table */
.forum-topics-table {
    background: var(--forum-card-bg) !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45, 55, 72, 0.1);
    margin-bottom: 30px;
    border: 1px solid #E2E8F0;
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.table-header {
    background: #F8F9FA !important;
    border-bottom: 1px solid #22C55E;
    padding: 15px 20px;
    position: relative;
}

.table-body {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.table-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
}

.header-row {
    font-weight: 700;
    color: #2D3748 !important;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1) 0%, rgba(79, 209, 197, 0.05) 100%);
    border-bottom: 2px solid rgba(79, 209, 197, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* RADICAL FIX - Desktop version - DISABLED FOR NEW DESIGN */
.topic-row {
    display: none; /* Disabled for new topic-card design */
}

.topic-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--forum-primary);
}

/* Profile icon - desktop */
.topic-row > div:first-child,
.topic-row .user-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E2E8F0;
    color: #A0AEC0;
    font-size: 16px;
    border: 2px solid rgba(79, 209, 197, 0.2);
    margin-right: 12px;
}

/* Category badge - desktop */
.topic-row .badge,
.topic-row [class*="badge"] {
    width: 80px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forum-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content area - desktop */
.topic-row .topic-title,
.topic-row h6,
.topic-row .topic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    height: 68px;
}

/* Title text - desktop */
.topic-row .topic-title,
.topic-row h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--forum-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Meta information - desktop */
.topic-row .topic-meta,
.topic-row .text-muted,
.topic-row .sub-info {
    font-size: 0.85rem;
    color: var(--forum-text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Special case: No profile photo - adjust badge position */
.topic-row:not(:has(.user-icon)) .badge,
.topic-row:not(:has(.user-icon)) [class*="badge"] {
    margin-left: 0;
}

/* Fallback for browsers that don't support :has() */
.topic-row.no-profile .badge,
.topic-row.no-profile [class*="badge"] {
    margin-left: 0;
}

/* Alternative approach: Use nth-child for different layouts */
.topic-row:nth-child(odd) .badge,
.topic-row:nth-child(odd) [class*="badge"] {
    margin-left: 0;
}

.topic-row:nth-child(even) .badge,
.topic-row:nth-child(even) [class*="badge"] {
    margin-left: 0;
}

/* Topic Row Internal Elements */
/* Topic Title Fixed Position - Top Right */
.topic-row .topic-title,
.topic-row h6,
.topic-row h5,
.topic-row h4 {
    position: absolute !important;
    left: 100px !important;
    top: 15px !important;
    transform: none !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--forum-text) !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: calc(100% - 120px) !important;
}

/* Topic Meta Fixed Position - Bottom Right */
.topic-row .topic-meta,
.topic-row .text-muted,
.topic-row small {
    position: absolute !important;
    left: 100px !important;
    bottom: 15px !important;
    top: auto !important;
    transform: none !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    color: var(--forum-text-light) !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: calc(100% - 120px) !important;
}

/* Profile Picture Fixed Position - Top Left */
.topic-row .user-icon,
.topic-row [style*="width: 32px"][style*="height: 32px"],
.topic-row [style*="width: 36px"][style*="height: 36px"],
.topic-row > div:first-child {
    position: absolute !important;
    left: 20px !important;
    top: 15px !important;
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    z-index: 2 !important;
}

.topic-row:hover {
    background: var(--forum-hover);
    border-color: rgba(79, 209, 197, 0.3);
    transform: none;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.15);
}

/* Category Tag Fixed Position */
.topic-row .badge,
.topic-row [class*="badge"],
.topic-row [class*="tag"] {
    position: absolute !important;
    left: 30px !important;
    bottom: 15px !important;
    top: auto !important;
    transform: none !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.topic-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--forum-border) !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0;
}

.topic-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.badge-it {
    background: #E53E3E;
    color: white;
}

/* Resimdeki gibi detaylı tasarım - Aydınlık Mod */
/* Modern glassmorphism topic cards */
.topic-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 8px;
    background: var(--forum-card-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid var(--forum-glass-border);
    box-shadow: var(--forum-shadow);
    transition: var(--transition-smooth);
    position: relative;
}

.topic-card:hover {
    background: var(--forum-hover) !important;
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--forum-shadow-hover);
    border-color: rgba(79, 209, 197, 0.2);
}

.topic-card:last-child {
    margin-bottom: 0;
}

.topic-info {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.topic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    border: 3px solid #22C55E;
    background: transparent;
}

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

.topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.topic-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.stat-item {
    color: #4A5568 !important;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.topic-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.topic-time {
    color: #718096 !important;
    font-size: 0.75rem;
}

.topic-author {
    color: #718096 !important;
    font-size: 0.75rem;
}

.topic-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: white;
    background: #4FD1C5;
    box-shadow: none;
    position: relative;
    flex-shrink: 0;
}

.topic-category-tag i {
    font-size: 0.6rem;
    opacity: 0.8;
}

.topic-category-tag.doktor-gor {
    background: #22C55E;
}

.topic-category-tag.genel-sagl {
    background: #16A34A;
}

.topic-category-tag.doktor-gorusleri {
    background: #22C55E;
}

.topic-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2D3748 !important;
    line-height: 1.3;
    text-shadow: none;
    flex: 1;
    min-width: 0;
}

.topic-title a {
    color: #2D3748 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-title a:hover {
    color: #22C55E !important;
    text-shadow: none;
}

/* Ensure search results maintain proper theme colors */
.topic-card .topic-title,
.topic-card .topic-title a {
    color: #2D3748 !important;
}

.topic-card .topic-title a:hover {
    color: #22C55E !important;
}

.topic-meta {
    margin: 0;
}

.topic-subtitle {
    color: #4A5568 !important;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 1;
    transition: none;
}

.topic-card:hover .topic-subtitle {
    opacity: 1;
    color: #4A5568 !important;
}

/* Header styling */
.col-topic {
    color: #2D3748 !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsive styles for detailed design */
@media (max-width: 768px) {
    .topic-card {
        padding: 12px 16px;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    .topic-card:hover {
        transform: none;
    }
    
    .topic-info {
        gap: 10px;
    }
    
    .topic-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .topic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .topic-title {
        font-size: 0.9rem;
        width: 100%;
    }
    
    .topic-category-tag {
        font-size: 0.65rem;
        padding: 3px 6px;
        border-radius: 3px;
    }
    
    .topic-stats {
        gap: 12px;
        margin-bottom: 3px;
    }
    
    .stat-item {
        font-size: 0.75rem;
    }
    
    .topic-meta {
        gap: 8px;
    }
    
    .topic-time,
    .topic-author {
        font-size: 0.7rem;
    }
    
    .forum-topics-table {
        margin-bottom: 20px;
        border-radius: 6px;
    }
    
    .table-header {
        padding: 12px 16px;
    }
    
    .col-topic {
        font-size: 0.8rem;
    }
}

.badge-d {
    background: #805AD5;
    color: white;
}

.badge-k {
    background: #DD6B20;
    color: white;
}

.badge-f {
    background: #E53E3E;
    color: white;
}

.badge-help {
    background: #38A169;
    color: white;
}

.badge-discount {
    background: #DD6B20;
    color: white;
}

.badge-l {
    background: #00B5D8;
    color: white;
}

/* Category Actions */
.category-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #2D3748;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--forum-card-bg);
    border-radius: 0 0 16px 16px;
    padding: 15px 20px;
    z-index: 10;
}

.view-topics-btn {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-topics-btn:hover {
    background: linear-gradient(135deg, #38B2AC 0%, #2C7A7B 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
}

/* Aydınlık modda yumuşak buton renkleri */
body:not([data-theme="dark"]) .view-topics-btn {
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 100%) !important;
    color: #2D3748 !important;
    border: 1px solid #CBD5E0 !important;
}

body:not([data-theme="dark"]) .view-topics-btn:hover {
    background: linear-gradient(135deg, #CBD5E0 0%, #A0AEC0 100%) !important;
    color: #1A202C !important;
    border-color: #A0AEC0 !important;
    box-shadow: 0 4px 12px rgba(160, 174, 192, 0.3) !important;
}

/* Karanlık mod için karanlık buton renkleri */
[data-theme="dark"] .view-topics-btn {
    background: #2D3748 !important;
    color: #FFFFFF !important;
    border: 1px solid #4A5568 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

[data-theme="dark"] .view-topics-btn:hover {
    background: #4A5568 !important;
    color: #FFFFFF !important;
    border-color: #718096 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px) !important;
}

.view-topics-btn i {
    font-size: 0.9rem;
}

/* Category Header Section */
.category-header-section {
    margin: 40px 0 30px 0;
}

.category-header {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(79, 209, 197, 0.3);
    position: relative;
    overflow: hidden;
}

/* Dark mode category header */
[data-theme="dark"] .category-card {
    background: #2D3748;
    border-color: rgba(79, 209, 197, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .category-card:hover {
    border-color: #4FD1C5;
    box-shadow: 0 15px 35px rgba(79, 209, 197, 0.25);
}

[data-theme="dark"] .category-header {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    box-shadow: none;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.category-icon i {
    font-size: 1.8rem;
    color: white;
}

.category-info {
    flex: 1;
    color: white;
}

.category-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-info p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.category-stats {
    flex-shrink: 0;
}

.category-stats .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Dark mode category elements */
[data-theme="dark"] .category-icon {
    background: #2EAE4F !important;
    border: 1px solid #2EAE4F !important;
}

/* Dark Mode Sidebar Stat Cards */
[data-theme="dark"] .sidebar-section .stat-card {
    background: rgba(45, 55, 72, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    color: #F8FAFC !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

[data-theme="dark"] .sidebar-section .stat-card:hover {
    background: rgba(45, 55, 72, 0.9) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 12px 40px rgba(79, 209, 197, 0.3) !important;
}

[data-theme="dark"] .sidebar-section .stat-card h3,
[data-theme="dark"] .sidebar-section .stat-card .stat-number {
    color: #F8FAFC !important;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="dark"] .sidebar-section .stat-card p,
[data-theme="dark"] .sidebar-section .stat-card .stat-label {
    color: #CBD5E0 !important;
}

[data-theme="dark"] .sidebar-section .stat-card i,
[data-theme="dark"] .sidebar-section .stat-card .stat-icon i {
    color: var(--forum-primary) !important;
    filter: drop-shadow(0 2px 4px rgba(79, 209, 197, 0.3)) !important;
}

[data-theme="dark"] .category-stats .badge {
    background: #34C759 !important;
    border: 1px solid #34C759 !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

[data-theme="dark"] .view-topics-btn {
    background: #2D323B !important;
    border: 1px solid rgba(74, 222, 128, 0.3) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

[data-theme="dark"] .view-topics-btn:hover {
    background: #3B4049 !important;
    border-color: rgba(74, 222, 128, 0.5) !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .view-topics-btn i {
    color: #4ADE80 !important;
}

[data-theme="dark"] .category-header::before {
    background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 50%);
}

/* Dark mode for category page */
[data-theme="dark"] body {
    background-color: #1A202C !important;
    color: #E2E8F0 !important;
}

[data-theme="dark"] .container {
    background-color: transparent;
}

/* Eski dark mode stilleri kaldırıldı - yukarıda daha güçlü versiyonları var */

[data-theme="dark"] .forum-topics-table {
    background: #2D3748 !important;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(79, 209, 197, 0.3);
}

[data-theme="dark"] .table-header {
    background: #4A5568 !important;
    border-bottom: 2px solid #2D3748;
}

[data-theme="dark"] .header-row {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .topic-row {
    background: #2D3748 !important;
    border-color: #4A5568 !important;
    color: #E2E8F0 !important;
}

[data-theme="dark"] .topic-card {
    background: var(--forum-card-bg) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--forum-glass-border) !important;
    box-shadow: var(--forum-shadow) !important;
}

[data-theme="dark"] .topic-card:hover {
    background: var(--forum-hover) !important;
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: var(--forum-shadow-hover) !important;
    border-color: rgba(79, 209, 197, 0.2) !important;
}

[data-theme="dark"] .topic-title {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .topic-title:hover {
    color: var(--forum-primary) !important;
}

[data-theme="dark"] .topic-link {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .topic-link:hover {
    color: var(--forum-primary) !important;
}

/* Ensure search results maintain proper dark theme colors */
[data-theme="dark"] .topic-card .topic-title,
[data-theme="dark"] .topic-card .topic-title a {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .topic-card .topic-title a:hover {
    color: var(--forum-primary) !important;
}

[data-theme="dark"] .topic-link:hover {
    color: var(--forum-primary) !important;
}

[data-theme="dark"] .topic-subtitle {
    color: #A0AEC0 !important;
}

[data-theme="dark"] .stat-item {
    color: #A0AEC0 !important;
}

[data-theme="dark"] .topic-time {
    color: #A0AEC0 !important;
}

[data-theme="dark"] .topic-author {
    color: #A0AEC0 !important;
}

[data-theme="dark"] .col-topic {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .topic-meta {
    color: #A0AEC0 !important;
}

[data-theme="dark"] .topic-excerpt {
    color: #A0AEC0 !important;
}

[data-theme="dark"] .stat-item {
    color: #A0AEC0 !important;
}

[data-theme="dark"] .table-row:hover {
    background: #4A5568 !important;
}

[data-theme="dark"] .topic-title {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .topic-category {
    color: #A0AEC0 !important;
}

[data-theme="dark"] .topic-time {
    color: #718096 !important;
}

[data-theme="dark"] .forum-filter-tabs {
    background: #2D3748 !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .filter-tab {
    color: #A0AEC0 !important;
    background: transparent !important;
}

[data-theme="dark"] .filter-tab:hover {
    background: #4A5568 !important;
    color: #E2E8F0 !important;
}

[data-theme="dark"] .filter-tab.active {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%) !important;
    color: white !important;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 30px;
    padding: 20px 0;
}

.pagination {
    margin: 0;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    background: var(--forum-card-bg);
    border: 1px solid #E2E8F0;
    color: #4A5568;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.page-link:hover {
    background: #4FD1C5;
    color: white;
    border-color: #4FD1C5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    border-color: #4FD1C5;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.4);
}

.page-item.disabled .page-link {
    background: #F7FAFC;
    color: #A0AEC0;
    border-color: #E2E8F0;
    cursor: not-allowed;
    opacity: 0.5;
}

.page-item.disabled .page-link:hover {
    background: #F7FAFC;
    color: #A0AEC0;
    border-color: #E2E8F0;
    transform: none;
    box-shadow: none;
}

/* Dark mode pagination */
[data-theme="dark"] .page-link {
    background: #2D3748;
    border-color: #4A5568;
    color: #E2E8F0;
}

[data-theme="dark"] .page-link:hover {
    background: #4FD1C5;
    color: white;
    border-color: #4FD1C5;
}

[data-theme="dark"] .page-item.active .page-link {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    border-color: #4FD1C5;
}

[data-theme="dark"] .page-item.disabled .page-link {
    background: #1A202C;
    color: #4A5568;
    border-color: #2D3748;
}

[data-theme="dark"] .page-item.disabled .page-link:hover {
    background: #1A202C;
    color: #4A5568;
    border-color: #2D3748;
}

/* Sidebar Popular Topics Fix */
.popular-topic {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--forum-border);
    transition: all 0.3s ease;
}

.popular-topic:last-child {
    border-bottom: none;
}

.popular-topic:hover {
    background: var(--forum-hover);
    border-radius: 8px;
    padding: 12px 8px;
    margin: 0 -8px;
}

.topic-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--forum-border) !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0;
}

.topic-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.topic-info .topic-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forum-text);
    line-height: 1.3;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-info .topic-meta {
    font-size: 0.75rem;
    color: var(--forum-meta);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.topic-stats .replies {
    background: var(--forum-accent);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Sidebar Online Users Fix */
.online-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    transition: all 0.3s ease;
    min-height: 50px;
}

.user-item:hover {
    background: var(--forum-hover);
    border-radius: 8px;
    padding: 12px 8px;
    margin: 0 -8px;
}

.user-avatar {
    position: relative;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--forum-border);
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10B981;
    border: 2px solid var(--forum-bg);
    border-radius: 50%;
}

.user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forum-text);
    line-height: 1.3;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 0.75rem;
    color: var(--forum-meta);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-title {
    color: var(--forum-text);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: block;
    margin: 0;
    flex: 1;
    letter-spacing: 0.2px;
}

.topic-title:hover {
    color: var(--forum-primary);
    text-decoration: none;
}

.col-forum {
    color: var(--forum-text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.col-replies,
.col-views {
    text-align: center;
    color: var(--forum-text);
    font-weight: 600;
    font-size: 0.85rem;
}

.col-posted,
.col-last {
    color: var(--forum-text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Forum Search */
.forum-search {
    margin: 20px 0;
}

.forum-search .search-container {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.forum-search .search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--forum-border);
    border-radius: 8px;
    background: var(--forum-bg);
    color: var(--forum-text);
    font-size: 1rem;
}

.forum-search .search-input:focus {
    outline: none;
    border-color: var(--forum-primary);
    box-shadow: 0 0 0 2px rgba(79, 209, 197, 0.2);
}

.forum-search .search-btn {
    padding: 12px 20px;
    background: var(--forum-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-search .search-btn:hover {
    background: var(--forum-secondary);
    transform: translateY(-1px);
}

/* Forum Statistics Summary */
.forum-stats-summary {
    background: var(--forum-card-bg);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stats-info h4 {
    color: var(--forum-text);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.stats-numbers {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.stat-item {
    color: var(--forum-text-light);
    font-size: 0.9rem;
}

.hot-deal {
    color: var(--forum-primary);
    font-size: 0.9rem;
}

/* Forum Layout */
.forum-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
    min-height: 100vh;
    position: relative;
}

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

.topic-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 0 10px;
    background: transparent;
    min-width: 300px;
    width: 100%;
    flex-shrink: 0;
}

.forum-content {
    min-height: 100vh;
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

/* Forum Sidebar - Moved to forum-layout section */

.topic-sidebar::-webkit-scrollbar {
    width: 4px;
}

.topic-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.topic-sidebar::-webkit-scrollbar-thumb {
    background: rgba(79, 209, 197, 0.3);
    border-radius: 2px;
}

.topic-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 209, 197, 0.5);
}

/* Sidebar Sections */
.sidebar-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forum-primary) 0%, var(--forum-secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-section:hover::before {
    opacity: 1;
}

.sidebar-section .section-divider {
    margin: -20px -20px 12px -20px;
    width: calc(100% + 40px);
}

.sidebar-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(79, 209, 197, 0.15);
    border-color: rgba(79, 209, 197, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.sidebar-title {
    color: var(--forum-text);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(79, 209, 197, 0.2);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--forum-primary) 0%, var(--forum-secondary) 100%);
    border-radius: 1px;
}

.sidebar-title i {
    color: var(--forum-primary);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--forum-primary) 0%, var(--forum-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Forum istatistikleri ikonlarını gizle */
.stat-item .stat-icon {
    display: none !important;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    padding: 0 4px;
    align-items: stretch;
    height: auto;
}

/* Forum Stats - Eşit boyutlu kutular */
.forum-stats {
    margin-bottom: 25px;
}

.forum-stats .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -4px;
}

.forum-stats .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 4px;
    margin-bottom: 8px;
}

/* Dark Mode Forum Stats Section */
[data-theme="dark"] .forum-stats .stat-card {
    background: rgba(45, 55, 72, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    color: #F8FAFC !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

[data-theme="dark"] .forum-stats .stat-card:hover {
    background: rgba(45, 55, 72, 0.9) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 12px 40px rgba(79, 209, 197, 0.3) !important;
    transform: translateY(-5px) !important;
}

[data-theme="dark"] .forum-stats .stat-card h3 {
    color: #F8FAFC !important;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="dark"] .forum-stats .stat-card p {
    color: #CBD5E0 !important;
}

[data-theme="dark"] .forum-stats .stat-card i {
    color: var(--forum-primary) !important;
    filter: drop-shadow(0 2px 4px rgba(79, 209, 197, 0.3)) !important;
}

.forum-stats .stat-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forum-primary) !important;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.forum-stats .stat-card p {
    color: #6B7280 !important;
    font-size: 0.6rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 12px;
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    cursor: pointer;
}

/* Light mode styling for stat-item - Only apply when NOT in dark mode */
html:not([data-theme="dark"]) body:not([data-theme="dark"]) .stat-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border: 1px solid rgba(79, 209, 197, 0.3) !important;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Dark mode form controls - Override any white backgrounds */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea.form-control {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    color: var(--forum-text) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] textarea.form-control:focus {
    background: var(--forum-card-bg) !important;
    border-color: var(--forum-primary) !important;
    color: var(--forum-text) !important;
    box-shadow: 0 0 0 0.2rem rgba(79, 209, 197, 0.25) !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] textarea.form-control::placeholder {
    color: var(--forum-text-light) !important;
}

/* Dark mode popular items - Override any white backgrounds */
[data-theme="dark"] .popular-topic-item,
[data-theme="dark"] .popular-user-item,
[data-theme="dark"] .popular-tag-item,
[data-theme="dark"] .tag-item,
[data-theme="dark"] .related-topic-link {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    color: var(--forum-text) !important;
}

[data-theme="dark"] .popular-topic-item:hover,
[data-theme="dark"] .popular-user-item:hover,
[data-theme="dark"] .popular-tag-item:hover,
[data-theme="dark"] .tag-item:hover,
[data-theme="dark"] .related-topic-link:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
    color: var(--forum-text) !important;
}

/* Additional dark mode overrides for any remaining white backgrounds */
[data-theme="dark"] .widget-stats .stat-item,
[data-theme="dark"] .stats-grid .stat-item,
[data-theme="dark"] .sidebar-widget .stat-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    color: var(--forum-text) !important;
}

/* Override any inline styles that might set white backgrounds */
[data-theme="dark"] *[style*="background: white"],
[data-theme="dark"] *[style*="background: #fff"],
[data-theme="dark"] *[style*="background: #ffffff"],
[data-theme="dark"] *[style*="background-color: white"],
[data-theme="dark"] *[style*="background-color: #fff"],
[data-theme="dark"] *[style*="background-color: #ffffff"] {
    background: var(--forum-card-bg) !important;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #4FD1C5 0%, #38B2AC 100%);
    border-radius: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(79, 209, 197, 0.4);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px -3px rgba(79, 209, 197, 0.2),
        0 4px 6px -2px rgba(79, 209, 197, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 209, 197, 0.4);
}

/* Light mode hover styling for stat-item - Only apply when NOT in dark mode */
html:not([data-theme="dark"]) body:not([data-theme="dark"]) .stat-item:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px -3px rgba(79, 209, 197, 0.15),
        0 4px 6px -2px rgba(79, 209, 197, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(79, 209, 197, 0.5) !important;
}

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

.stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--forum-text);
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.5rem;
    color: var(--forum-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    text-align: center;
    opacity: 0.9;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.25) 0%, rgba(79, 209, 197, 0.15) 100%);
    border: 1px solid rgba(79, 209, 197, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(79, 209, 197, 0.9);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(79, 209, 197, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 8px 20px rgba(79, 209, 197, 0.6);
}

.stat-item:hover .stat-icon::before {
    opacity: 1;
}

.stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #22C55E;
    line-height: 1;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(79, 209, 197, 0.5),
        0 0 20px rgba(79, 209, 197, 0.3),
        0 0 30px rgba(79, 209, 197, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.5px;
    position: absolute;
    top: calc(50% - 8px);
    left: 50%;
    transform: translate(-50%, -50%);
}

.stat-item:hover .stat-number {
    transform: translate(-50%, -50%) scale(1.1);
    color: #16A34A;
    text-shadow: 
        0 0 15px rgba(79, 209, 197, 0.7),
        0 0 25px rgba(79, 209, 197, 0.5),
        0 0 35px rgba(79, 209, 197, 0.3);
}

.stat-label {
    font-size: 0.6rem;
    color: rgba(148, 163, 184, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.stat-item:hover .stat-label {
    opacity: 1;
    color: #22C55E;
    transform: translateX(-50%) translateY(-1px);
}

/* Light mode text styling for stat items - Only apply when NOT in dark mode */
html:not([data-theme="dark"]) body:not([data-theme="dark"]) .stat-number {
    color: #4FD1C5 !important;
    text-shadow: 
        0 0 8px rgba(79, 209, 197, 0.3),
        0 0 16px rgba(79, 209, 197, 0.2),
        0 0 24px rgba(79, 209, 197, 0.1) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .stat-item:hover .stat-number {
    color: #38B2AC !important;
    text-shadow: 
        0 0 12px rgba(79, 209, 197, 0.4),
        0 0 20px rgba(79, 209, 197, 0.3),
        0 0 28px rgba(79, 209, 197, 0.2) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .stat-label {
    color: rgba(75, 85, 99, 0.8) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .stat-item:hover .stat-label {
    color: #4FD1C5 !important;
}

/* Loading spinner styles */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.text-primary {
    color: var(--forum-primary) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dark mode support for sidebar */
[data-theme="dark"] .sidebar-section {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.8) 0%, rgba(20, 25, 35, 0.6) 100%);
    border-color: rgba(79, 209, 197, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sidebar-section:hover {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(20, 25, 35, 0.7) 100%);
    border-color: rgba(79, 209, 197, 0.5);
    box-shadow: 0 20px 40px rgba(79, 209, 197, 0.2);
}

[data-theme="dark"] .stat-item {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
    border-color: rgba(79, 209, 197, 0.25);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    height: 100px;
    min-height: 100px;
    max-height: 100px;
}

[data-theme="dark"] .stat-item:hover {
    background: linear-gradient(145deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.9) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px -3px rgba(79, 209, 197, 0.3),
        0 4px 6px -2px rgba(79, 209, 197, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 209, 197, 0.5);
}

[data-theme="dark"] .stat-number {
    color: #22C55E;
    text-shadow: 
        0 0 10px rgba(79, 209, 197, 0.6),
        0 0 20px rgba(79, 209, 197, 0.4),
        0 0 30px rgba(79, 209, 197, 0.2);
}

[data-theme="dark"] .stat-label {
    color: rgba(148, 163, 184, 0.8);
}

[data-theme="dark"] .stat-item:hover .stat-label {
    color: #22C55E;
    transform: translateY(-1px);
}

[data-theme="dark"] .stat-item:hover .stat-number {
    color: #16A34A;
    transform: scale(1.1);
    text-shadow: 
        0 0 15px rgba(79, 209, 197, 0.8),
        0 0 25px rgba(79, 209, 197, 0.6),
        0 0 35px rgba(79, 209, 197, 0.4);
}

/* More specific dark mode overrides to ensure they override light mode styles */
html[data-theme="dark"] body[data-theme="dark"] .stat-item {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%) !important;
    border: 1px solid rgba(79, 209, 197, 0.25) !important;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-item:hover {
    background: linear-gradient(145deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px -3px rgba(79, 209, 197, 0.3),
        0 4px 6px -2px rgba(79, 209, 197, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(79, 209, 197, 0.4) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-number {
    color: #4FD1C5 !important;
    text-shadow: 
        0 0 10px rgba(79, 209, 197, 0.5),
        0 0 20px rgba(79, 209, 197, 0.3),
        0 0 30px rgba(79, 209, 197, 0.1) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-item:hover .stat-number {
    color: #38B2AC !important;
    text-shadow: 
        0 0 15px rgba(79, 209, 197, 0.7),
        0 0 25px rgba(79, 209, 197, 0.5),
        0 0 35px rgba(79, 209, 197, 0.3) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-label {
    color: rgba(148, 163, 184, 0.8) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-item:hover .stat-label {
    color: #4FD1C5 !important;
}

/* Dark mode for stat-icon in sidebar */
[data-theme="dark"] .stat-icon {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.25) 0%, rgba(79, 209, 197, 0.15) 100%) !important;
    border: 1px solid rgba(79, 209, 197, 0.4) !important;
    color: rgba(79, 209, 197, 0.9) !important;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(79, 209, 197, 0.3) !important;
    margin: 0 auto;
}

[data-theme="dark"] .stat-icon i {
    color: rgba(79, 209, 197, 0.8) !important;
}

[data-theme="dark"] .stat-item {
    background: #2D3748;
    border-color: #4A5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stat-item:hover {
    background: #4A5568;
    border-color: #4FD1C5;
    box-shadow: 0 12px 24px rgba(79, 209, 197, 0.3);
}

[data-theme="dark"] .stat-number {
    color: #E2E8F0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stat-label {
    color: #A0AEC0;
    opacity: 0.9;
}

/* Dark mode for online users */
[data-theme="dark"] .online-user {
    background: #2D3748;
    border-color: #4A5568;
}

[data-theme="dark"] .online-user:hover {
    background: #4A5568;
    border-color: #4FD1C5;
}

[data-theme="dark"] .user-name {
    color: #E2E8F0;
}

[data-theme="dark"] .user-name:hover {
    color: #22C55E;
}

/* Ultra-specific dark mode for topic preview */
html[data-theme="dark"] body[data-theme="dark"] .topic-preview {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%) !important;
    border-color: rgba(79, 209, 197, 0.3) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .topic-preview:hover {
    background: linear-gradient(145deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
    box-shadow: 
        0 8px 20px rgba(79, 209, 197, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(79, 209, 197, 0.5) !important;
}

/* Fallback dark mode for topic preview */
[data-theme="dark"] .topic-preview {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%) !important;
    border-color: rgba(79, 209, 197, 0.2) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .topic-preview:hover {
    background: linear-gradient(145deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.8) 100%) !important;
    box-shadow: 
        0 8px 20px rgba(79, 209, 197, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(79, 209, 197, 0.4) !important;
}


/* Topic Preview - Modern Design */
.topic-preview {
    padding: 16px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(79, 209, 197, 0.15);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.topic-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--forum-primary) 0%, var(--forum-secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topic-preview:last-child {
    margin-bottom: 0;
}

.topic-preview:hover {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 20px rgba(79, 209, 197, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(79, 209, 197, 0.3);
}

.topic-preview:hover::before {
    opacity: 1;
}

.preview-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.preview-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.2) 0%, rgba(79, 209, 197, 0.1) 100%);
    border: 1px solid rgba(79, 209, 197, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(79, 209, 197, 0.8);
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(79, 209, 197, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-preview:hover .preview-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.3) 0%, rgba(79, 209, 197, 0.2) 100%);
    border-color: rgba(79, 209, 197, 0.5);
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
    color: rgba(79, 209, 197, 1);
}

.preview-info {
    flex: 1;
    min-width: 0;
}

.preview-info h6 {
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.topic-preview:hover .preview-info h6 {
    color: #22C55E;
}

.preview-info p {
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.7rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 500;
}

/* Dark mode text overrides for preview info */
html[data-theme="dark"] body[data-theme="dark"] .preview-info h6 {
    color: var(--forum-text) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .topic-preview:hover .preview-info h6 {
    color: var(--forum-primary) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .preview-info p {
    color: var(--forum-text-light) !important;
}

/* Fallback dark mode text overrides */
[data-theme="dark"] .preview-info h6 {
    color: var(--forum-text) !important;
}

[data-theme="dark"] .topic-preview:hover .preview-info h6 {
    color: var(--forum-primary) !important;
}

[data-theme="dark"] .preview-info p {
    color: var(--forum-text-light) !important;
}

.topic-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.7);
}

.topic-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(79, 209, 197, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.topic-stats .stat i {
    font-size: 0.6rem;
    color: rgba(79, 209, 197, 0.8);
}

.topic-preview:hover .topic-stats .stat {
    background: rgba(79, 209, 197, 0.15);
}

.topic-preview:hover .topic-stats .stat i {
    color: #22C55E;
}

/* Dark mode styles for topic stats */
html[data-theme="dark"] body[data-theme="dark"] .topic-stats .stat {
    background: rgba(79, 209, 197, 0.1) !important;
    color: var(--forum-text-light) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .topic-stats .stat i {
    color: var(--forum-primary) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .topic-preview:hover .topic-stats .stat {
    background: rgba(79, 209, 197, 0.2) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .topic-preview:hover .topic-stats .stat i {
    color: var(--forum-primary) !important;
}

/* Fallback dark mode styles for topic stats */
[data-theme="dark"] .topic-stats .stat {
    background: rgba(79, 209, 197, 0.1) !important;
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .topic-stats .stat i {
    color: var(--forum-primary) !important;
}

[data-theme="dark"] .topic-preview:hover .topic-stats .stat {
    background: rgba(79, 209, 197, 0.2) !important;
}

[data-theme="dark"] .topic-preview:hover .topic-stats .stat i {
    color: var(--forum-primary) !important;
}

/* User List */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.user-item:hover {
    background: rgba(79, 209, 197, 0.05);
    border-color: rgba(79, 209, 197, 0.2);
    transform: translateX(4px);
}

.user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(79, 209, 197, 0.3) !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.user-info {
    flex: 1;
}

.user-name {
    color: rgba(79, 209, 197, 0.8);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 2px 0;
    transition: color 0.3s ease;
}

.user-item:hover .user-name {
    color: rgba(79, 209, 197, 1);
}

.user-role {
    color: var(--forum-text-light);
    font-size: 0.8rem;
    margin: 0;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--forum-hover);
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--forum-text);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0 2px 0;
}

.activity-time {
    color: var(--forum-text-light);
    font-size: 0.8rem;
    margin: 0;
}

/* Tags List */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
    color: white;
    text-decoration: none;
}

/* Light mode for tags */
[data-theme="light"] .tag {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.8), rgba(79, 209, 197, 0.6));
    color: white;
    border: 1px solid rgba(79, 209, 197, 0.3);
}

[data-theme="light"] .tag:hover {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.9), rgba(79, 209, 197, 0.7));
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.4);
    color: white;
}

/* Popular tag item styles */
.popular-tag-item {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 6px 12px;
    background: var(--forum-card-bg);
    border: 1px solid var(--forum-border);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--forum-text);
    text-decoration: none;
}

.popular-tag-item:hover {
    background: #4FD1C5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
    text-decoration: none;
}

/* Light mode for popular tag items */
[data-theme="light"] .popular-tag-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .popular-tag-item:hover {
    background: #4FD1C5;
    color: white;
    border-color: rgba(79, 209, 197, 0.3);
}

/* Notification List */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: var(--forum-hover);
}

.notification-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.notification-content {
    flex: 1;
}

.notification-text {
    color: var(--forum-text);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0 2px 0;
}

.notification-time {
    color: var(--forum-text-light);
    font-size: 0.8rem;
    margin: 0;
}

/* Related Topics */
.related-topics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-topic {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-topic:hover {
    background: var(--forum-hover);
}

.related-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forum-primary), var(--forum-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
}

.related-content h6 {
    color: var(--forum-text);
    font-weight: 600;
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.related-content p {
    color: var(--forum-text-light);
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive Forum Layout */
@media (max-width: 1200px) {
    .forum-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .topic-sidebar {
        position: static;
        height: auto;
        max-height: none;
        margin-top: 20px;
        padding: 0;
    }
    
    .sidebar-section {
        margin-bottom: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .forum-filter-tabs {
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-tab {
        padding: 15px 20px;
        font-size: 0.9rem;
        justify-content: flex-start;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .col-topic {
        grid-column: 1;
        margin-bottom: 8px;
    }
    
    .col-forum,
    .col-replies,
    .col-views,
    .col-posted,
    .col-last {
        grid-column: 1;
        margin-top: 4px;
        font-size: 0.85rem;
    }
    
    .topic-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .topic-badge {
        padding: 3px 6px;
        font-size: 0.65rem;
        min-width: 25px;
    }
    
    .topic-title {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* Forum Stats - Mobil */
    .forum-stats .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .forum-stats .stat-card {
        min-height: 100px;
        padding: 15px 10px;
    }
    
    .forum-stats .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .forum-stats .stat-card p {
        font-size: 0.8rem;
    }
    
    .sidebar-section {
        padding: 15px;
    }
    
    .stats-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-numbers {
        flex-direction: column;
        gap: 10px;
    }
    
    .topic-sidebar {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 20px;
        padding-right: 0;
    }
    
    .stat-item {
        height: 110px;
        padding: 18px 14px;
        gap: 8px;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        margin: 0 auto;
        border-radius: 50%;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    [data-theme="dark"] .stat-icon {
        font-size: 1.2rem;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        margin: 0 auto;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 8px;
    }
    
    .stat-item {
        height: 100px;
        padding: 16px 12px;
        gap: 6px;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 50%;
        margin: 0 auto;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    [data-theme="dark"] .stat-icon {
        font-size: 0.9rem;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin: 0 auto;
    }
    
    .topic-preview {
        padding: 10px;
    }
    
    .preview-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .preview-info h6 {
        font-size: 0.8rem;
    }
    
    .preview-info p {
        font-size: 0.7rem;
    }
}
.forum-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.forum-content-area {
    background: var(--forum-card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--forum-shadow);
    border: 1px solid var(--forum-border);
}

.forum-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--forum-primary) var(--forum-border);
}

.forum-sidebar::-webkit-scrollbar {
    width: 6px;
}

.forum-sidebar::-webkit-scrollbar-track {
    background: var(--forum-border);
    border-radius: 3px;
}

.forum-sidebar::-webkit-scrollbar-thumb {
    background: var(--forum-primary);
    border-radius: 3px;
}

.forum-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--forum-secondary);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--forum-card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--forum-shadow);
    border: 1px solid var(--forum-border);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--forum-shadow-hover);
    transform: translateY(-2px);
}

.sidebar-widget h5 {
    color: var(--forum-text);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget h5 i {
    color: var(--forum-primary);
    font-size: 1.1rem;
}

/* Widget Stats */
.widget-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background: var(--forum-bg);
    border-radius: 10px;
    border: 1px solid var(--forum-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--forum-hover);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forum-primary);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--forum-text-light);
    font-weight: 500;
}

/* Widget Items */
.widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--forum-text);
    text-decoration: none;
    border-bottom: 1px solid var(--forum-border);
    transition: all 0.3s ease;
}

.widget-item:last-child {
    border-bottom: none;
}

.widget-item:hover {
    color: var(--forum-primary);
    background: var(--forum-hover);
    padding-left: 10px;
    border-radius: 8px;
    margin: 0 -10px;
    padding-right: 10px;
}

.widget-item i {
    color: var(--forum-primary);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.widget-item span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Forum Layout */
@media (max-width: 1200px) {
    .forum-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .forum-sidebar {
        position: static;
        max-height: none;
        order: -1;
    }
    
    .widget-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .forum-layout {
        padding: 10px;
        gap: 15px;
    }
    
    .forum-content-area {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
    
    .widget-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    /* Forum Stats - Tablet */
    .forum-stats .stat-card {
        min-height: 110px;
        padding: 18px 12px;
    }
    
    .forum-stats .stat-card h3 {
        font-size: 1.6rem;
    }
    
    .forum-stats .stat-card p {
        font-size: 0.82rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .widget-item {
        padding: 8px 0;
        font-size: 0.85rem;
    }
}

/* Modern Stat Cards */
.modern-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 209, 197, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.modern-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4FD1C5, #81E6D9, #38B2AC);
    border-radius: 20px 20px 0 0;
}

.modern-stat::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.modern-stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(79, 209, 197, 0.3);
    border-color: rgba(79, 209, 197, 0.4);
}

.modern-stat:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4FD1C5, #81E6D9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat-icon:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-content h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content p {
    margin: 8px 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive Modern Stats */
@media (max-width: 768px) {
    .modern-stat {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 50%;
        margin: 0 auto;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}


/* Responsive Modern Header */
@media (max-width: 768px) {
    /* Mobilde bölümleri sıralayıp Konular başlığını filtre bloğunun hemen altına al */
    .forum-content { display: flex; flex-direction: column; }
    .modern-forum-header { order: 0; }
    .forum-topics-section { order: 1; margin-bottom: 15px; }
    .forum-topics-table { order: 2; margin-top: 0; }
    .forum-categories-section, .forum-categories, .forum-stats { order: 3; }
    .online-users { order: 99; }
    
    /* Mobile Forum Topics Section Improvements */
    .forum-topics-section {
        background: var(--forum-card-bg);
        border-radius: 16px;
        padding: 20px 15px;
        margin-bottom: 20px;
        border: 1px solid var(--forum-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .topic-filter-navbar {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 0 0 15px 0;
        margin-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .topic-filter-navbar::-webkit-scrollbar {
        display: none;
    }
    
    .filter-item {
        flex-shrink: 0;
        padding: 10px 16px;
        background: var(--forum-hover);
        border-radius: 25px;
        border: 1px solid var(--forum-border);
        transition: all 0.3s ease;
        white-space: nowrap;
        font-size: 0.85rem;
        min-width: fit-content;
    }
    
    .filter-item.active {
        background: var(--forum-primary);
        color: white;
        border-color: var(--forum-primary);
    }
    
    .filter-item i {
        margin-right: 6px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin: 0 auto 15px auto;
        text-align: center;
        color: var(--forum-text);
        width: fit-content;
    }
    
    .section-title i {
        margin-right: 8px;
        color: var(--forum-primary);
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 18px 16px;
        text-align: center;
    }
    
    .forum-brand {
        flex-direction: column;
        gap: 15px;
    }
    
    .brand-icon {
        width: 60px;
        height: 60px;
    }
    
    .brand-icon i {
        font-size: 1.5rem;
    }
    
    .brand-text h1 {
        font-size: 2rem;
    }
    
    .brand-text p {
        font-size: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .search-container { width: 100%; }
    
    .search-input { width: 100%; }
    
    .new-topic-btn { width: 100%; justify-content: center; }
}

/* Enhanced Category Card Styles */
.category-topics {
    background: rgba(79, 209, 197, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(79, 209, 197, 0.2);
    clear: both;
    overflow: hidden;
}

.category-topics h6 {
    color: var(--forum-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.category-topics h6 i {
    margin-right: 6px;
    color: var(--forum-primary);
}

.category-topic-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: var(--forum-card-bg);
    border: 1px solid var(--forum-border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid var(--forum-primary);
}

.category-topic-item:hover {
    background: var(--forum-hover);
    border-color: var(--forum-primary);
}

.category-topic-item:last-child {
    margin-bottom: 0;
}

.topic-icon {
    margin-right: 10px;
    margin-top: 2px;
}

.topic-icon i {
    color: var(--forum-primary);
    font-size: 0.9rem;
}

.topic-info {
    flex: 1;
}

.topic-info h6 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--forum-text);
    font-weight: 600;
    line-height: 1.3;
}

.topic-stats {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.topic-stats .stat {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--forum-text-light);
}

.topic-stats .stat i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--forum-text-light);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    width: 16px;
    margin-right: 8px;
    color: var(--forum-primary);
}

.popular-topics {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    clear: both;
    overflow: hidden;
}

.popular-topics h6 {
    color: var(--forum-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.popular-topics h6 i {
    margin-right: 6px;
    color: #FFC107;
}

.popular-topic-item {
    display: flex !important;
    align-items: center !important;
    padding: 15px !important;
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid var(--forum-primary) !important;
    height: auto !important;
    min-height: 80px !important;
    max-height: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    box-shadow: var(--forum-shadow) !important;
    position: relative !important;
    gap: 12px !important;
}

.popular-topic-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: var(--forum-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

.popular-topic-item:last-child {
    margin-bottom: 0;
}

/* Responsive design for popular topic items */
@media (max-width: 768px) {
    .popular-topic-item {
        height: 80px;
        min-height: 80px;
        max-height: 80px;
        padding: 12px;
    }
    
    .popular-topic-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
        position: relative;
        align-self: center;
    }
    
    .popular-topic-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-right: 10px;
    }
    
    .popular-topic-info h6 {
        font-size: 0.85rem;
    }
    
    .popularity-stats .stat {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .popular-topic-item {
        height: 75px;
        min-height: 75px;
        max-height: 75px;
        padding: 10px;
    }
    
    .popular-topic-icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        position: relative;
        align-self: center;
    }
    
    .popular-topic-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-right: 8px;
    }
    
    .popular-topic-icon i {
        font-size: 0.8rem;
    }
    
    .popular-topic-info h6 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .popularity-stats {
        gap: 8px;
    }
    
    .popularity-stats .stat {
        font-size: 0.65rem;
    }
}

.popular-topic-icon {
    margin-right: 0 !important;
    margin-top: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--forum-primary) 0%, var(--forum-secondary) 100%) !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(79, 209, 197, 0.3) !important;
    position: relative !important;
    align-self: center !important;
}

.popular-topic-icon i {
    color: white !important;
    font-size: 1.2rem !important;
}

.popular-topic-info {
    flex: 1 !important;
    min-height: auto !important;
    overflow: visible !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

.popular-topic-info h6 {
    margin: 0 0 8px 0 !important;
    font-size: 0.95rem !important;
    color: var(--forum-text) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    display: block !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.popularity-stats {
    display: flex !important;
    gap: 8px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    height: auto !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.popularity-stats .stat {
    display: flex !important;
    align-items: center !important;
    font-size: 0.8rem !important;
    color: var(--forum-text-light) !important;
    font-weight: 500 !important;
    gap: 4px !important;
}

.popularity-stats .stat i {
    margin-right: 0 !important;
    font-size: 0.8rem !important;
    color: var(--forum-primary) !important;
}

/* Light mode overrides for popular topics */
html:not([data-theme="dark"]) body:not([data-theme="dark"]) .popular-topic-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid rgba(79, 209, 197, 0.2) !important;
    border-left: 4px solid var(--forum-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .popular-topic-item:hover {
    background: #F8F9FA !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.2) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .popular-topic-info h6 {
    color: var(--forum-text) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .popularity-stats .stat {
    color: #6B7280 !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .popularity-stats .stat i {
    color: var(--forum-primary) !important;
}

/* Light mode overrides for topic-preview */
html:not([data-theme="dark"]) body:not([data-theme="dark"]) .topic-preview {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border: 1px solid rgba(79, 209, 197, 0.3) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .topic-preview:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 20px rgba(79, 209, 197, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(79, 209, 197, 0.5) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .preview-info h6 {
    color: var(--forum-text) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .preview-info p {
    color: #6B7280 !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .topic-stats .stat {
    background: rgba(79, 209, 197, 0.1) !important;
    color: #6B7280 !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .topic-stats .stat i {
    color: var(--forum-primary) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .topic-preview:hover .preview-info h6 {
    color: var(--forum-primary) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .topic-preview:hover .topic-stats .stat {
    background: rgba(79, 209, 197, 0.2) !important;
}

html:not([data-theme="dark"]) body:not([data-theme="dark"]) .topic-preview:hover .topic-stats .stat i {
    color: var(--forum-primary) !important;
}

.recent-topics {
    margin-bottom: 20px;
    clear: both;
    overflow: hidden;
}

.recent-topics h6 {
    color: var(--forum-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.recent-topics h6 i {
    margin-right: 6px;
    color: var(--forum-primary);
}

.subcategory-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: var(--forum-card-bg);
    border: 1px solid var(--forum-border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.subcategory-item:hover {
    background: var(--forum-hover);
    border-color: var(--forum-primary);
}

.subcategory-item:last-child {
    margin-bottom: 0;
}

.subcategory-icon {
    margin-right: 10px;
    margin-top: 2px;
}

.subcategory-icon i {
    color: var(--forum-primary);
    font-size: 0.8rem;
}

.subcategory-info {
    flex: 1;
}

.subcategory-info h6 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--forum-text);
    font-weight: 600;
    line-height: 1.3;
}

.user-info {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--forum-text-light);
    margin-bottom: 5px;
}

.user-info i {
    margin-right: 4px;
    color: var(--forum-text-light);
}

.user-name {
    font-weight: 500;
}

.user-name.admin {
    color: var(--admin-color);
}

.user-name.user {
    color: var(--user-color);
}

.separator {
    margin: 0 6px;
    color: var(--forum-text-light);
}

.time {
    color: var(--forum-text-light);
}

.post-stats {
    display: flex;
    gap: 12px;
}

.post-stats .stat {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--forum-text-light);
}

.post-stats .stat i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.no-posts {
    text-align: center;
    padding: 20px;
    color: var(--forum-text-light);
    font-style: italic;
}

.no-posts i {
    margin-right: 6px;
    color: var(--forum-text-light);
}

.active-users {
    background: rgba(56, 178, 172, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 178, 172, 0.2);
    clear: both;
    overflow: hidden;
}

.active-users h6 {
    color: var(--forum-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.active-users h6 i {
    margin-right: 6px;
    color: var(--forum-secondary);
}

.user-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(56, 178, 172, 0.1);
}

.user-item:last-child {
    border-bottom: none;
}

.user-avatar {
    margin-right: 10px;
}

.user-avatar i {
    color: var(--forum-secondary);
    font-size: 1.2rem;
}

.user-item .user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.user-item .user-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.user-item .post-count {
    font-size: 0.75rem;
    color: var(--forum-text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-secondary {
    background: var(--forum-secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.badge-secondary i {
    margin-right: 4px;
    font-size: 0.7rem;
}

/* Dark theme adjustments */
[data-theme="dark"] .category-topics {
    background: rgba(79, 209, 197, 0.15);
    border-color: rgba(79, 209, 197, 0.3);
}

[data-theme="dark"] .popular-topics {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .active-users {
    background: rgba(56, 178, 172, 0.15);
    border-color: rgba(56, 178, 172, 0.3);
}

[data-theme="dark"] .subcategory-item {
    background: var(--forum-card-bg);
    border-color: var(--forum-border);
}

[data-theme="dark"] .subcategory-item:hover {
    background: var(--forum-hover);
}

/* Ultra-specific dark mode overrides for popular topics */
body[data-theme="dark"] .popular-topic-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    border-left: 4px solid var(--forum-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="dark"] .popular-topic-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.3) !important;
}

/* Fallback dark mode overrides */
[data-theme="dark"] .popular-topic-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    border-left: 4px solid var(--forum-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .popular-topic-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.3) !important;
}

/* Ultra-specific dark mode text overrides for popular topics */
body[data-theme="dark"] .popular-topic-info h6 {
    color: var(--forum-text) !important;
}

body[data-theme="dark"] .popularity-stats .stat {
    color: var(--forum-text-light) !important;
}

body[data-theme="dark"] .popularity-stats .stat i {
    color: var(--forum-primary) !important;
}

/* Fallback dark mode text overrides */
[data-theme="dark"] .popular-topic-info h6 {
    color: var(--forum-text) !important;
}

[data-theme="dark"] .popularity-stats .stat {
    color: var(--forum-text-light) !important;
}

[data-theme="dark"] .popularity-stats .stat i {
    color: var(--forum-primary) !important;
}

/* Ultra-specific overrides for scroll-animate elements */
body[data-theme="dark"] .scroll-animate.popular-topic-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    border-left: 4px solid var(--forum-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="dark"] .scroll-animate.stat-card {
    background: var(--forum-card-bg) !important;
    border: 2px solid var(--forum-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="dark"] .scroll-animate.popular-topic-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.3) !important;
}

body[data-theme="dark"] .scroll-animate.stat-card:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.3) !important;
}

/* Maximum specificity dark mode overrides - force dark styling */
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item {
    background: var(--forum-card-bg) !important;
    border: 1px solid var(--forum-border) !important;
    border-left: 4px solid var(--forum-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.3) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-card {
    background: var(--forum-card-bg) !important;
    border: 2px solid var(--forum-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-card:hover {
    background: var(--forum-hover) !important;
    border-color: var(--forum-primary) !important;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.3) !important;
}

/* Maximum specificity text color overrides */
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item .popular-topic-info h6 {
    color: var(--forum-text) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item .popularity-stats .stat {
    color: var(--forum-text-light) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item .popularity-stats .stat i {
    color: var(--forum-primary) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-card h3 {
    color: var(--forum-primary) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-card p {
    color: var(--forum-text-light) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-card i {
    color: var(--forum-primary) !important;
}

/* Force dark mode styling even with inline styles */
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item[style*="background"] {
    background: var(--forum-card-bg) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-card[style*="background"] {
    background: var(--forum-card-bg) !important;
}

/* Override any white backgrounds specifically */
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item[style*="background: white"],
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item[style*="background: #fff"],
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item[style*="background: #ffffff"],
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item[style*="background-color: white"],
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item[style*="background-color: #fff"],
html[data-theme="dark"] body[data-theme="dark"] .popular-topic-item[style*="background-color: #ffffff"] {
    background: var(--forum-card-bg) !important;
}

html[data-theme="dark"] body[data-theme="dark"] .stat-card[style*="background: white"],
html[data-theme="dark"] body[data-theme="dark"] .stat-card[style*="background: #fff"],
html[data-theme="dark"] body[data-theme="dark"] .stat-card[style*="background: #ffffff"],
html[data-theme="dark"] body[data-theme="dark"] .stat-card[style*="background-color: white"],
html[data-theme="dark"] body[data-theme="dark"] .stat-card[style*="background-color: #fff"],
html[data-theme="dark"] body[data-theme="dark"] .stat-card[style*="background-color: #ffffff"] {
    background: var(--forum-card-bg) !important;
}

/* Text color overrides for scroll-animate elements */
body[data-theme="dark"] .scroll-animate.popular-topic-item .popular-topic-info h6 {
    color: var(--forum-text) !important;
}

body[data-theme="dark"] .scroll-animate.popular-topic-item .popularity-stats .stat {
    color: var(--forum-text-light) !important;
}

body[data-theme="dark"] .scroll-animate.popular-topic-item .popularity-stats .stat i {
    color: var(--forum-primary) !important;
}

body[data-theme="dark"] .scroll-animate.stat-card h3 {
    color: var(--forum-primary) !important;
}

body[data-theme="dark"] .scroll-animate.stat-card p {
    color: var(--forum-text-light) !important;
}

body[data-theme="dark"] .scroll-animate.stat-card i {
    color: var(--forum-primary) !important;
}

/* Modal backdrop cleanup - hide any lingering backdrops */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal-backdrop.fade.show {
    opacity: 0.5 !important;
}

/* Force hide any orphaned backdrops */
body:not(.modal-open) .modal-backdrop {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Ensure proper modal cleanup */
.modal:not(.show) ~ .modal-backdrop {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-topics {
        padding: 12px;
    }
    
    .category-topic-item {
        padding: 8px;
    }
    
    .topic-info h6 {
        font-size: 0.85rem;
    }
    
    .topic-stats {
        gap: 8px;
    }
    
    .topic-stats .stat {
        font-size: 0.7rem;
    }
    
    .popular-topics {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .popular-topic-item {
        padding: 8px;
    }
    
    .popular-topic-info h6 {
        font-size: 0.85rem;
    }
    
    .popularity-stats {
        gap: 8px;
    }
    
    .popularity-stats .stat {
        font-size: 0.7rem;
    }
    
    .subcategory-item {
        padding: 8px;
    }
    
    .subcategory-info h6 {
        font-size: 0.85rem;
    }
}

/* Topic Filter Navbar */
.topic-filter-navbar {
    display: flex;
    background: var(--forum-card-bg);
    border-radius: 12px;
    border: 1px solid var(--forum-border);
    padding: 8px;
    margin-bottom: 24px;
    gap: 6px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: none;
    white-space: nowrap;
    color: var(--forum-text-light);
    font-size: 0.9rem;
    font-weight: 600;
    min-width: fit-content;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.filter-item:hover {
    background: var(--forum-hover);
    color: var(--forum-text);
    border-color: var(--forum-border);
}

.filter-item.active {
    background: linear-gradient(135deg, #4FD1C5, #38B2AC);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Dark theme adjustments for filter navbar */
[data-theme="dark"] .topic-filter-navbar {
    background: #2D3748;
    border-color: #4A5568;
}

[data-theme="dark"] .filter-item {
    color: #A0AEC0;
}

[data-theme="dark"] .filter-item:hover {
    background: #4A5568;
    color: #E2E8F0;
}

[data-theme="dark"] .filter-item.active {
    background: linear-gradient(135deg, #4FD1C5, #38B2AC);
    color: white;
}

/* Dark theme for empty state message */
[data-theme="dark"] .text-muted {
    color: white !important;
}

/* Mobile responsive for filter navbar */
@media (max-width: 768px) {
    .topic-filter-navbar {
        padding: 6px;
        gap: 4px;
        overflow-x: auto;
        flex-direction: row;
    }
    
    .filter-item {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .filter-item i {
        font-size: 0.8rem;
        width: 14px;
    }
    
    .user-info {
        font-size: 0.75rem;
    }
    
    .post-stats {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .topic-filter-navbar {
        padding: 4px;
        gap: 3px;
    }
    
    .filter-item {
        padding: 8px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .filter-item i {
        font-size: 0.75rem;
        width: 12px;
    }
}

/* Modern Micro-Interactions & Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(79, 209, 197, 0); }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modern Loading States */
.loading-shimmer {
    position: relative;
    overflow: hidden;
}

.loading-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

/* Modern Focus States */
.modern-focus:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(79, 209, 197, 0.3),
        0 0 0 1px rgba(79, 209, 197, 0.5) inset;
    transform: scale(1.02);
}

/* Modern Button Press Effect */
.modern-press:active {
    transform: scale(0.98) translateY(1px);
    transition: all 0.1s ease;
}

/* Modern Card Entrance Animation */
.modern-card-entrance {
    animation: slide-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card-entrance:nth-child(1) { animation-delay: 0.1s; }
.modern-card-entrance:nth-child(2) { animation-delay: 0.2s; }
.modern-card-entrance:nth-child(3) { animation-delay: 0.3s; }
.modern-card-entrance:nth-child(4) { animation-delay: 0.4s; }

/* Modern Hover Glow Effect */
.modern-glow:hover {
    animation: pulse-glow 2s infinite;
}

/* Modern Floating Animation */
.modern-float {
    animation: float 3s ease-in-out infinite;
}

/* Modern Scale on Hover */
.modern-scale:hover {
    transform: scale(1.05);
    transition: var(--transition-bounce);
}

/* Modern Glassmorphism Enhancement */
.glassmorphism-enhanced {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Modern Dark Mode Glassmorphism */
[data-theme="dark"] .glassmorphism-enhanced {
    background: rgba(45, 55, 72, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Çözüldü Butonu Stilleri */
.topic-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solved-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid var(--solved-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.solved-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.solved-btn:active {
    transform: translateY(0);
}

.solved-btn.btn-success {
    background: var(--solved-color);
    color: white;
    border-color: var(--solved-color);
}

.solved-btn.btn-success:hover {
    background: #2F855A;
    border-color: #2F855A;
}

.solved-btn.btn-outline-success {
    background: transparent;
    color: var(--solved-color);
    border-color: var(--solved-color);
}

.solved-btn.btn-outline-success:hover {
    background: var(--solved-bg);
    color: var(--solved-color);
}

.solved-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Çözüldü Badge Stilleri */
.badge.bg-success {
    background-color: var(--solved-color) !important;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Dark theme için çözüldü butonu */
[data-theme="dark"] .solved-btn.btn-outline-success:hover {
    background: rgba(56, 161, 105, 0.1);
}

[data-theme="dark"] .solved-btn.btn-success {
    background: var(--solved-color);
    color: white;
}

[data-theme="dark"] .solved-btn.btn-success:hover {
    background: #2F855A;
}

/* Mobile responsive çözüldü butonu */
@media (max-width: 768px) {
    .topic-actions {
        margin-left: 0;
        margin-top: 8px;
        justify-content: flex-start;
    }
    
    .solved-btn {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .topic-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .forum-topics-section .section-title,
    .forum-categories-section .section-title {
        font-size: 1.3rem;
        gap: 10px;
        margin: 0 auto 15px auto;
        width: fit-content;
    }
    
    .forum-topics-section .section-title::before,
    .forum-topics-section .section-title::after,
    .forum-categories-section .section-title::before,
    .forum-categories-section .section-title::after {
        height: 0.5px;
    }
}

@media (max-width: 576px) {
    .post-stats .stat {
        font-size: 0.7rem;
    }
    
    .active-users {
        padding: 12px;
    }
    
    .user-item .user-name {
        font-size: 0.8rem;
    }
    
    .user-item .post-count {
        font-size: 0.7rem;
    }
}
