.category-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    border-left: 4px solid #3498db;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
}

.category-header__top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.category-header__icon {
    font-size: 32px;
    line-height: 1;
    margin-top: 2px;
}

.category-header__meta {
    flex: 1;
}

.category-header__title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #7b0431;
    letter-spacing: -0.01em;
}

.category-header__subtitle {
    color: #1e293b;
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.category-header__stats {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: #334155;
    margin-top: 0.45rem;
    font-weight: 600;
}

.category-header__stats strong {
    color: #0f172a;
}

.category-header__edit {
    align-self: center;
    font-size: 0.8rem;
    padding: 0.3rem 0.65rem;
}
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --page-bg: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5f5;
    --text-strong: #1f2937;
    --text-muted: #64748b;
    --accent: #0d9488;
    --accent-dark: #0f766e;
    --accent-soft: rgba(13, 148, 136, 0.12);
    --accent-secondary: #2563eb;
    --shadow-soft: 0 16px 32px rgba(15, 23, 42, 0.1);
    --shadow-hover: 0 18px 36px rgba(15, 23, 42, 0.14);
    --radius-lg: 18px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-text: #047857;
    --error-bg: rgba(248, 113, 113, 0.12);
    --error-text: #b91c1c;
}

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

html {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: var(--page-bg);
    color: var(--text-strong);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
.page-header h1,
.question-title,
.answers-header,
.post-answer-header,
.category-card .title,
.hero h1 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-strong);
}

.container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 1.6rem;
}

main.container {
    padding: 12px 15px;
}

/* ============================================
   HEADER & NAVIGATION - NEW DESIGN
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 1.5rem;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #1e3a8a;
    transition: color 0.15s ease;
}

.brand a:hover {
    color: #1d4ed8;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.desktop-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    border-radius: 999px;
    transition: all 0.15s ease;
    position: relative;
}

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

.desktop-nav .nav-link:hover {
    color: #1d4ed8;
    background: rgba(30, 64, 175, 0.08);
}

.desktop-nav .nav-link.active {
    font-weight: 600;
    color: #1e40af;
    border-bottom-color: #1e40af;
    background: rgba(30, 64, 175, 0.12);
}

.desktop-nav .nav-link:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 999px;
}

/* Desktop Auth Section */
.desktop-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-login,
.btn-signup {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: white;
    border: 1px solid #1e3a8a;
    color: #1e3a8a;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.1);
}

.btn-login:hover {
    background: #f8fafc;
    border-color: #1d4ed8;
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.15);
}

.btn-signup {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}

.btn-signup:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
    transform: translateY(-2px);
}

.btn-signup:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    color: #1f2937;
}

.user-dropdown-toggle:hover {
    border-color: #1e3a8a;
    background: #f8fafc;
}

.user-dropdown-toggle:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-name {
    font-weight: 500;
    color: #1f2937;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: #64748b;
    transition: transform 0.15s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    padding: 0.5rem 0;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e3a8a;
}

.dropdown-item i {
    width: 16px;
    color: #64748b;
    font-size: 0.85rem;
}

.dropdown-item:hover i {
    color: #1e3a8a;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.dropdown-form {
    margin: 0;
    padding: 0;
}

.dropdown-logout {
    color: #dc2626;
}

.dropdown-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.dropdown-logout i {
    color: #dc2626;
}

/* ============================================
   MOBILE MENU - FRESH CLEAN IMPLEMENTATION
   ============================================ */

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1e3a8a;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-toggle:hover {
    border-color: #1e3a8a;
    background: #f8fafc;
}

.menu-toggle:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Hamburger to X animation */
.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu Drawer - Future-Proof Implementation */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;  /* Changed from left: 0 to right: 0 */
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(15, 23, 42, 0.15);  /* Shadow on left side when open */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);  /* Changed from -100% to 100% (hide to the right) */
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    will-change: transform;
}

.mobile-menu-drawer.active {
    transform: translateX(0);  /* Slide in from right */
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
    min-height: 60px;
}

.brand-mobile {
    flex: 1;
}

.brand-mobile a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
    display: inline-block;
}

.brand-mobile a:hover {
    color: #1d4ed8;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.mobile-menu-close:hover {
    background: #e2e8f0;
    color: #1e3a8a;
}

.mobile-menu-close:active {
    background: #cbd5e1;
}

.mobile-menu-close:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.mobile-menu-open .share-buttons-mobile,
body.mobile-menu-open .share-buttons-desktop,
body.mobile-menu-open .floating-support-container {
    display: none !important;
}

/* Mobile Menu Items */
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    min-height: 48px;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus-visible {
    background: #f8fafc;
    color: #1e3a8a;
    outline: none;
}

.mobile-menu-item:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: -2px;
}

.mobile-menu-item.active {
    background: #eff6ff;
    color: #1e3a8a;
    border-left-color: #1e3a8a;
}

.mobile-menu-item i {
    width: 20px;
    min-width: 20px;
    color: #64748b;
    font-size: 1rem;
    text-align: center;
    transition: color 0.15s ease;
}

.mobile-menu-item:hover i,
.mobile-menu-item:focus-visible i {
    color: #1e3a8a;
}

.mobile-menu-item.active i {
    color: #1e3a8a;
}

.mobile-menu-item span {
    flex: 1;
}

/* Mobile Menu Divider */
.mobile-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 1.25rem;
    border: none;
}

/* Mobile Menu Buttons (Login/Sign Up) */
.mobile-menu-button {
    margin: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    justify-content: center;
}

.mobile-menu-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.mobile-menu-button-primary {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

.mobile-menu-button-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

/* Mobile Menu Form */
.mobile-menu-form {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
}

.mobile-menu-form button {
    width: 100%;
    padding: 0.875rem 1.25rem;
}

/* Mobile Menu Logout */
.mobile-menu-logout {
    color: #dc2626;
}

.mobile-menu-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.mobile-menu-logout i {
    color: #dc2626;
}

.mobile-menu-logout:hover i {
    color: #b91c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav,
    .desktop-auth {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-inner {
        padding: 0 1rem;
        height: 60px;
    }
    
    .brand a {
        font-size: 1.3rem;
    }
}

/* Hide old nav styles */
.nav-links:not(.desktop-nav),
.auth-links:not(.desktop-auth),
.header-actions {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.4);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.btn:not(.btn-primary):active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25),
                0 2px 4px rgba(37, 99, 235, 0.15);
}

.btn-primary::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 0.5s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35),
                0 4px 8px rgba(37, 99, 235, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-outline {
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-strong);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: linear-gradient(to bottom, rgba(13, 148, 136, 0.05), rgba(13, 148, 136, 0.08));
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15),
                0 2px 4px rgba(13, 148, 136, 0.1);
    transform: translateY(-1px);
}

.btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
    background: rgba(4, 84, 27, 0.82);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-ghost:hover {
    background: rgba(4, 84, 27, 0.9);
    border-color: rgba(37, 99, 235, 0.55);
}

main.container {
    padding: 12px 15px;
}

@media (max-width: 640px) {
    .category-grid {
        gap: 0.75rem;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .category-card {
        padding: 0.7rem 0.85rem;
        gap: 0.6rem;
    }

    .category-card__heading {
        gap: 0.45rem;
    }

    .category-card__icon {
        font-size: 22px;
    }

    .category-card__title {
        font-size: 0.95rem;
    }

    .category-card__subtitle {
        font-size: 0.82rem;
    }

    .category-card__count {
        font-size: 0.68rem;
        padding: 0.2rem 0.45rem;
    }

    .category-card__actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    main.container {
        padding: 10px 13px;
    }
}

@media (min-width: 1024px) {
    .category-grid,
    .tag-grid,
    .user-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hero {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: clamp(2.6rem, 5vw, 3.4rem);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.2vw, 3rem);
    margin-bottom: 0.85rem;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.features {
    margin-top: 2.6rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature-card,
.category-card,
.tag-card,
.user-card,
.auth-card,
.filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover,
.category-card:hover,
.tag-card:hover,
.user-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ask-layout {
    display: grid;
    gap: 1.6rem;
}

.ask-layout.single-column {
    max-width: 780px;
    margin: 0 auto;
}

.question-column {
    display: grid;
    gap: 1.4rem;
}

.question-form {
    display: grid;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 2.2rem;
}

.question-form label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-strong);
    margin-bottom: 0.4rem;
    display: block;
}

.question-form .btn-small {
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
}

.question-form input:not([type="submit"]),
.question-form select {
    width: 100%;
    font-size: 0.95rem;
}

.question-form small {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

.suggested-tags {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(37, 99, 235, 0.06));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 1.1rem 1.3rem;
    display: grid;
    gap: 0.9rem;
}

.suggested-tags__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-strong);
}

