/* Modern Sözlük Sistemi - 2024 */

:root {
    /* Ana Renkler */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary-color: #f1f5f9;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;

    /* Gri Tonları */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Metin Renkleri */
    --text-color: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Spacing */
    --spacing-xs: 0.2rem;
    --spacing-sm: 0.4rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.25rem;
    --spacing-2xl: 1.75rem;

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --white: #1e293b;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #ffffff;
    --border-color: #475569;
    --text-color: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-light: #94a3b8;
    --light-color: #0f172a;
    --secondary-color: #1e293b;

    /* Dark mode shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Reset ve Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
    font-weight: 400;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-light);
    color: var(--white);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar {
    padding: 0.75rem 0;
    min-height: 60px;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    color: white !important;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
    margin: 0 0.2rem;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--transition-normal);
    z-index: -1;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    left: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.theme-toggle i {
    font-size: 1rem;
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: var(--spacing-sm);
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Modern Card Styles */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 0 auto var(--spacing-lg) auto;
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    max-width: 100%;
    width: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

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

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.card-header h5 i {
    color: var(--primary-color);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-body.p-0 {
    padding: 0;
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto var(--spacing-lg) auto;
    overflow: hidden;
    transition: all var(--transition-normal);
    max-width: 100%;
    width: 100%;
}

.sidebar-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sidebar-title {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: var(--spacing-lg);
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sidebar-title i {
    font-size: 1.1rem;
}

.sidebar-card .card-body,
.sidebar-card>div:not(.sidebar-title) {
    padding: var(--spacing-lg);
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.large-profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-username {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-stats-secondary {
    margin-top: 1rem;
    opacity: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Navigation */
.profile-nav {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.profile-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.profile-nav .nav-link:hover,
.profile-nav .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--gray-50);
}

/* Question Cards */
.question-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal), transform var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.question-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.question-card:hover::before {
    transform: scaleY(1);
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.question-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.question-excerpt {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-size: 0.95rem;
}

.question-stats {
    display: flex !important;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-right: var(--spacing-xl);
    flex-shrink: 0;
    align-items: center;
    min-width: 80px;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    background: transparent;
    min-width: 60px;
    transition: all var(--transition-fast);
    text-align: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-item:hover {
    background: var(--gray-100);
}

.stat-item.votes {
    color: var(--primary-color);
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-item.votes .number {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
}

.stat-item.votes .label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-item.answers {
    color: var(--success-color);
}

.stat-item.views {
    color: var(--info-color);
}

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

.stat-item .number {
    font-weight: 600;
    font-size: 1.1rem;
}

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

/* Question Actions */
.question-actions {
    margin: var(--spacing-lg) 0;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Modern Action Buttons */
.modern-action-buttons {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    margin-top: var(--spacing-md);
}

.modern-action-btn {
    background: var(--gray-100);
    border: none;
    color: var(--text-muted);
    padding: var(--spacing-sm);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

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

.modern-action-btn.active {
    background: var(--primary-color);
    color: white;
}

.modern-action-btn.liked {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.modern-action-btn.saved {
    background: #f59e0b !important;
    color: white !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.modern-action-btn:hover.liked {
    background: var(--success-color) !important;
    transform: translateY(-2px) scale(1.1);
}

.modern-action-btn:hover.saved {
    background: var(--warning-color) !important;
    transform: translateY(-2px) scale(1.1);
}

.modern-action-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Accepted Answer Styles */
.accepted-answer {
    border-left: 4px solid var(--success-color);
    background: rgba(16, 185, 129, 0.02);
}

.accepted-badge {
    background: rgba(16, 185, 129, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.accept-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.accept-btn-container .modern-action-btn {
    background: var(--success-color);
    color: white;
    border: 2px solid var(--success-color);
}

.accept-btn-container .modern-action-btn:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px) scale(1.1);
}

.stat-item.accepted .number {
    color: var(--success-color) !important;
}

/* Category Cards */
.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 0;
    transition: all var(--transition-normal);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-card a {
    color: inherit;
    display: block;
    height: 100%;
}

.category-header {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

.category-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    min-height: 60px;
    flex: 1;
}

.category-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.category-stats .stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-stats .stat-item i {
    font-size: 0.9rem;
}

.category-last-activity {
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--gray-200);
}

.category-last-activity small {
    font-size: 0.8rem;
}

/* Categories Stats */
.categories-stats h5 {
    color: var(--text-color);
    font-weight: 600;
}

.categories-stats p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer Full Width */
.footer .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Responsive Category Cards */
@media (max-width: 768px) {
    .category-card {
        margin-bottom: var(--spacing-lg);
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .category-description {
        min-height: auto;
    }

    .stats-card {
        min-height: 120px;
        padding: var(--spacing-md);
    }

    .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stats-number {
        font-size: 1.25rem;
    }

    .footer .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.action-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    min-height: 40px;
}

.action-btn i {
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.vote-btn.upvoted {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.vote-btn.downvoted {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.bookmark-btn.active {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Question Meta */
.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.question-meta-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.question-meta-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

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

.user-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.user-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Category Badge */
.category-badge {
    background: var(--gray-100);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
}

.category-badge:hover {
    background: var(--primary-color);
    color: white;
}

/* Avatars */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--gray-500);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        padding: 2rem 0;
        text-align: center;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-stats {
        justify-content: center;
        gap: 1rem;
    }

    .question-card {
        padding: 1rem;
    }

    .question-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rank Badge Styles */
.rank-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: white !important;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 2px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.rank-badge-small {
    display: inline-flex !important;
    align-items: center;
    color: white !important;
    gap: 3px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white !important;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.rank-badge:hover,
.rank-badge-small:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Rank Badge Variants - Fallback colors if database colors fail */
.rank-badge.caylak,
.rank-badge-small.caylak {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.rank-badge.acemi,
.rank-badge-small.acemi {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.rank-badge.deneyimli,
.rank-badge-small.deneyimli {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

.rank-badge.uzman,
.rank-badge-small.uzman {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.rank-badge.usta,
.rank-badge-small.usta {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.rank-badge.efsane,
.rank-badge-small.efsane {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    animation: rankGlow 2s ease-in-out infinite alternate;
}

@keyframes rankGlow {
    from {
        box-shadow: 0 0 5px rgba(111, 66, 193, 0.5);
    }

    to {
        box-shadow: 0 0 20px rgba(111, 66, 193, 0.8), 0 0 30px rgba(232, 62, 140, 0.6);
    }
}

/* Stats Cards */
.stats-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.2rem;
    color: white;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
}

.stats-icon.questions {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.stats-icon.answers {
    background: linear-gradient(135deg, var(--success-color), #059669);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.stats-icon.users {
    background: linear-gradient(135deg, var(--info-color), #1d4ed8);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.stats-icon.categories {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

.stats-label {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    position: relative;
    z-index: 1;
}

/* Searc
h Section */
.search-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-2xl) 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.search-section .container {
    position: relative;
    z-index: 1;
}

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

.search-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.search-section .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-2xl);
}

.search-section .form-control {
    border: none;
    padding: var(--spacing-lg);
    font-size: 1.1rem;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.search-section .form-control:focus {
    box-shadow: none;
    background: white;
}

.search-section .btn {
    border: none;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.search-section .btn:hover {
    background: var(--gray-100);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-title {
        font-size: 2rem;
    }

    .search-subtitle {
        font-size: 1rem;
    }

    .search-section {
        padding: var(--spacing-xl) 0;
    }
}

/*
 Popular Questions */
.popular-question {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

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

.popular-question:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.popular-question-title {
    margin-bottom: var(--spacing-sm);
}

.popular-question-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.popular-question-title a:hover {
    color: var(--primary-color);
}

.popular-question-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.popular-question-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Top Members */
.top-member {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.top-member:last-child {
    border-bottom: none;
}

.top-member:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

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

.member-info {
    flex: 1;
}

.member-name {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color var(--transition-fast);
}

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

.member-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* Category Badge */
.category-badge {
    background: var(--gray-100);
    color: var(--text-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.category-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Badges */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius);
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

/* Ask Question Button (Fixed) */
.ask-question-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.ask-question-btn .btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.ask-question-btn .btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

@media (max-width: 768px) {
    .ask-question-btn {
        bottom: 1rem;
        right: 1rem;
    }

    .ask-question-btn .btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Pr
ofile Page Improvements */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

/* Gender-based profile header colors */
.profile-header.male {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.profile-header.female {
    background: linear-gradient(135deg, #FF6B6B 0%, #E55A5A 100%);
}

/* Gender-based user card colors */
.user-card.male {
    border-left: 4px solid #4A90E2;
}

.user-card.female {
    border-left: 4px solid #FF6B6B;
}

.user-card.male .user-stats {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(53, 122, 189, 0.1));
}

.user-card.female .user-stats {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(229, 90, 90, 0.1));
}

.user-card.male:hover {
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.user-card.female:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.profile-content {
    position: relative;
    z-index: 1;
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    transition: all var(--transition-normal);
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
}

.profile-info h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.profile-username {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.profile-bio {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 500px;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-lg);
    max-width: 100%;
}

.profile-stats .profile-stat-item {
    flex: 1 1 calc(20% - 0.4rem);
    min-width: 70px;
    max-width: calc(20% - 0.4rem);
}

.profile-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.profile-stat-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-xs);
    color: rgba(0, 0, 0, 0.9);
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
}

/* Profile Navigation */
.profile-nav {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-nav .nav {
    display: flex;
    flex-wrap: wrap;
}

.profile-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.profile-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left var(--transition-slow);
}

.profile-nav .nav-link:hover::before {
    left: 100%;
}

.profile-nav .nav-link:hover,
.profile-nav .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--gray-50);
}

/* Profile Content Cards */
.profile-content-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.profile-content-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.profile-content-header {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.profile-content-header h3 {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-content-body {
    padding: var(--spacing-xl);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.empty-state p {
    margin-bottom: var(--spacing-lg);
}

/* User Badge */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-badge.admin {
    background: var(--danger-color);
}

.user-badge.moderator {
    background: var(--warning-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        padding: var(--spacing-xl) 0;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-stats .profile-stat-item {
        flex: 1 1 calc(33.333% - var(--spacing-xs));
    }

    .profile-nav .nav {
        flex-direction: column;
    }

    .profile-nav .nav-link {
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        border-right: none;
    }

    .profile-nav .nav-link:last-child {
        border-bottom: none;
    }

    .question-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .question-stats {
        order: -1;
        justify-content: space-between;
        width: 100%;
    }

    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
}

.profile-info h1 {
    font-size: 1.75rem;
}

.profile-stats .profile-stat-item {
    flex: 1 1 calc(50% - var(--spacing-xs));
}

.stats-card {
    padding: var(--spacing-lg);
}

.stats-number {
    font-size: 1.75rem;
}

.question-card {
    padding: var(--spacing-lg);
}

.question-stats {
    gap: var(--spacing-sm);
}

.stat-item {
    min-width: 50px;
    padding: var(--spacing-xs);
}
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth Transitions */
* {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hover Effects */
.card:hover,
.stats-card:hover,
.question-card:hover {
    transform: translateY(-4px);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Moder
n Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>');
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer h5 i {
    color: var(--primary-color);
}

.footer p {
    line-height: 1.6;
    color: var(--gray-400);
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer .list-unstyled li {
    transition: all var(--transition-fast);
}

.footer .list-unstyled li:hover {
    transform: translateX(4px);
}

/* Social Links */
.footer .d-flex a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.footer .d-flex a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    text-align: center;
    color: var(--gray-500);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--radius);
    padding: var(--spacing-xs) var(--spacing-md);
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

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

.btn-light {
    background: var(--white);
    color: var(--text-color);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-sm {
    padding: 0.15rem var(--spacing-sm);
    font-size: 0.8rem;
}

.btn-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    color: var(--text-color);
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--white);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.input-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.input-group .form-control {
    border-radius: 0;
    border-right: none;
}

.input-group .btn {
    border-radius: 0;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Pagination */
.pagination {
    gap: var(--spacing-xs);
}

.page-link {
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background: var(--gray-100);
    border-color: var(--border-color);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.shadow-custom {
    box-shadow: var(--shadow-xl);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--primary-color), var(--primary-dark)) border-box;
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .sidebar-card,
    .ask-question-btn,
    .action-buttons {
        display: none !important;
    }

    .question-card,
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-muted: #333;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 
Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification Styles */
.notification-badge {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modern Scrollbar for Webkit browsers */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.skeleton-title {
    height: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    width: 70%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--spacing-sm);
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.toast-body {
    padding: var(--spacing-md);
}

/* Modern Modal */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: var(--spacing-xl);
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--gray-50);
}

/* Improved Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead th {
    background: var(--gray-100);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-color);
    padding: var(--spacing-lg);
}

.table tbody td {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

/* Improved Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.badge-light {
    background: var(--gray-200);
    color: var(--text-color);
}

.badge-dark {
    background: var(--gray-800);
    color: white;
}

/* Improved List Groups */
.list-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    transition: all var(--transition-fast);
}

.list-group-item:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

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

.list-group-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Improved Navs */
.nav-pills .nav-link {
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    transition: all var(--transition-normal);
    margin: 0 var(--spacing-xs);
}

.nav-pills .nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Improved Breadcrumbs */
.breadcrumb {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    font-weight: 600;
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 500;
}

/* Accessibility Improvements */
.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;
}

/* Focus Indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: none;
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Print Optimizations */
@media print {
    .no-print {
        display: none !important;
    }

    .question-card,
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
}

/* 
Question & Answer Page Styles */
.vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.vote-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.vote-btn {
    background: var(--gray-100);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

.vote-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.vote-btn.upvote:hover,
.vote-btn.upvoted {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.vote-btn.downvote:hover,
.vote-btn.downvoted {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.vote-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    padding: var(--spacing-sm) 0;
    min-width: 40px;
    text-align: center;
}

.bookmark-btn,
.accept-btn {
    background: var(--gray-100);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.bookmark-btn:hover,
.bookmark-btn.active {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.accept-btn:hover {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.accepted-check {
    color: var(--success-color);
    font-size: 1.5rem;
    padding: var(--spacing-sm);
}

/* Answer Cards */
.answer-card {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
}

.answer-card:hover {
    background: var(--gray-50);
}

.answer-card:last-child {
    border-bottom: none;
}

.answer-card.accepted-answer {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
    border-left: 4px solid var(--success-color);
}

.accepted-badge {
    background: var(--success-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.question-content,
.answer-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.question-content p,
.answer-content p {
    margin-bottom: var(--spacing-md);
}

/* User Info in Questions/Answers */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.user-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Question Header */
.question-header {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
}

/* Answer Form */
#answer-form .form-control {
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    padding: var(--spacing-md);
    font-size: 1rem;
    line-height: 1.6;
}

#answer-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vote-section {
        flex-direction: row;
        justify-content: center;
        margin-bottom: var(--spacing-md);
        min-width: auto;
    }

    .vote-buttons {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .vote-count {
        font-size: 1.2rem;
        padding: 0 var(--spacing-md);
    }

    .answer-card {
        padding: var(--spacing-lg);
    }

    .question-content,
    .answer-content {
        font-size: 1rem;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
}

/* Tag Page Specific Styles */
.tag-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
}

.tag-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Loading States */
.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--spacing-md);
}

/* Enhanced Tooltips */
[title] {
    position: relative;
}

/* Better Focus States */
.vote-btn:focus,
.bookmark-btn:focus,
.accept-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Transitions */
.answer-card,
.question-card,
.vote-btn,
.bookmark-btn,
.accept-btn {
    transition: all var(--transition-normal);
}

/* Print Styles for Questions */
@media print {

    .vote-section,
    .question-actions,
    .action-buttons,
    #answer-form {
        display: none !important;
    }

    .answer-card {
        border: 1px solid #ddd !important;
        margin-bottom: 1rem !important;
        page-break-inside: avoid;
    }
}

/* User Pr
ofile Specific Styles */
.profile-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 3px solid white;
}

.profile-meta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.follow-btn {
    min-width: 120px;
    transition: all var(--transition-normal);
}

.follow-btn:hover {
    transform: translateY(-2px);
}

/* Question and Answer Items */
.question-item,
.answer-item {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.question-item:hover,
.answer-item:hover {
    background: var(--gray-50);
}

.question-item:last-child,
.answer-item:last-child {
    border-bottom: none;
}

.stat-badge {
    background: var(--gray-100);
    color: var(--text-muted);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 40px;
    margin-bottom: var(--spacing-xs);
}

.stat-badge.votes {
    background: var(--primary-color);
    color: white;
}

.stat-badge.answers {
    background: var(--success-color);
    color: white;
}

.stat-badge.views {
    background: var(--info-color);
    color: white;
}

.answer-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.answer-stats .vote-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.accepted-badge {
    margin-top: var(--spacing-sm);
}

.question-title a,
.answer-question a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.question-title a:hover,
.answer-question a:hover {
    color: var(--primary-color);
}

.answer-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: var(--spacing-sm) 0;
}

/* Stat Rows */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

/* Badge Items */
.badge-item {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.badge-item:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.badge-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-xs);
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.activity-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: var(--spacing-xs) 0;
}

/* Follow Button States */
.follow-btn.following {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.follow-btn.following:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.follow-btn.following:hover .btn-text::before {
    content: 'Takibi Bırak';
}

.follow-btn.following .btn-text::before {
    content: 'Takip Ediliyor';
}

/* Responsive Adjustments for User Profile */
@media (max-width: 768px) {
    .profile-header {
        padding: var(--spacing-xl) 0;
    }

    .profile-info h1 {
        font-size: 1.75rem;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .profile-actions {
        margin-top: var(--spacing-lg);
    }

    .profile-actions .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    .question-item,
    .answer-item {
        padding: var(--spacing-md);
    }

    .stat-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* Tab Content Loading */
.tab-pane .loading-spinner {
    margin: 0 auto;
}

/* Profile Navigation Active States */
.profile-nav .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.profile-nav .nav-link:hover:not(.active) {
    background: var(--gray-100);
}

/* User Profile Cards */
.profile-content-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.profile-content-header {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.profile-content-header h3 {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-content-body {
    padding: 0;
}

.profile-content-body .empty-state {
    padding: var(--spacing-2xl);
}

/* 
Users Page Styles */
.user-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.user-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.user-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.user-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

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

.user-role-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid white;
}

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

.user-name {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1rem;
    font-weight: 600;
}

.user-name a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.user-username {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
}

.user-bio {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.user-stats .stat-item {
    text-align: center;
}

.user-stats .stat-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
}

.user-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: var(--spacing-xs);
}

.user-meta {
    margin-bottom: var(--spacing-lg);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-meta>div {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
}

.user-meta i {
    width: 12px;
    font-size: 0.75rem;
}

.user-actions {
    margin-top: auto;
    display: flex;
    gap: var(--spacing-sm);
}

.user-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: var(--spacing-sm) var(--spacing-md);
}

.user-actions .btn i {
    font-size: 0.8rem;
}

/* Icon Size Adjustments - Making them smaller and more elegant */
.fas,
.far,
.fab {
    font-size: 0.875rem;
}

/* Specific icon size adjustments */
.card-header h5 i,
.sidebar-title i {
    font-size: 0.9rem;
}

.nav-link i {
    font-size: 0.8rem;
}

.btn i {
    font-size: 0.8rem;
}

.btn-sm i {
    font-size: 0.75rem;
}

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

/* Action button icons */
.action-btn i {
    font-size: 0.8rem;
}

/* Stats icons */
.stats-icon i {
    font-size: 1.1rem;
}

/* Profile header icons */
.profile-header i {
    font-size: 0.85rem;
}

/* Dropdown menu icons */
.dropdown-item i {
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

/* Navigation icons */
.navbar-nav .nav-link i {
    font-size: 0.8rem;
}

.navbar-brand i {
    font-size: 1rem;
}

/* Vote button icons */
.vote-btn i {
    font-size: 1rem;
}

/* Voted state */
.modern-action-btn.voted {
    background-color: #e74c3c !important;
    color: white !important;
}

.modern-action-btn.voted i {
    color: white !important;
}

/* Bookmarked state */
.modern-action-btn.bookmarked {
    background-color: #f39c12 !important;
    color: white !important;
}

.modern-action-btn.bookmarked i {
    color: white !important;
}

/* Comment section styles */
.comment-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

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

.comments-list {
    max-height: 300px;
    overflow-y: auto;
}

.comment-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
}

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

.comment-content {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.existing-comments {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
}

.comment-item {
    padding: 0.5rem 0;
}

.comment-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
}

/* Modern Comment Styles */
.comments-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.comments-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.comments-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-comment-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 3px solid #007bff;
}

.comment-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.comment-bubble {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.author-link {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    font-size: 0.8rem;
}

.author-link:hover {
    text-decoration: underline;
}

.author-badge {
    color: #ffc107;
    font-size: 0.7rem;
}

.comment-time {
    font-size: 0.7rem;
    color: #6c757d;
}

.comment-text {
    color: #495057;
    line-height: 1.4;
    font-size: 0.85rem;
}

/* Modern Comment Form */
.modern-comment-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.comment-form-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.comment-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.input-avatar {
    flex-shrink: 0;
}

.form-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.input-field {
    flex-grow: 1;
}

.modern-comment-input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.15s ease-in-out;
    background: #ffffff;
}

.modern-comment-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modern-comment-input::placeholder {
    color: #6c757d;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.comment-form-actions .btn {
    border-radius: 4px;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.comment-form-actions .btn-light {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.comment-form-actions .btn-primary {
    background: #007bff;
    border: 1px solid #007bff;
}

/* Form icons */
.input-group-text i {
    font-size: 0.8rem;
}

/* Alert icons */
.alert i {
    font-size: 0.9rem;
}

/* Badge icons */
.badge i {
    font-size: 0.7rem;
}

/* Large display icons (for empty states, etc.) */
.fa-3x {
    font-size: 2.5rem !important;
}

.fa-2x {
    font-size: 1.5rem !important;
}

/* Theme toggle icon */
.theme-toggle i {
    font-size: 0.85rem;
}

/* Notification badge icons */
.notification-badge {
    font-size: 0.7rem;
}

/* User card responsive */
@media (max-width: 768px) {
    .user-card {
        padding: var(--spacing-lg);
    }

    .user-card-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .user-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .user-actions {
        flex-direction: column;
    }
}

/* Search form improvements */
.input-group-text {
    background: var(--gray-100);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.input-group .form-control {
    border-left: none;
    border-right: none;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.input-group .btn {
    border-left: none;
}

/* Dropdown improvements */
.dropdown-menu {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: var(--spacing-sm);
}

.dropdown-item {
    border-radius: var(--radius);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

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

/* Follow button states */
.follow-btn {
    transition: all var(--transition-normal);
}

.follow-btn:hover {
    transform: translateY(-1px);
}

/* Profile stat items hover effect */
.profile-stat-item a:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.profile-stat-item a:hover .stat-number {
    color: var(--primary-color) !important;
}

.profile-stat-item a:hover .stat-label {
    color: var(--primary-color) !important;
}

/* User card styles */
.user-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Empty state improvements */
.text-center.py-5 i {
    font-size: 3rem !important;
    opacity: 0.5;
}

/* Badge improvements for user roles */
.user-role-badge.admin {
    background: var(--danger-color);
}

.user-role-badge.moderator {
    background: var(--warning-color);
}

/* Rank Badge Styles */
.rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rank-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white !important;
    text-decoration: none !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.rank-badge:focus,
.rank-badge:active {
    color: white !important;
    text-decoration: none !important;
}

.rank-badge i {
    font-size: 0.8rem;
    margin-right: 6px;
    color: white !important;
}

/* Rank specific colors - override inline styles for better consistency */
.rank-badge.caylak {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.rank-badge.acemi {
    background: linear-gradient(135deg, #fd7e14, #e55a00) !important;
    color: white !important;
}

.rank-badge.yazar {
    background: linear-gradient(135deg, #20c997, #17a085) !important;
    color: white !important;
}

.rank-badge.kidemli-yazar {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
    color: white !important;
}

.rank-badge.tartismaci {
    background: linear-gradient(135deg, #6f42c1, #5a32a3) !important;
    color: white !important;
}

.rank-badge.editor {
    background: linear-gradient(135deg, #198754, #146c43) !important;
    color: white !important;
}

/* Small rank badge for inline use */
.rank-badge-small {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 0.65rem;
    border-radius: 12px;
    font-weight: 600;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rank-badge-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: white !important;
    text-decoration: none !important;
}

.rank-badge-small i {
    font-size: 0.7rem;
    margin-right: 4px;
    color: white !important;
}

/* Rank badge in profile header */
.profile-header .rank-badge {
    font-size: 0.85rem;
    padding: 8px 16px;
    margin-left: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Rank Card Header Styles */
.rank-card-header {
    color: white !important;
    font-weight: 600;
    border: none !important;
}

.rank-card-header.caylak {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.rank-card-header.acemi {
    background: linear-gradient(135deg, #fd7e14, #e55a00) !important;
}

.rank-card-header.yazar {
    background: linear-gradient(135deg, #20c997, #17a085) !important;
}

.rank-card-header.kidemli-yazar {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
}

.rank-card-header.tartismaci {
    background: linear-gradient(135deg, #6f42c1, #5a32a3) !important;
}

.rank-card-header.editor {
    background: linear-gradient(135deg, #198754, #146c43) !important;
}

.rank-card-header h6 {
    color: white !important;
}

.rank-card-header i {
    color: white !important;
}

/* Dark mode compatibility */
[data-theme="dark"] .rank-badge,
[data-theme="dark"] .rank-badge-small {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .rank-badge:hover,
[data-theme="dark"] .rank-badge-small:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Mod
ern Footer */
.footer {
    background: #34495e;
    color: #ecf0f1;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer h5 i {
    color: var(--primary-color);
}

.footer p {
    line-height: 1.6;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer Stats */
.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-stats .stat-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: #95a5a6;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-stats {
        align-items: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 0.5rem;
    }
}

/* 
Badges Page Styles */
.badges-hero {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-2xl);
    color: white;
    margin-bottom: 2rem;
}

.badges-hero .hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.badges-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.badges-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Badge Stats Cards */
.badge-stats-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.badge-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.badge-stats-card.bronze {
    border-color: #cd7f32;
}

.badge-stats-card.silver {
    border-color: #c0c0c0;
}

.badge-stats-card.gold {
    border-color: #ffd700;
}

.badge-stats-card.platinum {
    border-color: #e5e4e2;
}

.badge-stats-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.badge-stats-card.bronze .badge-stats-icon {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.badge-stats-card.silver .badge-stats-icon {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.badge-stats-card.gold .badge-stats-icon {
    background: linear-gradient(135deg, #ffd700, #ffb347);
}

.badge-stats-card.platinum .badge-stats-icon {
    background: linear-gradient(135deg, #e5e4e2, #b8b8b8);
}

.badge-stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.badge-stats-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Badge Cards */
.badge-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.badge-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.badge-card.bronze {
    border-color: rgba(205, 127, 50, 0.3);
}

.badge-card.silver {
    border-color: rgba(192, 192, 192, 0.3);
}

.badge-card.gold {
    border-color: rgba(255, 215, 0, 0.3);
}

.badge-card.platinum {
    border-color: rgba(229, 228, 226, 0.3);
}

.badge-card.earned {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
    border-color: var(--success-color);
}

.badge-card.earned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-color);
}

.badge-earned-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

.badge-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.badge-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.badge-type-indicator {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
}

.badge-type-indicator.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.badge-type-indicator.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.badge-type-indicator.gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
}

.badge-type-indicator.platinum {
    background: linear-gradient(135deg, #e5e4e2, #b8b8b8);
}

.badge-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.badge-description {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.badge-requirements {
    margin-top: auto;
}

.requirement-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.requirement-text.auto-earned {
    color: var(--success-color);
}

.badge-progress-bar {
    margin-top: 0.5rem;
}

.badge-progress-bar .progress {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
}

.badge-progress-bar .progress-bar {
    border-radius: var(--radius-full);
}

.bg-bronze {
    background: linear-gradient(90deg, #cd7f32, #b8860b) !important;
}

.bg-silver {
    background: linear-gradient(90deg, #c0c0c0, #a8a8a8) !important;
}

.bg-gold {
    background: linear-gradient(90deg, #ffd700, #ffb347) !important;
}

.bg-platinum {
    background: linear-gradient(90deg, #e5e4e2, #b8b8b8) !important;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* User Progress Card */
.user-progress-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.progress-header {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.user-points-display {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.points-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.points-label {
    font-size: 1rem;
    opacity: 0.9;
}

.earned-badges-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.earned-badges-grid {
    display: grid;
    gap: 0.75rem;
}

.earned-badge-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border-left: 4px solid transparent;
}

.earned-badge-mini.bronze {
    border-left-color: #cd7f32;
}

.earned-badge-mini.silver {
    border-left-color: #c0c0c0;
}

.earned-badge-mini.gold {
    border-left-color: #ffd700;
}

.earned-badge-mini.platinum {
    border-left-color: #e5e4e2;
}

.earned-badge-mini i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.earned-badge-mini span {
    font-weight: 500;
    color: var(--text-color);
}

.no-badges {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.no-badges i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Badge Types Card */
.badge-types-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.badge-types-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.badge-types-grid {
    display: grid;
    gap: 1rem;
}

.badge-type-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.badge-type-info:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.badge-type-info .type-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.badge-type-info.bronze .type-icon {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.badge-type-info.silver .type-icon {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.badge-type-info.gold .type-icon {
    background: linear-gradient(135deg, #ffd700, #ffb347);
}

.badge-type-info.platinum .type-icon {
    background: linear-gradient(135deg, #e5e4e2, #b8b8b8);
}

.type-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.type-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Quick Actions Card */
.quick-actions-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.quick-actions-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
}

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

.action-btn.secondary {
    background: var(--gray-100);
    color: var(--text-color);
    border-color: var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-btn.tertiary {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
}

.action-btn.tertiary:hover {
    background: var(--gray-50);
    color: var(--text-color);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .tags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 1200px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tags-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .badges-hero {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .badges-hero .hero-title {
        font-size: 2rem;
    }

    .badges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tags-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .badge-card {
        padding: 1rem;
    }

    .badge-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .badge-name {
        font-size: 1rem;
    }

    .badge-description {
        font-size: 0.85rem;
    }

    .badge-stats-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .user-progress-card,
    .badge-types-card,
    .quick-actions-card {
        padding: 1.5rem;
    }

    .points-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .badges-hero .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .badge-card {
        padding: 0.75rem;
    }

    .badge-card-header {
        margin-bottom: 0.75rem;
    }

    .badge-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .badge-name {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .badge-description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .requirement-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .badge-earned-indicator {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Da
rk Mode Specific Fixes */
[data-theme="dark"] .question-card {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .question-title a {
    color: var(--text-color);
}

[data-theme="dark"] .question-excerpt {
    color: var(--text-muted);
}

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

[data-theme="dark"] .stat-item .label {
    color: var(--text-muted);
}

[data-theme="dark"] .user-name {
    color: var(--text-color);
}

[data-theme="dark"] .user-meta {
    color: var(--text-muted);
}

[data-theme="dark"] .category-badge {
    background: var(--gray-200);
    color: var(--text-color);
}

[data-theme="dark"] .popular-question-title a {
    color: var(--text-color);
}

[data-theme="dark"] .popular-question-meta {
    color: var(--text-muted);
}

[data-theme="dark"] .member-name {
    color: var(--text-color);
}

[data-theme="dark"] .member-stats {
    color: var(--text-muted);
}

[data-theme="dark"] .sidebar-card {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-title {
    color: var(--text-color);
    background: var(--gray-100);
}

[data-theme="dark"] .stats-card {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .stats-number {
    color: var(--text-color);
}

[data-theme="dark"] .stats-label {
    color: var(--text-muted);
}

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

[data-theme="dark"] .card-header {
    background: var(--gray-100);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .card-header h5 {
    color: var(--text-color);
}

[data-theme="dark"] .question-meta {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .stat-item:hover {
    background: var(--gray-200);
}

[data-theme="dark"] .popular-question:hover {
    background: var(--gray-200);
}

[data-theme="dark"] .top-member:hover {
    background: var(--gray-200);
}

[data-theme="dark"] .category-last-activity {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .category-last-activity small {
    color: var(--text-muted);
}

[data-theme="dark"] .category-stats .stat-item {
    color: var(--text-muted);
}

[data-theme="dark"] .category-name {
    color: var(--text-color);
}

[data-theme="dark"] .category-description {
    color: var(--text-muted);
}

[data-theme="dark"] .category-header {
    background: var(--gray-100);
    border-bottom-color: var(--border-color);
}

/* Dark mode form controls */
[data-theme="dark"] .form-control {
    background: var(--white);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-control:focus {
    background: var(--white);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}

/* Dark mode buttons */
[data-theme="dark"] .btn-light {
    background: var(--gray-200);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-light:hover {
    background: var(--gray-300);
    color: var(--text-color);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background: var(--gray-200);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Dark mode dropdown */
[data-theme="dark"] .dropdown-menu {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--gray-200);
    color: var(--text-color);
}

/* Dark mode pagination */
[data-theme="dark"] .page-link {
    background: var(--white);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .page-item.disabled .page-link {
    background: var(--gray-200);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Dark mode badges */
[data-theme="dark"] .badge-light {
    background: var(--gray-200);
    color: var(--text-color);
}

/* Dark mode alerts */
[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Dark mode list groups */
[data-theme="dark"] .list-group-item {
    background: var(--white);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .list-group-item:hover {
    background: var(--gray-200);
}

[data-theme="dark"] .list-group-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dark mode tables */
[data-theme="dark"] .table {
    color: var(--text-color);
}

[data-theme="dark"] .table thead th {
    background: var(--gray-200);
    border-bottom-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .table tbody td {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .table tbody tr:hover {
    background: var(--gray-200);
}

/* Dark mode progress bars */
[data-theme="dark"] .progress {
    background: var(--gray-200);
}

/* Dark mode breadcrumbs */
[data-theme="dark"] .breadcrumb {
    background: var(--gray-200);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-color);
}

/* Dark mode navs */
[data-theme="dark"] .nav-pills .nav-link {
    color: var(--text-muted);
}

[data-theme="dark"] .nav-pills .nav-link:hover {
    background: var(--gray-200);
    color: var(--text-color);
}

[data-theme="dark"] .nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Dark mode modals */
[data-theme="dark"] .modal-content {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
    background: var(--gray-100);
}

[data-theme="dark"] .modal-title {
    color: var(--text-color);
}

/* Dark mode toasts */
[data-theme="dark"] .toast {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .toast-header {
    background: var(--gray-100);
    border-bottom-color: var(--border-color);
}

/* Dark mode input groups */
[data-theme="dark"] .input-group-text {
    background: var(--gray-200);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Ensure text visibility in dark mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-color);
}

[data-theme="dark"] p {
    color: var(--text-color);
}

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

[data-theme="dark"] .small,
[data-theme="dark"] small {
    color: var(--text-muted);
}

/* Dark mode specific question card fixes */
[data-theme="dark"] .question-card .d-flex .flex-grow-1 .question-meta .question-meta-right .user-info .user-details .user-meta {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .question-card .question-excerpt {
    color: var(--text-muted) !important;
}

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

[data-theme="dark"] .question-card .stat-item .label {
    color: var(--text-muted) !important;
}

/* Addition
al Dark Mode Fixes for Specific Issues */

/* Fix for question card text visibility in dark mode */
[data-theme="dark"] .question-card .question-excerpt,
[data-theme="dark"] .question-card .user-meta,
[data-theme="dark"] .question-card .stat-item .label {
    color: var(--text-muted) !important;
}

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

[data-theme="dark"] .question-card .user-name {
    color: var(--text-color) !important;
}

/* Fix for sidebar text visibility */
[data-theme="dark"] .sidebar-card .popular-question-title a,
[data-theme="dark"] .sidebar-card .member-name {
    color: var(--text-color) !important;
}

[data-theme="dark"] .sidebar-card .popular-question-meta,
[data-theme="dark"] .sidebar-card .member-stats {
    color: var(--text-muted) !important;
}

/* Fix for stats cards in dark mode */
[data-theme="dark"] .stats-card .stats-number {
    color: var(--text-color) !important;
}

[data-theme="dark"] .stats-card .stats-label {
    color: var(--text-muted) !important;
}

/* Fix for category cards in dark mode */
[data-theme="dark"] .category-card .category-name {
    color: var(--text-color) !important;
}

[data-theme="dark"] .category-card .category-description {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .category-card .category-stats .stat-item {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .category-card .category-last-activity small {
    color: var(--text-muted) !important;
}

/* Fix for user cards in dark mode */
[data-theme="dark"] .user-card .user-name,
[data-theme="dark"] .user-card h5,
[data-theme="dark"] .user-card h6 {
    color: var(--text-color) !important;
}

[data-theme="dark"] .user-card .user-bio,
[data-theme="dark"] .user-card .user-stats,
[data-theme="dark"] .user-card .text-muted {
    color: var(--text-muted) !important;
}

/* Fix for question list items */
[data-theme="dark"] .question-list-item .question-title a {
    color: var(--text-color) !important;
}

[data-theme="dark"] .question-list-item .question-excerpt,
[data-theme="dark"] .question-list-item .question-meta {
    color: var(--text-muted) !important;
}

/* Fix for answer cards */
[data-theme="dark"] .answer-card .answer-content {
    color: var(--text-color) !important;
}

[data-theme="dark"] .answer-card .answer-meta {
    color: var(--text-muted) !important;
}

/* Fix for profile page elements */
[data-theme="dark"] .profile-content .profile-info h1,
[data-theme="dark"] .profile-content .profile-info h2,
[data-theme="dark"] .profile-content .profile-info h3 {
    color: var(--text-color) !important;
}

[data-theme="dark"] .profile-content .profile-bio,
[data-theme="dark"] .profile-content .profile-stats {
    color: var(--text-muted) !important;
}

/* Fix for search results */
[data-theme="dark"] .search-result .result-title a {
    color: var(--text-color) !important;
}

[data-theme="dark"] .search-result .result-excerpt,
[data-theme="dark"] .search-result .result-meta {
    color: var(--text-muted) !important;
}

/* Fix for tag elements */
[data-theme="dark"] .tag-item,
[data-theme="dark"] .tag-badge {
    background: var(--gray-200) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

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

/* Fix for notification elements */
[data-theme="dark"] .notification-item {
    background: var(--white) !important;
    border-color: var(--border-color) !important;
}

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

[data-theme="dark"] .notification-item .notification-text {
    color: var(--text-muted) !important;
}

/* Fix for comment elements */
[data-theme="dark"] .comment-item {
    background: var(--white) !important;
    border-color: var(--border-color) !important;
}

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

[data-theme="dark"] .comment-item .comment-meta {
    color: var(--text-muted) !important;
}

/* Fix for vote elements */
[data-theme="dark"] .vote-section .vote-count {
    color: var(--text-color) !important;
}

/* Fix for badge elements */
[data-theme="dark"] .badge-item .badge-name {
    color: var(--text-color) !important;
}

[data-theme="dark"] .badge-item .badge-description {
    color: var(--text-muted) !important;
}

/* Fix for activity feed */
[data-theme="dark"] .activity-item .activity-title {
    color: var(--text-color) !important;
}

[data-theme="dark"] .activity-item .activity-description {
    color: var(--text-muted) !important;
}

/* Fix for message elements */
[data-theme="dark"] .message-item {
    background: var(--white) !important;
    border-color: var(--border-color) !important;
}

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

[data-theme="dark"] .message-item .message-text {
    color: var(--text-muted) !important;
}

/* Ensure all text elements are visible in dark mode */
[data-theme="dark"] .card-body p,
[data-theme="dark"] .card-body span,
[data-theme="dark"] .card-body div {
    color: var(--text-color);
}

[data-theme="dark"] .card-body .text-muted,
[data-theme="dark"] .card-body .small,
[data-theme="dark"] .card-body small {
    color: var(--text-muted) !important;
}

/* Fix for specific question card elements that were invisible */
[data-theme="dark"] .question-card .d-flex .flex-grow-1 .question-excerpt {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .question-card .question-meta .question-meta-right .user-info .user-details .user-meta span {
    color: var(--text-muted) !important;
}

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

[data-theme="dark"] .question-card .question-stats .stat-item .label {
    color: var(--text-muted) !important;
}

/* Fix for sidebar elements that were invisible */
[data-theme="dark"] .sidebar-card .popular-question .popular-question-meta span {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .sidebar-card .top-member .member-info .member-stats {
    color: var(--text-muted) !important;
}

/* Additional fixes for any remaining invisible text */
[data-theme="dark"] * {
    border-color: var(--border-color);
}

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

[data-theme="dark"] .bg-light {
    background-color: var(--gray-200) !important;
}

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

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

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

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

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

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

/*
 Tags Page Styles */
.tags-hero {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-2xl);
    color: white;
    margin-bottom: 2rem;
}

.tags-hero .hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.tags-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tags-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Tag Stats Cards */
.tag-stats-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    height: 100%;
}

.tag-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tag-stats-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.tag-stats-icon.tags {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.tag-stats-icon.questions {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.tag-stats-icon.active {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.tag-stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.tag-stats-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Filter Section */
.tags-filter-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Tags Grid */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Tag Cards */
.tag-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tag-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.tag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.tag-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tag-icon {
    width: 35px;
    height: 35px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.tag-popularity {
    font-size: 1.2rem;
}

.tag-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.tag-description {
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    flex: 1;
}

.tag-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tag-stats .stat-item i {
    font-size: 0.9rem;
}

/* Popular Tags Card */
.popular-tags-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.popular-tags-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.popular-tags-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-tag-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.popular-tag-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.tag-rank {
    flex-shrink: 0;
}

.rank-number {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.rank-number.top-rank {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
}

.tag-info {
    flex: 1;
}

.tag-info .tag-name {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: block;
    transition: color var(--transition-fast);
}

.tag-info .tag-name:hover {
    color: var(--primary-color);
}

.tag-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tag-trend {
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Tag Cloud Card */
.tag-cloud-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.tag-cloud-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cloud-tag {
    background: var(--gray-100);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.cloud-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cloud-tag-sm {
    font-size: 0.8rem;
}

.cloud-tag-md {
    font-size: 0.9rem;
}

.cloud-tag-lg {
    font-size: 1rem;
    font-weight: 600;
}

.cloud-tag-xl {
    font-size: 1.1rem;
    font-weight: 700;
}

/* No Tags State */
.no-tags {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.no-tags i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-tags p {
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tags-hero {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .tags-hero .hero-title {
        font-size: 2rem;
    }

    .tags-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tag-card {
        padding: 1rem;
    }

    .tag-stats-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .tags-filter-section {
        padding: 1rem;
    }

    .tags-filter-section .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }

    .popular-tags-card,
    .tag-cloud-card,
    .quick-actions-card {
        padding: 1.5rem;
    }

    .tag-stats-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .tags-hero .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .tag-card {
        padding: 0.75rem;
    }

    .tag-name {
        font-size: 1.1rem;
    }

    .tag-description {
        font-size: 0.85rem;
    }

    .popular-tag-item {
        padding: 0.5rem;
    }

    .rank-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Dark Mode Support for Tags */
[data-theme="dark"] .tag-card {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .tag-name {
    color: var(--text-color);
}

[data-theme="dark"] .tag-description {
    color: var(--text-muted);
}

[data-theme="dark"] .tag-stats .stat-item {
    color: var(--text-muted);
}

[data-theme="dark"] .popular-tags-card,
[data-theme="dark"] .tag-cloud-card {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .popular-tag-item {
    background: var(--gray-200);
}

[data-theme="dark"] .popular-tag-item:hover {
    background: var(--gray-300);
}

[data-theme="dark"] .tag-info .tag-name {
    color: var(--text-color);
}

[data-theme="dark"] .tag-count {
    color: var(--text-muted);
}

[data-theme="dark"] .cloud-tag {
    background: var(--gray-200);
    color: var(--text-color);
}

[data-theme="dark"] .cloud-tag:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .tags-filter-section {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .tag-stats-card {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .tag-stats-number {
    color: var(--text-color);
}

[data-theme="dark"] .tag-stats-label {
    color: var(--text-muted);
}

/* Rank
 badge animations */
@keyframes rankGlow {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

.rank-badge:hover {
    animation: rankGlow 1s ease-in-out;
}

/* Responsive rank badges */
@media (max-width: 768px) {
    .rank-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .rank-badge-small {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .rank-badge i,
    .rank-badge-small i {
        font-size: 0.6rem;
    }
}

/* Rank badge tooltip enhancement */
.rank-badge[title]:hover::after,
.rank-badge-small[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/ * Modern Answer Card Styles - Dark Mode Support */ .modern-answer-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    margin: 0 auto 20px auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    max-width: 100%;
    width: 100%;
    color: var(--text-color);
}

.modern-answer-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.modern-answer-card.accepted-answer {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, var(--white) 100%);
}

.answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.answer-vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vote-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.vote-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accepted-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.accept-answer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.accept-answer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.answer-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 24px;
}

.answer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.answer-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.answer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 16px;
    text-decoration: none;
}

.action-btn:focus {
    outline: none;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--gray-200);
    color: var(--text-color);
    transform: scale(1.1);
}

.action-btn.voted {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e83e8c 100%);
    color: white;
}

.action-btn.bookmarked {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 100%);
    color: white;
}

.answer-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

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

.author-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Comments Section */
.comments-section {
    margin-top: 24px;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    min-height: 32px;
}

.comments-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

.comments-indicator i {
    font-size: 16px;
    color: var(--primary-color);
    margin-right: 2px;
}

.comments-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.comment-item:hover {
    box-shadow: var(--shadow);
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 12px;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

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

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 6px;
}

.role-badge.admin {
    background: var(--danger-color);
    color: white;
}

.role-badge.moderator {
    background: var(--warning-color);
    color: white;
}

.comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.comment-action-buttons {
    display: flex;
    gap: 8px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--gray-100);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 12px;
}

.comment-action-btn:hover {
    background: var(--gray-200);
    color: var(--text-color);
    transform: scale(1.1);
}

.comment-action-btn.edit-comment-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--info-color);
}

.comment-action-btn.delete-comment-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Comment Form */
.comment-form-section {
    margin-top: 20px;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.comment-form {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-input {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color var(--transition-normal);
    font-family: inherit;
    background: var(--white);
    color: var(--text-color);
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.btn-cancel:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-submit {
    padding: 8px 16px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Dark Mode Overrides */
[data-theme="dark"] .modern-answer-card {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .comments-section {
    background: var(--gray-200);
}

[data-theme="dark"] .comment-item {
    background: var(--gray-100);
}

[data-theme="dark"] .comment-form {
    background: var(--gray-100);
}

[data-theme="dark"] .comment-input {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--text-color);
}

[data-theme="dark"] .btn-cancel {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-answer-card {
        padding: 16px;
    }

    .answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .answer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .answer-actions {
        order: -1;
        width: 100%;
        justify-content: flex-start;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        text-align: center;
    }
}

/* Dislik
e Button Styles */
.modern-action-btn.disliked {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

.modern-action-btn:hover.disliked {
    background: var(--danger-color) !important;
    transform: translateY(-2px) scale(1.1);
}

.modern-action-btn[title="Beğenme"]:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Soru Kartı İç Boyut Ayarlaması */
.main-content-area .question-card,
.content-with-sidebar .main-content-area .question-card {
    margin: 18px 12px;
    max-width: calc(100% - 24px);
    position: relative;
    transform: scale(1);
    transform-origin: center;
    box-shadow: var(--shadow-sm);
}

/* Hover efektini ayarla */
.main-content-area .question-card:hover,
.content-with-sidebar .main-content-area .question-card:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Container'ın padding'ini ayarla */
.main-content-area {
    padding: 0 8px;
}

/* Responsive ayarlamalar */
@media (max-width: 768px) {

    .main-content-area .question-card,
    .content-with-sidebar .main-content-area .question-card {
        margin: 12px 8px;
        max-width: calc(100% - 16px);
        transform: scale(0.99);
    }

    .main-content-area {
        padding: 0 4px;
    }
}

@media (max-width: 576px) {

    .main-content-area .question-card,
    .content-with-sidebar .main-content-area .question-card {
        margin: 10px 6px;
        max-width: calc(100% - 12px);
        transform: scale(1.01);
    }

    .main-content-area {
        padding: 0 2px;
    }
}

/* Ana say
fa ve diğer sayfalarda soru kartları için özel ayarlar */
.container-fluid .question-card,
.container .question-card {
    margin: 18px 12px;
    max-width: calc(100% - 24px);
    transform: scale(1);
    transform-origin: center;
}

.container-fluid .question-card:hover,
.container .question-card:hover {
    transform: scale(1.02) translateY(-2px);
}

/* Kategori sayfası için özel ayarlar */
.content-with-sidebar .question-card {
    margin: 18px 12px;
    max-width: calc(100% - 24px);
    transform: scale(1);
    transform-origin: center;
}

.content-with-sidebar .question-card:hover {
    transform: scale(1.02) translateY(-2px);
}

/* Soru kartı içindeki card-body padding'ini ayarla */
.question-card .card-body {
    padding: var(--spacing-xl);
}

/* Soru kartının genel padding'ini artır */
.question-card {
    padding: var(--spacing-xl) !important;
}

/* Oy 
Verme Butonları Stilleri */
.vote-btn {
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius);
    margin: 0 2px;
}

.vote-btn:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.vote-btn.voted {
    color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.vote-btn.voted:hover {
    background: var(--primary-dark);
}

/* Thumbs up/down ikonları için özel stiller */
.vote-btn .fa-thumbs-up {
    color: var(--success-color);
}

.vote-btn .fa-thumbs-down {
    color: var(--danger-color);
}

.vote-btn.voted .fa-thumbs-up {
    color: white;
}

.vote-btn.voted .fa-thumbs-down {
    color: white;
}

/* Modern action butonları için oy stilleri */
.modern-action-btn.vote-btn {
    min-width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-action-btn.vote-btn.voted {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Dark mode için oy butonları */
[data-theme="dark"] .vote-btn {
    color: var(--text-muted);
}

[data-theme="dark"] .vote-btn:hover {
    background: var(--gray-200);
    color: var(--primary-color);
}

[data-theme="dark"] .vote-btn.voted {
    background: var(--primary-color);
    color: white;
}

/* Adm
in ve Moderatör Rozetleri */
.admin-badge,
.moderator-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    border: 2px solid #FFD700;
}

.admin-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.moderator-badge {
    background: linear-gradient(135deg, #4169E1, #1E90FF);
    color: white;
    border: 2px solid #4169E1;
}

.moderator-badge::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);
    animation: shimmer 4s infinite;
}

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

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }

    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

.admin-badge i,
.moderator-badge i {
    font-size: 1.1em;
    margin-right: 6px;
    position: relative;
    z-index: 2;
}

.admin-badge .badge-text,
.moderator-badge .badge-text {
    position: relative;
    z-index: 2;
}

.admin-badge:hover,
.moderator-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Admin crown ikonu için özel animasyon */
.admin-badge i.fa-crown {
    animation: crown-glow 2s ease-in-out infinite alternate;
}

@keyframes crown-glow {
    0% {
        text-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
    }

    100% {
        text-shadow: 0 0 15px rgba(139, 69, 19, 0.8), 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

/* Moderatör kalkan ikonu için özel animasyon */
.moderator-badge i.fa-shield-alt {
    animation: shield-pulse 2.5s ease-in-out infinite;
}

@keyframes shield-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Responsive tasarım */
@media (max-width: 768px) {

    .admin-badge,
    .moderator-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .admin-badge .badge-text,
    .moderator-badge .badge-text {
        display: none;
    }

    .admin-badge i,
    .moderator-badge i {
        margin-right: 0;
        font-size: 1.2em;
    }
}

/* Dark mode için özel stiller */
[data-theme="dark"] .admin-badge {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border-color: #FFD700;
    color: #2F1B14;
}

[data-theme="dark"] .moderator-badge {
    background: linear-gradient(135deg, #6495ED, #4169E1);
    border-color: #6495ED;
}