.suggested-tags__header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggested-tags__header span::before {
    content: '✨';
    font-size: 1rem;
}

.suggested-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    min-height: 32px;
}

.suggested-tags__list button {
    border: 1px solid rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-secondary);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
}

.suggested-tags__list button:hover {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.suggested-tags__empty {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-style: italic;
    padding: 0.3rem 0;
}

.field-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 720px) {
    .field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.field small {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.empty-state {
    background: var(--surface);
    border: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    display: grid;
    gap: 0.6rem;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid var(--border);
}

.page-header h1 {
    font-size: 1.9rem;
    color: var(--text-strong);
    font-weight: 700;
}

.page-header .subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 1rem;
}

.filters {
    margin-bottom: 1.6rem;
    padding: 1.4rem 1.6rem;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.filter-actions .btn {
    flex: 0 0 auto;
    min-width: 140px;
}

.filter-form input,
.filter-form select,
.auth-card input,
.auth-card textarea,
.question-form input,
.question-form select,
.question-form textarea {
    flex: 1 1 220px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* EasyMDE Markdown Editor Styling */
.EasyMDEContainer {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.EasyMDEContainer .CodeMirror {
    min-height: 220px;
    background: var(--surface);
    color: var(--text-strong);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    border: none;
}

.EasyMDEContainer .CodeMirror-scroll {
    min-height: 220px;
}

.EasyMDEContainer .CodeMirror-cursor {
    border-left: 2px solid var(--accent);
}

.EasyMDEContainer .CodeMirror-lines {
    padding: 1rem 1.2rem;
}

.EasyMDEContainer .editor-toolbar {
    background: var(--surface-muted);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    opacity: 1;
}

.EasyMDEContainer .editor-toolbar:hover {
    opacity: 1;
}

.EasyMDEContainer .editor-toolbar button {
    color: var(--text-strong);
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.EasyMDEContainer .editor-toolbar button:hover,
.EasyMDEContainer .editor-toolbar button.active {
    background: rgba(13, 148, 136, 0.12);
    color: var(--accent);
}

.EasyMDEContainer .editor-toolbar i.separator {
    border-left: 1px solid var(--border);
    margin: 0 0.4rem;
}

.EasyMDEContainer .editor-preview,
.EasyMDEContainer .editor-preview-side {
    background: var(--surface);
    padding: 1.2rem;
}

.EasyMDEContainer .CodeMirror-placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.filter-form input:focus,
.filter-form select:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.question-form input:focus,
.question-form select:focus,
.question-form textarea:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.filter-form input::placeholder,
.auth-card input::placeholder,
.question-form textarea::placeholder {
    color: rgba(100, 116, 139, 0.58);
}

.category-grid,
.tag-grid,
.user-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.category-card {
    padding: 0.95rem 1rem;
    border-left: 4px solid var(--category-accent, #3498db);
    display: grid;
    gap: 0.75rem;
}

.category-card__header {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: flex-start;
}

.category-card__heading {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    flex: 1;
}

.category-card__icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.category-card__text {
    display: grid;
    gap: 0.25rem;
}

.category-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0c0323;
    letter-spacing: -0.01em;
}

.category-card__subtitle {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #475569;
}

.category-card__count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.category-card__count strong {
    color: inherit;
}

.category-card__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-compact {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.category-card__edit {
    color: #475569;
    font-size: 0.9rem;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
}

.category-card__edit:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #1f2937;
}

.tag-name {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.question-list {
    display: grid;
    gap: 0;
}

@media (max-width: 640px) {
    .question-list {
        gap: 0;
    }
}

/* Compact question card layout - Option 3 (Hybrid) */
.question-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    margin-bottom: 0.4rem;
}

.question-card:hover {
    border-color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
    transform: translateY(-1px);
}

.question-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.question-card__title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.question-card__title a:hover {
    color: #1e3a8a;
}

.question-badge {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    vertical-align: middle;
    line-height: 1;
}

.question-badge--announcement {
    color: #dc2626;
}

.question-badge--pinned {
    color: #8b5cf6;
}

.question-badge--featured {
    color: #f59e0b;
}

/* Discussion Badges - Inline badges before title (like question badges) */
.discussion-badge {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    vertical-align: middle;
    line-height: 1;
}

.discussion-badge--announcement {
    color: #dc2626;
}

.discussion-badge--pinned {
    color: #8b5cf6;
}

.question-card--highlighted {
    border-left: 3px solid #1e3a8a;
    background: #f1f5f9;
}

.question-card__preview {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
}

.question-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.2rem;
}

.question-card__meta-combined {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    min-width: 0;
}

.question-card__stats {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.8rem;
}

.stat svg {
    width: 13px;
    height: 13px;
    opacity: 0.75;
    flex-shrink: 0;
}

.stat--votes {
    color: #1e3a8a;
    font-weight: 600;
}

.stat--answers {
    color: var(--text-muted);
}

.stat--answers.has-answers {
    color: #059669;
    font-weight: 600;
}

.question-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.category-badge,
.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 5px;
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(30, 58, 138, 0.15);
}

.author-link {
    color: var(--text-strong);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}

.author-link:hover {
    color: #1e3a8a;
}

.separator {
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 0.1rem;
    font-size: 0.7rem;
}

.time-ago {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-secondary);
    font-size: 0.85rem;
    text-decoration: none;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-card .avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(140deg, rgba(13, 148, 136, 0.18), rgba(37, 99, 235, 0.18));
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 600;
}

.badges {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    color: white;
}

.badge-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-silver { background: linear-gradient(135deg, #cbd5f5, #94a3b8); }
.badge-bronze { background: linear-gradient(135deg, #f97316, #ea580c); }

.auth-container {
    display: flex;
    justify-content: center;
    padding: 4.2rem 0;
}

.auth-card {
    width: min(440px, 100%);
    display: grid;
    gap: 1.1rem;
}

.auth-card .subtitle {
    color: var(--text-muted);
}

.auth-card form {
    display: grid;
    gap: 0.95rem;
}

.auth-card label {
    font-weight: 600;
    color: var(--text-muted);
}

.auth-card .form-actions {
    display: flex;
    gap: 0.8rem;
}

.site-footer {
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
    padding: 1.75rem 0 1.25rem;
    color: var(--text-muted);
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

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

.footer-link:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.footer-link:hover i {
    opacity: 1;
}

.footer-separator {
    color: var(--border);
    font-weight: 300;
    padding: 0 0.15rem;
    user-select: none;
    font-size: 0.75rem;
}

.footer-copyright {
    margin-top: 0.25rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
    width: 100%;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-copyright strong {
    color: var(--text-strong);
    font-weight: 600;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 5px;
        padding: 1.5rem 0 1rem;
    }
    
    .footer-links {
        gap: 0.4rem;
    }
    
    .footer-link {
        font-size: 0.8125rem;
        padding: 0.3rem 0.45rem;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-copyright {
        padding-top: 0.75rem;
    }
    
    .footer-copyright p {
        font-size: 0.75rem;
    }
}

.alerts-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 40px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .alerts-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}

.alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border-left: 4px solid;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-wrap: nowrap;
}

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

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.alert-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.alert-message {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #1a202c;
    word-wrap: break-word;
    display: block;
    white-space: normal;
}

.alert-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: #718096;
    padding: 0;
    margin-left: auto;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a202c;
}

.alert-success {
    background: #f0fdf4;
    border-left-color: #10b981;
    border-top: 1px solid #d1fae5;
    border-right: 1px solid #d1fae5;
    border-bottom: 1px solid #d1fae5;
}

.alert-success .alert-icon {
    background: #10b981;
    color: #ffffff;
}

.alert-success .alert-message {
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    border-top: 1px solid #fee2e2;
    border-right: 1px solid #fee2e2;
    border-bottom: 1px solid #fee2e2;
}

.alert-error .alert-icon {
    background: #ef4444;
    color: #ffffff;
}

.alert-error .alert-message {
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    border-top: 1px solid #dbeafe;
    border-right: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
}

.alert-info .alert-icon {
    background: #3b82f6;
    color: #ffffff;
}

.alert-info .alert-message {
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    border-left-width: 5px;
    border-top: 2px solid #fbbf24;
    border-right: 2px solid #fbbf24;
    border-bottom: 2px solid #fbbf24;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25), 0 2px 6px rgba(245, 158, 11, 0.15);
    animation: slideInRight 0.4s ease-out, pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25), 0 2px 6px rgba(245, 158, 11, 0.15);
    }
    50% {
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35), 0 4px 8px rgba(245, 158, 11, 0.25);
    }
}

.alert-warning .alert-icon {
    background: #f59e0b;
    color: #ffffff;
    font-size: 16px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    animation: bounceIcon 1s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.alert-warning .alert-message {
    color: #92400e;
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .header-inner {
        gap: 0.8rem;
    }

    .header-actions {
        position: fixed;
        top: 74px;
        left: 1.5rem;
        right: 1.5rem;
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);
        padding: 1.6rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.4rem;
        transform: translateY(-130%);
        transition: transform 0.25s ease;
    }

    .header-actions.is-open {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .auth-links .btn,
    .auth-links form {
        width: 100%;
    }

    .filters,
    .auth-card,
    .hero {
        padding: 1.4rem;
    }

    .question-card {
        padding: 0.85rem 1rem;
        gap: 0.55rem;
    }

    .question-card__title {
        font-size: 1rem;
    }

    .question-card__preview {
        font-size: 0.85rem;
    }

    .question-card__footer {
        font-size: 0.75rem;
        gap: 0.6rem;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .question-card__meta-combined {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.4rem;
    }

    .question-card__stats {
        gap: 0.75rem;
    }

    .question-card__meta {
        gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    main.container {
        padding: 2.8rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .brand {
        gap: 0.9rem;
    }

    .page-header {
        align-items: flex-start;
        margin-bottom: 1.6rem;
        padding-bottom: 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header .subtitle {
        font-size: 0.88rem;
    }

    .question-card {
        padding: 0.75rem 0.9rem;
    gap: 0.5rem;
    }

    .question-card__title {
        font-size: 0.95rem;
    }

    .question-card__preview {
        font-size: 0.82rem;
    }

    .question-card__footer {
        font-size: 0.72rem;
        align-items: center;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .question-card__meta-combined {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.7rem;
    }

    .question-card__stats {
        gap: 0.7rem;
    }

    .stat {
        font-size: 0.75rem;
    }

    .stat svg {
        width: 12px;
        height: 12px;
    }

    .question-card__meta {
        gap: 0.35rem;
        font-size: 0.72rem;
    }

    .category-badge {
        font-size: 0.68rem;
        padding: 0.12rem 0.45rem;
    }

    .auth-card .form-actions,
    .question-form .form-actions {
        flex-direction: column;
    }

    .btn,
    .btn-outline,
    .btn-primary {
        width: 100%;
    }

    .btn svg {
        width: 16px;
        height: 16px;
    }

    .filters {
        padding: 1rem;
    }

    .filter-form {
        gap: 0.7rem;
    }

    .filter-form input,
    .filter-form select {
        font-size: 0.9rem;
    }
    
    /* Question Detail Page - Mobile Responsive */
    .question-detail {
        padding: 1rem;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .question-title-card {
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }
    
    .question-title {
        font-size: 1.25rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }
    
    .question-author-row {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .question-author-info {
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .question-body-card {
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }
    
    .question-body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .question-voting {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .question-meta-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Hide "Login to Reply" button on mobile */
    .question-reply-chip {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    /* Show "answers" and "views" with icons and numbers only (no text) on mobile */
    .question-meta-stats .meta-stat {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.85rem !important;
        color: #475569 !important;
        line-height: 1.2 !important;
    }
    
    /* Hide "answers" and "views" text, show only icon + number */
    .question-meta-stats .meta-stat .meta-stat-text {
        display: none !important;
    }
    
    .question-meta-stats .meta-stat svg {
        display: inline-block !important;
        width: 14px !important;
        height: 14px !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-shrink: 0 !important;
        color: #1e3a8a !important;
    }
    
    /* Make question voting and meta stats on same row on mobile */
    .question-voting {
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .question-voting .vote-controls {
        flex-shrink: 0;
    }
    
    .question-meta-stats {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
        margin-top: 0;
    }
    
    /* Hide reputation and badge from "Asked by" section on mobile */
    .question-author-reputation,
    .question-author-badge {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Hide "Helpful" and "Review" text, show icons only on mobile */
    .vote-text {
        display: none;
    }
    
    .vote-btn {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .vote-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .vote-count {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }
    
    .vote-controls {
        gap: 0.4rem;
    }
    
    /* Answer vote controls - Make ALL in one row: Vote buttons → Date → Reply button */
    .answer-vote-controls {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.2rem !important;  /* Reduced from 0.5rem to 0.2rem */
        width: 100%;
    }
    
    /* Vote buttons stay first - Reduce spacing between buttons and count */
    .answer-vote-controls .vote-btn {
        order: 0;
        padding: 0.4rem !important;  /* Reduced from 0.5rem */
        min-width: 36px !important;  /* Reduced from 40px */
        margin: 0 !important;
    }
    
    .answer-vote-controls .vote-count {
        order: 0;
        padding: 0 0.15rem !important;  /* Reduced from 0 0.25rem */
        margin: 0 !important;
        font-size: 0.8rem !important;
    }
    
    /* Date & Time comes second - Minimize spacing */
    .answer-date-mobile-inline {
        order: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        font-size: 0.65rem !important;  /* Reduced from 0.7rem */
        color: #64748b !important;
        white-space: nowrap !important;
        margin-left: 0.15rem !important;  /* Reduced from 0.25rem */
        margin-right: 0.15rem !important;  /* Reduced from 0.25rem */
        flex-shrink: 0;
        padding: 0.2rem 0.35rem !important;  /* Reduced from 0.25rem 0.5rem */
        background: #f8fafc;
        border-radius: 4px;
    }
    
    /* Reply button comes last - Remove auto margin, keep inline */
    .answer-reply-btn {
        order: 2 !important;
        font-size: 0.65rem !important;  /* Reduced from 0.7rem */
        padding: 0.3rem 0.4rem !important;  /* Reduced from 0.35rem 0.5rem */
        gap: 0.2rem !important;  /* Reduced from 0.25rem */
        flex-shrink: 0;
        white-space: nowrap;
        margin-left: 0 !important;  /* Removed margin-left: auto */
        margin-right: 0 !important;
    }
    
    .answer-reply-btn svg {
        width: 11px !important;  /* Reduced from 12px */
        height: 11px !important;  /* Reduced from 12px */
    }
    
    .answer-reply-btn span {
        font-size: 0.65rem !important;  /* Reduced from 0.7rem */
    }
    
    /* Reduce vote button icons size in answer controls */
    .answer-vote-controls .vote-btn svg {
        width: 18px !important;  /* Reduced from 20px */
        height: 18px !important;  /* Reduced from 20px */
    }
    
    /* Hide desktop date on mobile */
    .answer-date-desktop {
        display: none !important;
    }
    
    /* Reduce answer date font size on mobile */
    .author-date-mobile-only,
    .answer-time {
        font-size: 0.7rem;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.75rem 0;
        gap: 0.35rem;
    }
    
    /* Answer Cards Mobile */
    .answer-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .answer-content-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .answer-author-sidebar {
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .answer-content {
        width: 100%;
    }
    
    .answer-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .answer-vote-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Container Mobile */
    main.container {
        padding: 1rem 0;
    }
}

/* Very Small Mobile Screens (480px and below) */
@media (max-width: 480px) {
    .question-title-card {
        padding: 0.875rem 1rem;
    }
    
    .question-title {
        font-size: 1.1rem;
        line-height: 1.45;
    }
    
    .question-detail {
        padding: 0.875rem;
        gap: 0.875rem;
    }
    
    .question-body-card {
        padding: 0.875rem 1rem;
    }
    
    .question-body {
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .question-author-info {
        font-size: 0.8rem;
    }
    
    .author-label {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }
    
    .question-date {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ==========================================
   QUESTION DETAIL PAGE
   ========================================== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--accent);
    font-weight: 600;
}

.breadcrumb-current {
    color: var(--text-strong);
    font-weight: 500;
}

/* Question Detail */
.question-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-bottom: 2rem;
    display: grid;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.question-title-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(30, 58, 138, 0.25);
    position: relative;
    overflow: hidden;
    border: none;
}

.question-title-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.question-title-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.question-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-shadow: 0 2px 10px rgba(14, 116, 144, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    max-width: 100%;
}

.question-author-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.06) 0%, rgba(241, 245, 249, 0.8) 100%);
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.08);
}

.question-author-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.author-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.question-author-name {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.question-author-name:hover {
    color: #1e40af;
    text-decoration: underline;
}

.question-author-reputation {
    background: linear-gradient(135deg, #fef3c7 0%, #facc15 100%);
    color: #78350f;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(250, 204, 21, 0.6);
}

.question-author-badge {
    font-size: 1.1rem;
}

.question-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface);
    color: var(--accent-dark);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.question-date::before {
    content: "🕒";
}

.question-body-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-radius: 16px;
    border: 1px solid rgba(30, 58, 138, 0.12);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.08);
    transition: all 0.3s ease;
}

.question-body-card:hover {
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.12);
    border-color: rgba(30, 58, 138, 0.18);
}

.question-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-strong);
    margin-bottom: 1.3rem;
    font-weight: 500;
}

.question-body strong {
    font-weight: 600;
    color: var(--text-strong);
}

.question-body em {
    font-style: italic;
}

.question-body code {
    background: rgba(15, 23, 42, 0.08);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-secondary);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.question-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Professional color scheme - Blue-based with subtle variations */
.tag-pill:nth-child(6n + 1) {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-color: rgba(37, 99, 235, 0.2);
}

.tag-pill:nth-child(6n + 2) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.2);
}

.tag-pill:nth-child(6n + 3) {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #5b21b6;
    border-color: rgba(139, 92, 246, 0.2);
}

.tag-pill:nth-child(6n + 4) {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.2);
}

.tag-pill:nth-child(6n + 5) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.2);
}

.tag-pill:nth-child(6n) {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
    border-color: rgba(236, 72, 153, 0.2);
}

.tag-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    border-color: currentColor;
    opacity: 0.9;
}

/* Voting System - Compact */
.question-voting {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 2px solid rgba(30, 58, 138, 0.1);
    border-bottom: 2px solid rgba(30, 58, 138, 0.1);
    margin: 1rem 0;
}

.vote-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vote-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.15rem;
    color: var(--text-muted);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vote-text {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.vote-btn svg {
    width: 19px;
    height: 19px;
}

.vote-btn:hover {
    color: var(--accent);
}

.vote-btn.voted-up {
    color: var(--accent);
}

.vote-btn.voted-down {
    color: var(--error-text);
}

.vote-count {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-strong);
    min-width: 24px;
    text-align: center;
}

.question-voting .vote-controls {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(241, 245, 249, 0.6) 100%);
    border: 1.5px solid rgba(30, 58, 138, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.12);
}

.question-voting .vote-btn {
    padding: 0.3rem 0.55rem;
    border-radius: 12px;
    color: var(--text-muted);
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    gap: 0.35rem;
}

.question-voting .vote-btn svg {
    width: 19px;
    height: 19px;
}

.question-voting .vote-btn.vote-up {
    color: #059669;
}

.question-voting .vote-btn.vote-down {
    color: #dc2626;
}

.question-voting .vote-btn:hover {
    background: rgba(30, 58, 138, 0.12);
    color: #1e3a8a;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
    transform: translateY(-2px);
}

.question-voting .vote-btn.vote-up:hover {
    background: rgba(5, 150, 105, 0.15);
    color: #047857;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

.question-voting .vote-btn.vote-down:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.question-voting .vote-btn.voted-up {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #047857;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.question-voting .vote-btn.voted-down {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #b91c1c;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.question-voting .vote-count {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(241, 245, 249, 0.8) 100%);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 2.8rem;
    text-align: center;
    box-shadow: inset 0 0 0 1.5px rgba(30, 58, 138, 0.2);
    color: #1e3a8a;
    border: 1px solid rgba(30, 58, 138, 0.15);
}

.question-meta-stats {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.meta-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #475569;
    white-space: nowrap;
    font-weight: 500;
}

.meta-stat svg {
    color: #1e3a8a;
    opacity: 0.8;
}

.question-reply-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.question-reply-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.35);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.question-reply-chip svg {
    display: block;
}

.question-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.question-actions form {
    display: inline;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-strong);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.action-btn--danger:hover {
    border-color: var(--error-text);
    color: var(--error-text);
}

/* Answers Section */
.answers-section {
    margin-bottom: 2rem;
}

.answers-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(30, 58, 138, 0.15);
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answers-list .answer-card:nth-child(odd) {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.06) 0%, rgba(241, 245, 249, 0.9) 50%, #ffffff 100%);
    border-left: 4px solid #1e3a8a;
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.15);
    margin-right: 1.25rem;
}

.answers-list .answer-card:nth-child(even) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(239, 246, 255, 0.9) 50%, #ffffff 100%);
    border-left: 4px solid #3b82f6;
    border-right: none;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.15);
    margin-left: 1.25rem;
}

.answers-list .answer-card:nth-child(even):hover {
    transform: translateX(-2px);
}

.answer-card:nth-child(odd):hover {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .answers-list .answer-card:nth-child(odd) {
        margin-right: 0.9rem;
        margin-left: 0.2rem;
        transform: none;
    }

    .answers-list .answer-card:nth-child(even) {
        margin-left: 0.9rem;
        margin-right: 0.2rem;
        border-right: 4px solid #d712b7;
        transform: none;
    }
}

.answer-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.answer-card:hover {
    border-left-color: var(--accent);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08);
    transform: translateX(2px);
}

/* Alternating attractive colors */
.answer-card:nth-child(odd) {
    background: linear-gradient(to right, rgba(30, 58, 138, 0.05) 0%, rgba(241, 245, 249, 0.7) 50%, #ffffff 100%);
    border-left-color: #1e3a8a;
}

.answer-card:nth-child(even) {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05) 0%, rgba(239, 246, 255, 0.7) 50%, #ffffff 100%);
    border-left-color: #3b82f6;
}

/* Best Answer - Special Styling */
.answer-accepted {
    border-left: 4px solid #059669;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(209, 250, 229, 0.4) 30%, #ffffff 100%) !important;
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.2) !important;
    border: 1px solid rgba(5, 150, 105, 0.2) !important;
}

.accepted-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.accepted-badge svg {
    width: 14px;
    height: 14px;
}

.answer-content-wrapper {
    display: flex;
    gap: 1rem;
}

/* User Profile Sidebar - Left Side */
.answer-author-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    flex-shrink: 0;
    padding-top: 0.3rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    border: 2px solid white;
}

.author-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0369a1;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    word-break: break-word;
    transition: color 0.2s;
}

.author-name:hover {
    color: #00175b;
    text-decoration: underline;
}

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

/* Avatar Colors by Reputation Level - Same as before */
.avatar-member {
    background: linear-gradient(135deg, #00175b 0%, #043c07 100%);
    box-shadow: 0 2px 8px rgba(0, 23, 91, 0.3);
}

.avatar-trusted {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.avatar-veteran {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.avatar-expert {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.5);
    border-color: #fbbf24;
}

.answer-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1f2937;
    margin-bottom: 0.8rem;
}

.answer-body p {
    margin-bottom: 0.6rem;
}

.answer-body strong {
    font-weight: 600;
    color: var(--text-strong);
}

.answer-body ul, .answer-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.answer-body code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
    border: 1px solid #e5e7eb;
}

/* Answer Attachment */
.answer-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: all 0.2s;
}

.answer-attachment:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #ccfbf1 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}

.answer-attachment svg {
    color: var(--accent);
    flex-shrink: 0;
}

.answer-attachment .attachment-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.answer-attachment .attachment-link:hover {
    color: #0d9488;
    text-decoration: underline;
}

.answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    border-top: 1px solid #e5e7eb;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer Left - Reputation & Badge */
.answer-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

/* Hide mobile avatar/name on desktop */
.author-avatar-mobile,
.author-name-mobile {
    display: none;
}

/* Mobile: Show report button in sidebar, date below votes */
@media (max-width: 768px) {
    /* Show report button in sidebar beside badge */
    .answer-author-sidebar .report-btn-mobile,
    .answer-author-sidebar button.report-btn-mobile,
    .answer-author-sidebar .report-btn.report-btn-mobile {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        margin-left: 0.25rem !important;
    }

    /* Hide desktop report button */
    .answer-time .report-btn-desktop {
        display: none !important;
    }

    /* Show date below votes row - positioned correctly */
    .answer-date-mobile-row {
        display: flex !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
        border-top: 1px solid #e5e7eb !important;
        order: 2 !important; /* After vote-controls */
    }

    .answer-date-mobile {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.25rem !important;
        background: var(--surface) !important;
        color: var(--accent-dark) !important;
        padding: 0.15rem 0.45rem !important;
        border-radius: 999px !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        border: 1px solid rgba(13, 148, 136, 0.15) !important;
    }

    .answer-date-mobile::before {
        content: "🕒";
        font-size: 0.75rem;
        margin-right: 0.15rem;
    }

    /* Hide desktop date on mobile */
    .answer-date-desktop {
        display: none !important;
    }

    /* Hide answer-time on mobile (contains desktop date/report) */
    .answer-time {
        display: none !important;
    }

    .author-date-mobile,
    .author-date-mobile-only,
    .author-date-sidebar-mobile {
        display: none !important;
    }

    /* Ensure vote-controls come first, then date row */
    .answer-vote-controls {
        order: 1 !important;
    }

    .answer-date-mobile-row {
        order: 2 !important;
    }
}

/* Desktop: Hide mobile elements, show desktop date and report button */
@media (min-width: 769px) {
    /* Hide mobile report button in sidebar */
    .answer-author-sidebar .report-btn-mobile,
    .answer-author-sidebar button.report-btn-mobile {
        display: none !important;
    }

    /* Show desktop report button */
    .answer-time .report-btn-desktop {
        display: inline-flex !important;
    }

    /* Hide mobile date inline and other mobile date elements */
    .answer-date-mobile-inline,
    .answer-date-mobile-row,
    .answer-date-mobile {
        display: none !important;
    }

    .author-date-mobile,
    .author-date-mobile-only,
    .author-date-sidebar-mobile {
        display: none !important;
    }

    /* Show desktop answer-time */
    .answer-time {
        display: flex !important;
    }

    /* Show desktop date */
    .answer-date-desktop {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: var(--surface);
        color: var(--accent-dark);
        padding: 0.25rem 0.65rem;
        border-radius: 999px;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
    }

    .answer-date-desktop::before {
        content: "🕒";
    }
}

/* Desktop: Hide reputation and badge */
@media (min-width: 769px) {
    /* Hide desktop reputation/badge */
    .author-reputation-sidebar-desktop,
    .author-badge-sidebar-desktop {
        display: none !important;
    }

    /* Hide mobile reputation/badge on desktop */
    .author-reputation-sidebar-mobile,
    .author-badge-sidebar-mobile {
        display: none !important;
    }

    /* Hide old sidebar reputation/badge on desktop */
    .author-reputation-sidebar,
    .author-badge-sidebar {
        display: none !important;
    }
}

/* Mobile: Show sidebar reputation/badge (already in mobile media query) */
@media (max-width: 768px) {
    /* Hide desktop reputation/badge on mobile */
    .author-reputation-sidebar-desktop,
    .author-badge-sidebar-desktop {
        display: none !important;
    }

    /* Hide old sidebar reputation/badge on mobile */
    .author-reputation-sidebar,
    .author-badge-sidebar {
        display: none !important;
    }
}

.author-reputation-inline {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid #fbbf24;
}

.author-badge-inline {
    font-size: 0.8rem;
    line-height: 1;
}

.answer-time {
    font-size: 0.8rem;
    color: #1c0106;
    white-space: nowrap;
}

.answer-admin-actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.answer-admin-actions form {
    margin: 0;
}

.answer-admin-delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(220, 38, 38, 0.24));
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #991b1b;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.answer-admin-delete:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(239, 68, 68, 0.32));
    color: #7f1d1d;
}

.answer-admin-delete:focus-visible {
    outline: 2px solid rgba(220, 38, 38, 0.35);
    outline-offset: 2px;
}

/* Compact Voting in Footer */
.answer-vote-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(15, 23, 42, 0.05);
    padding: 0.25rem 0.45rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.32);
}

.answer-vote-controls .vote-btn {
    padding: 0.22rem 0.45rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
}

.answer-vote-controls .vote-btn:hover {
    transform: translateY(-1px);
}

.answer-vote-controls .vote-up {
    color: #10b981;
}

.answer-vote-controls .vote-up:hover {
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
}

.answer-vote-controls .vote-down {
    color: #ef4444;
}

.answer-vote-controls .vote-down:hover {
    color: #dc2626;
    background: rgba(248, 113, 113, 0.1);
}

.answer-vote-controls .vote-btn svg {
    display: block;
    width: 17px;
    height: 17px;
}

.vote-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.answer-vote-controls .vote-text {
    font-size: 0.76rem;
}

.answer-vote-controls .vote-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    min-width: 20px;
    text-align: center;
    padding: 0 0.2rem;
}

.answer-vote-controls .answer-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 6, 119, 0.35);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(31, 6, 119, 0.12) 100%);
    color: #1f0677;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(31, 6, 119, 0.12);
}

.answer-vote-controls .answer-reply-btn svg {
    width: 15px;
    height: 15px;
}

.answer-vote-controls .answer-reply-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24) 0%, rgba(31, 6, 119, 0.18) 100%);
    transform: translateY(-1px);
    color: #230b84;
}

.answer-vote-controls .answer-reply-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(31, 6, 119, 0.18);
}


.answer-reply-reference {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(224, 242, 254, 0.92) 100%);
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.answer-reply-reference::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.12));
    opacity: 0.5;
    pointer-events: none;
}

.answer-reply-reference .reply-reference-toggle {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: none;
    border: none;
    color: #660336;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0;
}

.answer-reply-reference .reply-reference-toggle svg {
    width: 16px;
    height: 16px;
    color: #0f766e;
    transition: transform 0.25s ease;
}

.answer-reply-reference .reply-reference-body {
    position: relative;
    z-index: 2;
    margin-top: 0.65rem;
    transition: all 0.25s ease;
}

.answer-reply-reference .reply-reference-body blockquote {
    margin: 0;
    font-size: 0.89rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.65);
    padding: 0.65rem 0.85rem;
    border-left: 3px solid #0d9488;
    border-radius: 10px;
    line-height: 1.55;
}

.answer-reply-reference[data-collapsed="true"] .reply-reference-body {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

.answer-reply-reference[data-collapsed="true"] .reply-reference-toggle svg {
    transform: rotate(-90deg);
}

.answer-reply-reference.is-open .reply-reference-body {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
}

.answer-reply-reference.is-open .reply-reference-toggle svg {
    transform: rotate(0deg);
}

.answer-reply-reference:hover {
    border-color: rgba(14, 165, 233, 0.42);
    box-shadow: 0 18px 32px rgba(14, 165, 233, 0.12);
}


.reply-draft-container {
    margin-bottom: 1.1rem;
}

.reply-draft-card {
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.9) 0%, rgba(236, 233, 254, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.18);
    overflow: hidden;
}

.reply-draft-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem 0.4rem;
}

.reply-draft-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.reply-draft-toggle svg {
    width: 16px;
    height: 16px;
    color: #1d4ed8;
    transition: transform 0.25s ease;
}

.reply-draft-container[data-collapsed="true"] .reply-draft-toggle svg {
    transform: rotate(-90deg);
}

.reply-draft-clear {
    background: rgba(239, 68, 68, 0.15);
    border: none;
    color: #b91c1c;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-draft-clear:hover {
    background: rgba(239, 68, 68, 0.25);
}

.reply-draft-body {
    padding: 0 0.85rem 0.85rem;
    transition: all 0.25s ease;
}

.reply-draft-body blockquote {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.75);
    padding: 0.65rem 0.8rem;
    border-left: 3px solid #1d4ed8;
    border-radius: 12px;
}

.reply-draft-container[data-collapsed="true"] .reply-draft-body {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding-bottom: 0;
}

.reply-draft-container.is-open .reply-draft-body {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
}


/* Post Answer Section */
.post-answer-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.post-answer-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(30, 58, 138, 0.15);
}

.answer-guidelines {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.answer-guidelines strong {
    color: var(--accent-dark);
}

.answer-form label {
    display: block;
    font-weight: 500;
    color: var(--text-strong);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.answer-form label .required {
    color: var(--error-text);
}

.answer-form small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.answer-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.answer-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.file-upload-section {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface-muted);
    border: 2px dashed var(--border);
    border-radius: 8px;
}

.file-upload-section label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
    margin-bottom: 0.3rem;
}

.file-upload-section label:hover {
    color: var(--accent-dark);
}

.file-input {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.file-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--surface);
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.file-preview.active {
    display: block;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--accent-soft);
    border-radius: 4px;
}

.file-preview-item svg {
    color: var(--accent);
}

.file-preview-remove {
    margin-left: auto;
    color: var(--error-text);
    cursor: pointer;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Login Prompt */
.login-prompt {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.login-prompt p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Mobile Optimizations for Question Detail */
@media (max-width: 640px) {
    .category-header {
        padding: 0.7rem 0.85rem;
        margin-bottom: 0.9rem;
        border-radius: 8px;
    }

    .category-header__top {
        gap: 0.6rem;
    }

    .category-header__icon {
        font-size: 26px;
    }

    .category-header__title {
        font-size: 0.98rem;
        margin-bottom: 4px;
    }

    .category-header__subtitle {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .category-header__stats {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }

    .category-header__edit {
        display: none;
    }

    main.container {
        padding: 10px 13px;
    }

    .breadcrumb {
        font-size: 0.82rem;
        padding: 0.5rem 0;
        gap: 0.3rem;
    }

    .question-detail {
        padding: 0.9rem;
        margin-bottom: 0.9rem;
        gap: 1rem;
    }

    .question-title-card {
        padding: 12px;
        border-radius: 16px;
    }

    .question-title {
        font-size: 1.3rem;
        line-height: 1.35;
    }

    .question-author-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
        padding: 0.75rem 0.85rem;
    }

    .question-author-info {
        font-size: 0.82rem;
        gap: 0.45rem;
    }

    .author-label {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .question-date {
        padding: 0.2rem 0.55rem;
        font-size: 0.78rem;
        box-shadow: none;
    }

    .question-body {
        font-size: 0.92rem;
        margin-bottom: 0.85rem;
        font-weight: 500;
    }

    .question-tags {
        gap: 0.4rem;
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }

    .tag-pill {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    .question-voting {
        gap: 0.6rem;
        padding: 0.55rem 0;
        margin-bottom: 0.6rem;
        flex-wrap: nowrap;
    }

    .question-voting .vote-controls {
        flex-wrap: nowrap;
        gap: 0.3rem;
        padding: 0.2rem 0.3rem;
    }

    .question-voting .vote-btn {
        padding: 0.18rem 0.3rem;
        gap: 0.22rem;
    }

    .question-voting .vote-btn svg {
        width: 16px;
        height: 16px;
    }

    .vote-text {
        font-size: 0.7rem;
    }

    .question-voting .vote-count {
        font-size: 0.76rem;
        min-width: 2.3rem;
        padding: 0.18rem 0.45rem;
    }

    .question-meta-stats {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .meta-stat {
        font-size: 0.78rem;
        gap: 0.25rem;
    }

    .question-reply-chip {
        width: auto;
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }

    /* Answer Cards - Mobile */
    .answers-list {
        gap: 0.8rem;
    }

    .answer-card {
        padding: 0.6rem 0.8rem;
        border-radius: 6px;
    }

    .answer-content-wrapper {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* User Profile - Show at top on Mobile */
    .answer-author-sidebar {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        align-items: center;
        padding: 0.6rem 0.8rem;
        background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(13, 148, 136, 0.04) 100%);
        border-radius: 8px;
        gap: 0.6rem;
        border: 1px solid rgba(13, 148, 136, 0.15);
    }

    .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .author-name {
        font-size: 0.85rem;
        text-align: left;
        margin-bottom: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Mobile: Show reputation and badge in sidebar (below name) */
    .author-reputation-sidebar-mobile,
    .author-badge-sidebar-mobile {
        display: inline-flex !important;
    }

    .author-reputation-sidebar-mobile {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #92400e;
        padding: 0.2rem 0.5rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 700;
        border: 1px solid #fbbf24;
    }

    .author-badge-sidebar-mobile {
        font-size: 0.85rem;
        line-height: 1;
    }

    /* Hide desktop reputation/badge on mobile */
    .author-reputation-sidebar-desktop,
    .author-badge-sidebar-desktop {
        display: none !important;
    }

    .answer-body {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.6rem;
    }

    .answer-body p {
        margin-bottom: 0.5rem;
    }

    .answer-footer {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.6rem !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start;
    }

    /* Hide footer left on mobile - name/badge/reputation already shown in sidebar */
    .answer-footer-left {
        display: none !important;
    }

    /* Show report button in sidebar beside badge on mobile */
    .answer-author-sidebar .report-btn-mobile,
    .answer-author-sidebar button.report-btn-mobile,
    .answer-author-sidebar .report-btn.report-btn-mobile {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        margin-left: 0.25rem !important;
    }

    /* Hide desktop report button in answer-time on mobile */
    .answer-time .report-btn-desktop {
        display: none !important;
    }

    /* Show date beside Reply button on mobile - inline with vote controls */
    .answer-date-mobile-inline {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.25rem !important;
        background: var(--surface) !important;
        color: var(--accent-dark) !important;
        padding: 0.15rem 0.45rem !important;
        border-radius: 999px !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        border: 1px solid rgba(13, 148, 136, 0.15) !important;
        margin-left: 0.25rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .answer-date-mobile-inline::before {
        content: "🕒";
        font-size: 0.75rem;
        margin-right: 0.15rem;
    }

    /* Hide old date row */
    .answer-date-mobile-row,
    .answer-date-mobile {
        display: none !important;
    }

    /* Hide desktop date and answer-time on mobile */
    .answer-date-desktop,
    .answer-time {
        display: none !important;
    }

    /* Hide mobile-only date in footer (if any) */
    .author-date-mobile-only {
        display: none !important;
    }

    /* Ensure vote-controls come first */
    .answer-vote-controls {
        order: 1 !important;
    }

    .answer-vote-controls {
        order: 1;
        padding: 0.16rem 0.26rem !important;
        gap: 0.18rem !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .answer-vote-controls .vote-btn {
        padding: 0.1rem 0.22rem !important;
        gap: 0.2rem !important;
    }

    .answer-vote-controls .vote-btn svg {
        width: 14px;
        height: 14px;
    }

    .answer-vote-controls .vote-text {
        font-size: 0.68rem;
    }

    .answer-vote-controls .vote-count {
        font-size: 0.72rem !important;
        min-width: 16px !important;
        padding: 0 0.15rem !important;
    }

    .answer-vote-controls .answer-reply-btn {
        padding: 0.15rem 0.4rem !important;
        font-size: 0.7rem !important;
        gap: 0.22rem !important;
        border-radius: 12px !important;
        box-shadow: none;
    }

    .answer-reply-reference {
        margin-bottom: 0.65rem;
        padding: 0.55rem 0.65rem;
        border-radius: 12px;
    }

    .answer-reply-reference .reply-reference-toggle {
        font-size: 0.8rem;
    }

    .answer-reply-reference .reply-reference-body blockquote {
        font-size: 0.82rem;
        line-height: 1.45;
        padding: 0.5rem 0.65rem;
    }

    .reply-draft-container {
        margin-bottom: 0.8rem;
    }

    .reply-draft-card {
        border-radius: 12px;
    }

    .reply-draft-toggle {
        font-size: 0.82rem;
    }

    .reply-draft-body blockquote {
        font-size: 0.84rem;
        padding: 0.55rem 0.6rem;
    }

    .answer-time {
        font-size: 0.75rem !important;
        order: 2;
        color: #1c0106;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .accepted-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .question-actions {
        gap: 0.7rem;
    }

    .answers-section {
        margin-bottom: 0.8rem;
    }

    .answers-header {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .answers-list {
        gap: 0.8rem;
    }

    .answer-card {
        padding: 0.8rem;
    }

    .answer-content-wrapper {
        gap: 0.6rem;
    }

    .accepted-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .answer-body {
        font-size: 0.92rem;
        margin-bottom: 0.8rem;
    }

    .answer-meta {
        font-size: 0.82rem;
        gap: 0.4rem;
    }
}

/* ============================================
   Advanced Search Page Styles
   ============================================ */

.question-filter-panel {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.question-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-primary-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-field--search {
    grid-column: 1;
}

.filter-field--sort {
    grid-column: 2;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-light);
}

.filter-input-wrapper input[type="search"],
.filter-input-wrapper select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color-dark);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input-wrapper input[type="search"]:focus,
.filter-input-wrapper select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-actions-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.25rem;
}

.filter-reset {
    font-size: 0.9rem;
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.filter-reset:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.6rem;
    align-items: end;
}

.filter-field--category {
    grid-column: span 3;
}

.filter-field--tags {
    grid-column: span 6;
}

.filter-field--status {
    grid-column: span 3;
}

.filter-field--dates {
    grid-column: span 12;
    margin-top: 0.35rem;
    transition: opacity 0.2s ease, margin 0.2s ease;
}

.is-hidden {
    display: none !important;
    margin: 0 !important;
}

.status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color-dark);
}

.status-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.date-range {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.date-range input[type="date"] {
    flex: 1;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color-dark);
    background-color: #fff;
}

.date-range__separator {
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.active-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.active-tag-chips .tag-chip {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.question-results-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.results-count {
    font-weight: 700;
    color: var(--text-color-dark);
}

.results-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .filter-primary-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-field--search,
    .filter-field--sort {
        grid-column: 1;
    }

    .filter-actions-bottom {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .filter-actions-bottom .btn {
        flex: 1 1 160px;
    }

    .filter-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .filter-field--category {
        grid-column: span 4;
    }

    .filter-field--tags {
        grid-column: span 4;
    }

    .filter-field--status {
        grid-column: span 4;
    }

    .filter-field--dates {
        grid-column: span 8;
    }
}

@media (max-width: 640px) {
    .question-filter-panel {
        padding: 1rem;
    }

    .question-filter-form {
        gap: 0.5rem;
    }

    .filter-primary-row {
        gap: 0.55rem;
    }

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

    .status-options {
        flex-direction: column;
        gap: 0.6rem;
    }

    .date-range {
        flex-direction: column;
        align-items: stretch;
    }

    .date-range__separator {
    text-align: center;
}

    .filter-field--dates {
        grid-column: span 1;
        margin-top: 0.25rem;
    }

    .filter-actions-bottom {
        flex-direction: row;
        align-items: stretch;
        gap: 0.4rem;
        margin-top: 0;
    }

    .filter-actions-bottom .btn {
        flex: 1 1 0;
        width: auto;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

.tag-selector {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tag-selector__select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fff;
    color: var(--text-color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.tag-selector__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-selector__chips:empty {
    display: none;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.tag-chip__remove {
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    transition: background 0.2s ease;
}

.tag-chip__remove:hover {
    background: rgba(255, 255, 255, 0.4);
}

.filter-actions-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.filter-actions-bottom .btn,
.filter-actions-bottom .filter-reset {
    text-align: center;
    width: 100%;
}

.filter-actions-bottom .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}

.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;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    margin-top: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
}

.pagination__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    box-shadow: var(--shadow-soft);
}

.pagination__pages {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pagination__arrow,
.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pagination__arrow svg,
.pagination__page svg {
    pointer-events: none;
}

.pagination__arrow:hover,
.pagination__page:hover {
    color: var(--accent);
}

.pagination__page {
    font-weight: 600;
    font-size: 0.92rem;
}

.pagination__page.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.pagination__arrow.is-disabled,
.pagination__page.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pagination__ellipsis {
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pagination__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pagination__divider {
    color: var(--border);
}

@media (max-width: 640px) {
    .pagination {
        gap: 0.45rem;
    }

    .pagination__controls {
        width: 100%;
        justify-content: center;
        padding: 0.45rem 0.6rem;
    }

    .pagination__arrow,
    .pagination__page {
        width: 34px;
        height: 34px;
    }

    .pagination__summary {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .filter-actions-bottom {
        flex-direction: row;
        gap: 0.4rem;
    }

    .filter-actions-bottom .btn,
    .filter-actions-bottom .filter-reset {
        flex: 1 1 0;
        width: auto;
        text-align: center;
    }

    .filter-actions-bottom .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

.filter-actions-bottom .btn-ghost {
    font-size: 0.9rem;
    color: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.filter-input-wrapper {
    position: relative;
}

.autosuggest-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1200;
    display: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 255, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    max-height: 320px;
}

.autosuggest-menu.is-visible {
    display: block;
}

.autosuggest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.autosuggest-item + .autosuggest-item {
    border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.autosuggest-item button {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.93rem;
    text-align: left;
    cursor: pointer;
    color: var(--text-color-dark);
    transition: background 0.18s ease, transform 0.18s ease;
}

.autosuggest-item button:hover,
.autosuggest-item.is-active button {
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(4px);
}

.autosuggest-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.autosuggest-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.autosuggest-title {
    font-weight: 600;
    color: var(--text-color-dark);
}

.autosuggest-subtitle {
    font-size: 0.82rem;
    color: var(--text-color-light);
}

@media (max-width: 640px) {
    .autosuggest-menu {
        left: 0;
        right: 0;
        width: 100%;
        max-height: 260px;
    }

    .autosuggest-item button {
        padding: 0.65rem 0.85rem;
    }
}

.filter-input-wrapper {
    position: relative;
}

.filter-row .filter-input-wrapper {
    flex: 1 1 220px;
}

.tag-selector__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-chip__remove:hover {
    background: rgba(255, 255, 255, 0.4);
}

.tags-page .page-header {
    align-items: flex-start;
}

.tag-search {
    display: flex;
    gap: 0.6rem;
}

.tag-search input[type="search"] {
    min-width: 260px;
}

.tags-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-color-light);
    margin-bottom: 0.3rem;
}

.meta-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color-dark);
}

.tag-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.tag-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
}

.tag-filters select {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-color-dark);
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
}

.tag-card {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 0.55rem;
}

.tag-card header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tag-card .tag-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    text-decoration: none;
}

.tag-card .tag-name:hover {
    color: var(--accent);
}

.tag-card .count {
    font-size: 0.82rem;
    color: var(--text-color-light);
    font-weight: 600;
}

.tag-card p {
    margin: 0;
    color: var(--text-color-light);
    font-size: 0.92rem;
}

.tag-card footer {
    display: flex;
    justify-content: flex-end;
}

.tag-card footer .btn {
    padding: 0.45rem 0.9rem;
}

@media (max-width: 1024px) {
    .tag-search input[type="search"] {
        min-width: 220px;
    }
}

@media (max-width: 640px) {
    .tag-search input[type="search"] {
        min-width: 180px;
    }

    .tag-controls {
        justify-content: flex-start;
    }

    .tag-filters {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   Admin Tag Manager
   ============================================ */

.admin-tags .page-header {
    align-items: flex-start;
}

.admin-tags__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-card {
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 0.9rem;
}

.admin-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.admin-card .helper {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 0.6rem;
}

.admin-card .stacked {
    display: grid;
    gap: 0.65rem;
}

.admin-card input[type="text"],
.admin-card textarea,
.admin-card select {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    font-size: 0.95rem;
}

.admin-card textarea {
    resize: vertical;
}

.admin-card--metrics .metrics-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

.admin-card--metrics .metrics-list li {
        display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.admin-card--metrics .metrics-list strong {
    font-size: 1.3rem;
    color: var(--text-color-dark);
}

.admin-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.admin-card__header form.inline {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
}

.admin-card__header select {
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.12);
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-color-light);
}

.admin-table td strong {
    font-size: 1rem;
}

.admin-inline-form {
    display: grid;
    gap: 0.45rem;
}

.admin-inline-form input[type="text"],
.admin-inline-form textarea {
    width: 100%;
    font-size: 0.92rem;
    border-radius: 10px;
}

.admin-inline-form .btn-small {
    align-self: flex-start;
}

.btn-small {
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 10px;
}

.tag-slug {
    font-size: 0.78rem;
    color: var(--text-color-light);
}

.admin-tags__recommendations .recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.recommendation-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.02);
}

.recommendation-card header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.recommendation-card header span {
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.recommendation-card select {
    width: 100%;
    min-height: 160px;
}

.text-right {
    text-align: right;
}

@media (max-width: 900px) {
    .admin-table {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .admin-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-card__header form.inline {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.7rem;
    }

    .admin-inline-form {
        gap: 0.35rem;
    }

    .recommendation-card select {
        min-height: 140px;
    }
}

/* ========================================
   DISCUSSIONS SYSTEM
   ======================================== */

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-tabs .tab-link {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.category-tabs .tab-link:hover {
    background: #f7fafc;
    color: #2d3748;
}

.category-tabs .tab-link.active {
    background: #4299e1;
    color: white;
    border-color: #3182ce;
}

/* Discussions List on Category Page */
.discussions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discussion-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.discussion-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.discussion-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.discussion-card-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.discussion-card-title a {
    color: #2d3748;
    text-decoration: none;
}

.discussion-card-title a:hover {
    color: #4299e1;
}

.discussion-card-meta {
    display: flex;
    gap: 0.5rem;
        font-size: 0.8rem;
    color: #718096;
    flex-wrap: nowrap;
    align-items: center;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.25rem;
}

.discussion-card-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #718096;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .category-tabs .tab-link {
        padding: 0.6rem 1rem;
    }
    
    .discussion-card-meta {
        gap: 0.4rem;
        font-size: 0.72rem;
    }
    
    .category-pill {
        font-size: 0.68rem;
        padding: 0.12rem 0.45rem;
    }
    
    .discussion-card-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: #e2e8f0;
    color: #475569;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

/* Button Styles */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.btn-ghost:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Admin Container */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.admin-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #1a202c;
}

.subtitle {
    color: #718096;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #1a202c;
}

.page-header p {
    color: #718096;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
}

.empty-state svg {
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 1rem 0 0.5rem;
    color: #2d3748;
}

.empty-state p {
    color: #718096;
    margin-bottom: 1.5rem;
}

/* Markdown Body */
.markdown-body {
    line-height: 1.7;
    color: #2d3748;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-body code {
    background: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-body pre {
    background: #2d3748;
    color: #e2e8f0;
        padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container,
    .page-container {
        padding: 1rem;
    }
    
    .admin-header,
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-header h1,
    .page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .answers-list .answer-card:nth-child(odd) {
        margin-right: 0.6rem;
        margin-left: 0.15rem;
    }

    .answers-list .answer-card:nth-child(even) {
        margin-left: 0.6rem;
        margin-right: 0.15rem;
    }
}

.answers-list .answer-card:nth-child(odd) .author-avatar {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.answers-list .answer-card:nth-child(even) .author-avatar {
    background: linear-gradient(135deg, #d712b7, #950592);
    box-shadow: 0 4px 16px rgba(215, 18, 183, 0.28);
}

.answers-list .answer-card:nth-child(odd) .author-name {
    background-image: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.answers-list .answer-card:nth-child(even) .author-name {
    background-image: linear-gradient(135deg, #d712b7, #950592);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.answers-list .answer-card .author-name {
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.answers-list .answer-card .author-name:hover {
    transform: translateX(3px);
    filter: brightness(1.08);
}

.answers-list .answer-card:nth-child(odd) .author-name-mobile,
.answers-list .answer-card:nth-child(odd) .author-name {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.answers-list .answer-card:nth-child(even) .author-name-mobile,
.answers-list .answer-card:nth-child(even) .author-name {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.discussion-card-meta .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-badge.status-closed {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.status-badge.status-view {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

/* ============================================
   QUESTIONS PAGE STYLES
   ============================================ */

/* Questions Page Header */
.questions-page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.questions-header-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.questions-header-icon {
    font-size: 2rem;
    line-height: 1;
}

.questions-header-text {
    flex: 1;
}

.questions-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.2rem 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    line-height: 1.3;
}

.questions-header-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    line-height: 1.35;
}

.questions-header-action {
    flex-shrink: 0;
}

.btn-ask-question {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-ask-question:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Filter Form */
.filters-enhanced {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-form-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.filter-row-enhanced {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 1.2fr;
    gap: 0.7rem;
    align-items: start;
}

.filter-input-wrapper-enhanced {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.filter-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-search-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.filter-select-enhanced {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-select-enhanced:hover {
    border-color: #bdc3c7;
}

.filter-select-enhanced:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.filter-actions-enhanced {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    padding-top: 0.4rem;
    border-top: 1px solid #e0e6ed;
    margin-top: 0.2rem;
}

.btn-filter-apply,
.btn-filter-advanced {
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid;
    cursor: pointer;
}

.btn-filter-apply {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

.btn-filter-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

.btn-filter-advanced {
    background: #ffffff;
    color: #6c757d;
    border-color: #dee2e6;
}

.btn-filter-advanced:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Question Results Meta with Per Page */
.question-results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.35rem 0;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.results-count {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.per-page-form-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.per-page-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.per-page-select {
    padding: 6px 10px;
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    color: #1e3a8a;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%231e3a8a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
    min-width: 70px;
}

.per-page-select:hover {
    border-color: #1e3a8a;
}

.per-page-select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Questions List Container */
.question-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Enhanced Pagination */
.pagination-enhanced {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pagination-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-info-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.pagination-info-text strong {
    color: #1e3a8a;
    font-weight: 600;
}

.pagination-controls-enhanced {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    background: #ffffff;
    color: #1e3a8a;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

.pagination-btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

.pagination-pages-enhanced {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    background: #ffffff;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: #f8f9fa;
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.pagination-page.is-active {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #6c757d;
    font-weight: 500;
}

/* Questions Page Mobile Responsive */
@media (max-width: 768px) {
    .questions-page-header {
        flex-direction: column;
        padding: 0.9rem 1rem;
        gap: 0.7rem;
        margin-bottom: 0.6rem;
    }
    
    .questions-header-content {
        flex-direction: row;
        gap: 0.7rem;
        width: 100%;
    }
    
    .questions-header-icon {
        font-size: 1.8rem;
    }
    
    .questions-header-title {
        font-size: 1.25rem;
        margin-bottom: 0.15rem;
    }
    
    .questions-header-subtitle {
        font-size: 0.8rem;
    }
    
    .questions-header-action {
        width: 100%;
    }
    
    .btn-ask-question {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .filters-enhanced {
        padding: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .filter-form-enhanced {
        gap: 0.6rem;
    }
    
    /* Mobile Layout: Category and Tag in one row, Sort and Status in one row */
    .filter-row-enhanced {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    
    .filter-input-wrapper-enhanced {
        grid-column: 1 / -1;
        order: 1;
    }
    
    .filter-category {
        grid-column: 1;
        order: 2;
    }
    
    .filter-tag {
        grid-column: 2;
        order: 3;
    }
    
    .filter-sort {
        grid-column: 1;
        order: 4;
    }
    
    .filter-status {
        grid-column: 2;
        order: 5;
    }
    
    .filter-actions-enhanced {
        grid-column: 1 / -1;
        order: 6;
        flex-direction: column;
    }
    
    .btn-filter-apply,
    .btn-filter-advanced {
        width: 100%;
        text-align: center;
    }
    
    .question-results-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.6rem;
        padding: 0.3rem 0;
        margin-bottom: 0.3rem;
    }
    
    .results-count {
        font-size: 0.85rem;
    }
    
    .per-page-form-inline {
        gap: 0.35rem;
    }
    
    .per-page-label {
        font-size: 0.8rem;
    }
    
    .per-page-select {
        padding: 5px 8px;
        font-size: 0.85rem;
        padding-right: 28px;
        min-width: 65px;
    }
    
    .pagination-enhanced {
        padding: 1rem;
    }
    
    .pagination-controls-enhanced {
        gap: 0.25rem;
    }
    
    .pagination-btn,
    .pagination-btn-disabled,
    .pagination-page {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
    
    .pagination-pages-enhanced {
        gap: 0.25rem;
    }
}
