:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #151515;
    --bg-card: #1a1a1a;
    --bg-hover: #202020;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-success: #22c55e;
    --accent-warning: #f97316;
    --accent-danger: #ef4444;
    --accent-info: #0ea5e9;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --border-light: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-warning: linear-gradient(135deg, #f97316, #ea580c);
    --gradient-info: linear-gradient(135deg, #0ea5e9, #0284c7);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

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

body.help-portal-page main,
main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.help-portal-container {
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.portal-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

.portal-header-content {
    width: 100%;
    max-width: none;
    padding: 0 0.5rem;
    margin: 0;
}

.portal-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.portal-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(99, 102, 241, 0.3);
}

.portal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.portal-stats {
    display: flex;
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.1rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portal-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-ask-question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-ask-question::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ask-question:hover::before {
    width: 300px;
    height: 300px;
}

.btn-ask-question:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.portal-main {
    width: 100%;
    max-width: none;
    padding: 0 0.5rem;
    margin: 0;
    display: grid;
    grid-template-columns: 300px 1fr 360px;
    gap: 1rem;
    align-items: start;
    box-sizing: border-box;
}

.sidebar-left {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-right {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* Reset Button - Schönes Design */
.btn-reset {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    color: var(--accent-primary);
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-reset::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, #8a2be2, #6366f1, #ec4899);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-reset:hover::before {
    opacity: 1;
}

.btn-reset::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
}

.btn-reset:hover::after {
    width: 100px;
    height: 100px;
}

.btn-reset:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
}

.btn-reset i {
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
    background: linear-gradient(135deg, #8a2be2, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-reset:active {
    transform: rotate(360deg) scale(0.95);
}

.filter-group {
    padding: 1rem 1.25rem;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-select, .filter-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: var(--bg-secondary);
}

.tag-cloud {
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.tag-item.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.content-area {
    min-height: 600px;
}

.search-section {
    margin-bottom: 2rem;
    position: relative;
}

.search-container {
    position: relative;
}

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

.search-input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 3.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid var(--border-light);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), var(--shadow-md), 0 0 40px rgba(99, 102, 241, 0.2);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-clear {
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: none;
}

.search-input:not(:placeholder-shown) ~ .search-clear {
    display: block;
}

.search-clear:hover {
    background: var(--accent-danger);
    color: white;
    border-color: var(--accent-danger);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-submit:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow-lg);
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-header {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggestion-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: var(--bg-hover);
}

.suggestion-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.suggestion-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.suggestion-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--gradient-success);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tabs-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.375rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.4);
    animation: tabPulse 2s ease-in-out infinite;
}

@keyframes tabPulse {
    0%, 100% { box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.6); }
}

.questions-grid {
    display: grid;
    gap: 1rem;
}

.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    contain: layout style paint;
    word-wrap: break-word;
    overflow-wrap: break-word;
    isolation: isolate;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.question-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.05));
}

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

.question-card.solved {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(16, 185, 129, 0.05));
}

.question-card.solved::before {
    background: var(--gradient-success);
    opacity: 1;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.question-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-solved {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) translateY(20px);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05) translateY(-5px);
    }
    100% {
        transform: translateX(-50%) scale(1) translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.9) translateY(10px);
    }
}

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

.badge-hot {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: hotBadge 1s ease-in-out infinite;
}

@keyframes hotBadge {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 2px 16px rgba(239, 68, 68, 0.6); }
}

.question-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-overflow: ellipsis;
}

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

.tag {
    padding: 0.25rem 0.625rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.question-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

.question-stats {
    display: flex;
    gap: 1.25rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

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

.stat.share-button {
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    min-width: auto;
}

.stat.share-button:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.stat.share-button:active {
    transform: translateY(0);
}

.stat.share-button i {
    font-size: 0.8rem;
}

.stat-value {
    font-weight: 500;
}

.activity-feed {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.activity-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.activity-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.625rem;
    background: var(--gradient-danger);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.5);
    animation: liveGlow 1.5s ease-in-out infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 2px 12px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 2px 20px rgba(239, 68, 68, 0.8); }
}

.activity-live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.activity-list {
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 134, 255, 0.3) transparent;
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
    background: rgba(58, 134, 255, 0.3);
    border-radius: 2px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 134, 255, 0.5);
}

.activity-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.5s ease;
    position: relative;
    font-size: 0.85rem;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.activity-item:hover::before {
    transform: scaleY(1);
}

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

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

.activity-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.activity-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
}

.activity-icon.question {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.activity-icon.answer {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
}

.activity-icon.solved {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-secondary);
}

.activity-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.activity-user {
    color: var(--text-primary);
    font-weight: 500;
}

.activity-timestamp {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.trending-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.trending-list {
    padding: 0.5rem;
}

.trending-item {
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.trending-item:hover {
    background: linear-gradient(135deg, var(--bg-hover), rgba(99, 102, 241, 0.05));
    transform: translateX(4px);
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(0.75rem - 3px);
}

.trending-rank {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rank-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.trending-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

.trending-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 16px;
    border: 1px dashed var(--border-light);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.quill-editor {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.ql-toolbar {
    background: var(--bg-secondary);
    border: none !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.ql-container {
    border: none !important;
    font-family: inherit;
}

.ql-editor {
    min-height: 200px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted);
}

.ql-snow .ql-stroke {
    stroke: var(--text-secondary);
}

.ql-snow .ql-fill {
    fill: var(--text-secondary);
}

.ql-toolbar button:hover .ql-stroke {
    stroke: var(--accent-primary);
}

.ql-toolbar button:hover .ql-fill {
    fill: var(--accent-primary);
}

/* Voting and Action Buttons */
.vote-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vote-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.vote-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.vote-btn.active:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.btn-action {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.btn-action.small {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}

.btn-action.danger {
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-action.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-danger);
}

.btn-action.success {
    color: var(--accent-success);
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-action.success:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent-success);
}

/* Solution Answer Styles */
.answer-item.solution {
    border: 2px solid var(--accent-success);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
    position: relative;
    padding-top: 2rem;
}

.answer-item.highly-helpful {
    border: 2px solid rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
    position: relative;
    padding-top: 2rem;
}

.solution-badge, .helpful-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-success), #10b981);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    animation: solutionPulse 2s ease-in-out infinite;
}

@keyframes solutionPulse {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
        transform: scale(1.02);
    }
}

.helpful-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    animation: none;
}

.solution-badge i, .helpful-badge i {
    font-size: 0.9rem;
}

/* Helpful Vote Button */
.answer-voting {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.helpful-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.helpful-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
}

.helpful-btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.helpful-btn:active:not(:disabled) {
    transform: translateY(0);
}

.helpful-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.helpful-btn.active i {
    animation: thumbsUpBounce 0.5s ease;
}

@keyframes thumbsUpBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.1) rotate(10deg); }
}

.helpful-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

.helpful-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.helpful-btn:hover:not(:disabled) i {
    transform: scale(1.1);
}

.helpful-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.helpful-btn.active .helpful-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.question-actions,
.answer-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.detail-actions .action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.detail-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.detail-actions .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.15s ease;
}

.detail-actions .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    color: white;
    border-color: var(--accent-primary);
}

.detail-actions .action-btn:hover::before {
    opacity: 1;
}

.detail-actions .action-btn:active {
    transform: translateY(0);
}

.detail-actions .action-btn i {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

.detail-actions .action-btn span {
    position: relative;
    z-index: 1;
}

.detail-actions .action-btn.edit-btn {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

.detail-actions .action-btn.edit-btn:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.detail-actions .action-btn.close-btn {
    border-color: rgba(251, 146, 60, 0.3);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(251, 146, 60, 0.05));
}

.detail-actions .action-btn.close-btn:hover {
    border-color: #fb923c;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.detail-actions .action-btn.mark-solved-btn {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.detail-actions .action-btn.mark-solved-btn:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.detail-actions .action-btn.delete-btn {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.detail-actions .action-btn.delete-btn:hover {
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.detail-actions .stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.detail-actions .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-actions .stat-item i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.detail-actions .vote-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.detail-actions .vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.detail-actions .vote-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-primary);
    transform: scale(1.1);
}

.detail-actions .vote-btn.active {
    background: var(--accent-primary);
    color: white;
}

.detail-actions .vote-count {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 2rem;
    text-align: center;
}

/* Reply Form */
.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

/* Edit Answer Form */
.edit-answer-form {
    margin-top: 0.5rem;
}

.edit-answer-form .edit-textarea {
    min-height: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.edit-answer-form .ql-toolbar {
    background: var(--bg-tertiary);
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 8px 8px 0 0;
}

.edit-answer-form .ql-container {
    background: var(--bg-secondary);
    border: none;
    border-radius: 0 0 8px 8px;
    min-height: 150px;
}

.edit-answer-form .ql-editor {
    padding: 1rem;
    color: var(--text-primary);
    min-height: 130px;
}

.edit-answer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.edit-answer-actions button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-answer-actions button:hover {
    background: var(--bg-hover);
}

.edit-answer-actions .btn-save {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.edit-answer-actions .btn-save:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.reply-form textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.reply-form-actions button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-form-actions button:hover {
    background: var(--bg-hover);
}

.reply-form-actions button:last-child {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.reply-form-actions button:last-child:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

/* Nested Replies */
.answer-item.reply {
    opacity: 0.95;
    border-left: 2px solid var(--border-light);
    padding-left: 1rem;
}

.replies {
    margin-top: 1rem;
}

/* Badge Updates */
.badge-closed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Similar Questions Styles */
.match-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--accent-info);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.modal-overlay, .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active, .modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-danger);
    color: white;
    border-color: var(--accent-danger);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.vote-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1rem;
}

.vote-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.vote-btn.upvoted {
    background: var(--gradient-success);
    color: white;
    border-color: transparent;
}

.vote-btn.downvoted {
    background: var(--gradient-danger);
    color: white;
    border-color: transparent;
}

.vote-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

@media (min-width: 1920px) {
    .portal-main {
        grid-template-columns: 340px 1fr 380px;
        gap: 1.5rem;
    }
}

@media (max-width: 1600px) {
    .portal-main {
        grid-template-columns: 260px 1fr 320px;
        gap: 1rem;
    }
}

@media (max-width: 1400px) {
    .portal-main {
        grid-template-columns: 240px 1fr 300px;
        gap: 1rem;
    }
}

@media (max-width: 1200px) {
    .portal-main {
        grid-template-columns: 1fr 280px;
    }
    
    .sidebar-left {
        display: none;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Mobile App Layout */
    .help-portal-container {
        padding: 0;
        min-height: 100vh;
        position: relative;
        padding-bottom: 60px; /* Space for bottom nav */
    }
    
    .portal-header {
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 0.75rem 0;
        margin-bottom: 0;
        background: var(--bg-secondary);
        backdrop-filter: blur(10px);
    }
    
    .portal-header-content {
        padding: 0 1rem;
    }
    
    .portal-title-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }
    
    .portal-title {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .portal-subtitle {
        display: none;
    }
    
    .portal-stats {
        display: none; /* Hide on mobile, show in menu */
    }
    
    .portal-actions {
        flex-shrink: 0;
    }
    
    .btn-ask-question {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    /* Mobile Main Content */
    .portal-main {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        margin: 0;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    /* Mobile Search */
    .search-section {
        margin: 0.75rem;
        margin-bottom: 0;
    }
    
    .search-input {
        padding: 0.875rem 3rem 0.875rem 2.5rem;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    
    .search-icon {
        left: 0.75rem;
        font-size: 0.95rem;
    }
    
    .search-submit {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        right: 0.25rem;
    }
    
    /* Mobile Tabs */
    .tabs-container {
        margin: 0.75rem;
        padding: 0.25rem;
        border-radius: 12px;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Mobile Questions */
    .content-area {
        padding: 0.75rem;
        min-height: calc(100vh - 200px);
    }
    
    .questions-grid {
        gap: 0.75rem;
    }
    
    .question-card {
        padding: 1rem;
        border-radius: 12px;
        margin: 0;
    }
    
    .question-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .question-content {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .question-tags {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }
    
    .tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .question-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.75rem;
    }
    
    .question-author {
        gap: 0.5rem;
    }
    
    .author-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .author-name {
        font-size: 0.8rem;
    }
    
    .author-time {
        font-size: 0.7rem;
    }
    
    .question-stats {
        gap: 0.75rem;
    }
    
    .stat {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .stat i {
        font-size: 0.8rem;
    }
    
    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-light);
        padding: 0.5rem 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        color: var(--text-muted);
        font-size: 0.7rem;
        cursor: pointer;
        transition: all 0.2s ease;
        background: transparent;
        border: none;
    }
    
    .mobile-nav-item i {
        font-size: 1.2rem;
    }
    
    .mobile-nav-item.active {
        color: var(--accent-primary);
    }
    
    .mobile-nav-item:active {
        transform: scale(0.95);
    }
    
    /* Mobile Floating Action Button */
    .mobile-fab {
        display: flex !important;
        position: fixed;
        bottom: 70px;
        right: 1rem;
        width: 56px;
        height: 56px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        z-index: 999;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-fab:active {
        transform: scale(0.9);
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        z-index: 2000;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-menu-header {
        position: sticky;
        top: 0;
        background: var(--bg-secondary);
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text-primary);
    }
    
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-tertiary);
        border-radius: 50%;
        color: var(--text-muted);
        cursor: pointer;
    }
    
    .mobile-menu-content {
        padding: 1rem;
    }
    
    .mobile-menu-section {
        margin-bottom: 1.5rem;
    }
    
    .mobile-menu-section-title {
        font-size: 0.85rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.75rem;
    }
    
    /* Mobile Gamification Section */
    .mobile-gamification {
        background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(138, 43, 226, 0.1));
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .mobile-level-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
    }
    
    .mobile-level-text {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }
    
    .mobile-level-number {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--accent-primary);
    }
    
    .mobile-ep-bar {
        height: 8px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }
    
    .mobile-ep-fill {
        height: 100%;
        background: var(--gradient-primary);
        transition: width 0.5s ease;
    }
    
    .mobile-ep-text {
        font-size: 0.75rem;
        color: var(--text-muted);
        text-align: center;
    }
    
    /* Mobile Filter Section */
    .mobile-filters {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mobile-filter-item {
        padding: 0.75rem;
        background: var(--bg-tertiary);
        border-radius: 10px;
        border: 1px solid var(--border-light);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    
    .mobile-filter-label {
        font-size: 0.9rem;
        color: var(--text-primary);
    }
    
    .mobile-filter-value {
        font-size: 0.85rem;
        color: var(--text-muted);
    }
    
    /* Mobile Question Detail */
    .question-detail-container {
        padding: 0;
        margin: 0;
    }
    
    .question-detail-card {
        border-radius: 0;
        padding: 1.5rem 1rem;
        margin: 0;
    }
    
    .detail-title {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .detail-author .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .detail-author .author-name {
        font-size: 0.95rem;
    }
    
    .detail-author .author-time {
        font-size: 0.8rem;
    }
    
    .detail-badges {
        align-self: flex-start;
    }
    
    .detail-content {
        font-size: 1rem;
        line-height: 1.6;
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .detail-tags {
        padding: 0.75rem 0;
    }
    
    .detail-stats {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .answers-section {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .answers-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .answer-item {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .answer-form-section {
        margin: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .answer-form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .answer-form .ql-container {
        min-height: 150px;
    }
    
    .answer-form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .answer-form-actions button {
        width: 100%;
        padding: 0.75rem;
    }
    
    /* Mobile Modal */
    #questionDetailModal.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        z-index: 3000;
        overflow-y: auto;
    }
    
    .close-detail {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 3001;
        background: var(--bg-secondary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    /* Mobile Badges */
    .user-level-badge,
    .staff-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        margin-left: 4px;
    }
    
    /* Load More Button Mobile */
    #loadMoreBtn {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
        width: calc(100% - 2rem);
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .portal-title {
        font-size: 1.25rem;
    }
    
    .btn-ask-question {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-ask-question span {
        display: none;
    }
    
    .btn-ask-question::after {
        content: '+';
        font-size: 1.2rem;
    }
    
    .question-card {
        padding: 0.875rem;
    }
    
    .mobile-fab {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav,
    .mobile-fab,
    .mobile-menu {
        display: none !important;
    }
}

#loginRequiredModal {
    display: none !important;
}

#loginRequiredModal.show,
#loginRequiredModal.active {
    display: flex !important;
}

.load-more-container,
#loadMoreContainer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 4rem 0 !important;
    margin: 3rem auto 4rem auto !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    text-align: center !important;
    left: 0 !important;
    right: 0 !important;
}

.load-more-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    opacity: 0.3;
}

#loadMoreBtn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 2px solid;
    border-image: linear-gradient(135deg, #a855f7, #6366f1) 1;
    color: #a855f7;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.2),
        inset 0 0 20px rgba(168, 85, 247, 0.05);
    font-family: 'Orbitron', monospace;
}

#loadMoreBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
    transition: left 0.6s ease;
}

#loadMoreBtn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #a855f7, #6366f1, #a855f7);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(4px);
}

#loadMoreBtn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
    box-shadow: 
        0 10px 40px rgba(168, 85, 247, 0.4),
        0 0 60px rgba(168, 85, 247, 0.3),
        inset 0 0 30px rgba(168, 85, 247, 0.1);
}

#loadMoreBtn:hover::before {
    left: 100%;
}

#loadMoreBtn:hover::after {
    opacity: 1;
    animation: matrixGlow 2s ease-in-out infinite;
}

@keyframes matrixGlow {
    0%, 100% { 
        opacity: 0.5;
        filter: blur(4px);
    }
    50% { 
        opacity: 1;
        filter: blur(8px);
    }
}

#loadMoreBtn:active {
    transform: translateY(0) scale(1);
    box-shadow: 
        0 5px 20px rgba(168, 85, 247, 0.3),
        inset 0 0 40px rgba(168, 85, 247, 0.2);
}

.mobile-fab,
#mobileFab,
.pull-to-refresh,
#pullToRefresh {
    display: none !important;
}

/* Matrix Search Effects */
.search-input-wrapper.matrix-active {
    position: relative;
    overflow: visible;
}

.search-input-wrapper.matrix-active::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #a855f7, #6366f1, #a855f7);
    border-radius: 16px;
    opacity: 0;
    animation: matrixPulse 2s ease-in-out infinite;
    z-index: -1;
    filter: blur(4px);
}

@keyframes matrixPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.matrix-chars {
    position: absolute;
    top: 50%;
    right: 100px;
    transform: translateY(-50%);
    display: flex;
    gap: 2px;
    pointer-events: none;
}

.matrix-char {
    color: #a855f7;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    opacity: 0;
    animation: matrixChar 0.5s ease;
}

@keyframes matrixChar {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.matrix-drop {
    position: absolute;
    color: #a855f7;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    animation: matrixDrop 1s linear;
    text-shadow: 0 0 5px #a855f7;
}

@keyframes matrixDrop {
    0% { 
        top: -20px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        top: 100%;
        opacity: 0;
    }
}

.question-card.matrix-highlight {
    border-color: #a855f7 !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3) !important;
}

.matrix-match {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
    animation: matrixGlow 0.5s ease;
}

@keyframes matrixGlow {
    0% { box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
    50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.6); }
    100% { box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
}

@keyframes matrixFadeIn {
    0% { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes matrixFadeOut {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    100% { 
        opacity: 0;
        transform: scale(0.95);
    }
}

.search-results-count {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 1px solid #a855f7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    z-index: 10;
}

.matrix-text {
    color: #a855f7;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

@keyframes matrixGlitch {
    0%, 100% { 
        transform: translateX(-50%) translateY(0);
        filter: hue-rotate(0deg);
    }
    20% { 
        transform: translateX(-50%) translateY(-2px);
        filter: hue-rotate(90deg);
    }
    40% { 
        transform: translateX(-48%) translateY(2px);
        filter: hue-rotate(-90deg);
    }
    60% { 
        transform: translateX(-52%) translateY(-1px);
        filter: hue-rotate(180deg);
    }
    80% { 
        transform: translateX(-50%) translateY(1px);
        filter: hue-rotate(-180deg);
    }
}

/* Matrix Loading Banner */
.matrix-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: matrixFadeIn 0.3s ease-out;
}

.matrix-loader.hiding {
    animation: matrixFadeOut 0.5s ease-out forwards;
}

@keyframes matrixFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes matrixFadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 20px;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    animation: matrixRain 2s linear infinite;
    white-space: nowrap;
}

@keyframes matrixRain {
    to {
        transform: translateY(200%);
    }
}

.matrix-loader-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.matrix-loader-text {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    color: #0f0;
    text-shadow: 0 0 20px #0f0, 0 0 40px #0f0;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    animation: matrixTextGlitch 0.3s infinite;
}

@keyframes matrixTextGlitch {
    0%, 100% { 
        text-shadow: 0 0 20px #0f0, 0 0 40px #0f0;
        transform: translate(0);
    }
    20% { 
        text-shadow: -2px 0 #f0f, 2px 0 #0ff;
        transform: translate(-2px, 2px);
    }
    40% { 
        text-shadow: 2px 0 #f0f, -2px 0 #0ff;
        transform: translate(2px, -2px);
    }
}

.matrix-loader-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.matrix-loader-progress {
    height: 100%;
    background: linear-gradient(90deg, transparent, #0f0, transparent);
    animation: matrixScan 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #0f0;
}

@keyframes matrixScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.matrix-loader-status {
    margin-top: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(0, 255, 0, 0.7);
    animation: matrixBlink 0.5s infinite;
}

@keyframes matrixBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.matrix-loader-binary {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(0, 255, 0, 0.3);
    letter-spacing: 0.2em;
    animation: matrixBinaryScroll 3s linear infinite;
}

@keyframes matrixBinaryScroll {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-20px); }
}

/* Mobile Anpassungen für Help Portal */
@media (max-width: 768px) {
    .mobile-fab,
    #mobileFab {
        display: flex !important;
    }
    
    /* Matrix Loader Mobile */
    .matrix-loader {
        padding: 15px;
    }
    
    .matrix-loader-text {
        font-size: 1.5rem !important;
        letter-spacing: 0.05em;
        line-height: 1.3;
        text-align: center;
        word-break: break-word;
    }
    
    .matrix-loader-bar {
        width: 280px;
        max-width: 90vw;
        height: 4px;
    }
    
    .matrix-loader-status {
        font-size: 0.8rem;
        padding: 0 10px;
        text-align: center;
    }
    
    .matrix-loader-binary {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        bottom: 10px;
    }
    
    .matrix-column {
        font-size: 10px;
        line-height: 14px;
    }
    
    /* Reduce matrix rain columns on mobile */
    .matrix-rain {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .matrix-loader-text {
        font-size: 1.2rem !important;
    }
    
    .matrix-loader-bar {
        width: 240px;
    }
    
    .matrix-loader-status {
        font-size: 0.7rem;
    }
    
    .matrix-column {
        font-size: 8px;
        line-height: 12px;
    }
    
    .matrix-loader-content {
        padding: 1rem;
    }
}

.gamification-section {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.user-gamification {
    padding: 1rem;
}

.level-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.level-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Orbitron', monospace;
}

.ep-progress {
    margin-bottom: 1.5rem;
}

.ep-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.ep-fill {
    height: 100%;
    background: linear-gradient(90deg, #3a86ff, #6c5ce7);
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.ep-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ep-text {
    text-align: center;
    margin-top: 0.5rem;
    color: #e0e0e0;
    font-size: 0.85rem;
}

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

.badge-item {
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(58, 134, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.stat-item i {
    color: #3a86ff;
    width: 20px;
}

.contributors-list {
    padding: 0.5rem;
}

.contributor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.contributor-item:hover {
    background: rgba(58, 134, 255, 0.1);
    transform: translateX(5px);
}

.contributor-rank {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.contributor-rank.gold { color: #FFD700; }
.contributor-rank.silver { color: #C0C0C0; }
.contributor-rank.bronze { color: #CD7F32; }

.contributor-info {
    flex: 1;
}

.contributor-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.contributor-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.contributor-level {
    background: linear-gradient(135deg, #3a86ff, #6c5ce7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ep-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.95), rgba(138, 43, 226, 0.95));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 10000;
    animation: epPopup 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes epPopup {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.level-up-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 2rem 3rem;
    border-radius: 20px;
    text-align: center;
    z-index: 10001;
    animation: levelUp 0.6s ease;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.level-up-notification h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.level-up-notification p {
    font-size: 1.2rem;
}

@keyframes levelUp {
    0% { 
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.user-level-badge,
.staff-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

.staff-badge {
  background: linear-gradient(135deg, #ff4757, #c44569);
  color: white !important;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
}

.badge-new-pookie {
  background: linear-gradient(135deg, #a8e6cf 0%, #7fcdbb 100%);
  color: #1a5e3a;
  box-shadow: 0 2px 6px rgba(168, 230, 207, 0.4);
}

.badge-baby-pookie {
  background: linear-gradient(135deg, #ffd3e1 0%, #ffb6d9 100%);
  color: #8b2c5d;
  box-shadow: 0 2px 6px rgba(255, 182, 217, 0.4);
}

.badge-mini-pookie {
  background: linear-gradient(135deg, #d4a5ff 0%, #c589ff 100%);
  color: #5a2e7a;
  box-shadow: 0 2px 6px rgba(197, 137, 255, 0.4);
}

.badge-good-pookie {
  background: linear-gradient(135deg, #87ceeb 0%, #6bb6d6 100%);
  color: #1e5a8a;
  box-shadow: 0 2px 6px rgba(107, 182, 214, 0.4);
}

.badge-nice-pookie {
  background: linear-gradient(135deg, #98d8f4 0%, #74c0e8 100%);
  color: #1a4d7a;
  box-shadow: 0 2px 6px rgba(116, 192, 232, 0.4);
}

.badge-smart-pookie {
  background: linear-gradient(135deg, #f4d03f 0%, #f0b322 100%);
  color: #6b4e00;
  box-shadow: 0 2px 6px rgba(240, 179, 34, 0.4);
}

.badge-cool-pookie {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(118, 75, 162, 0.4);
}

.badge-pro-pookie {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(238, 90, 111, 0.4);
}

.badge-elite-pookie {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #6b4400;
  box-shadow: 0 2px 8px rgba(255, 183, 0, 0.5);
  animation: elite-glow 2s ease-in-out infinite;
}

.badge-mega-pookie {
  background: linear-gradient(135deg, #ff00ff 0%, #9400d3 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(148, 0, 211, 0.5);
  animation: mega-pulse 1.5s ease-in-out infinite;
}

.badge-giga-pookie {
  background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
  color: #003366;
  box-shadow: 0 3px 10px rgba(0, 128, 255, 0.5);
  animation: giga-shine 2s linear infinite;
}

.badge-ultra-pookie {
  background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(255, 20, 147, 0.6);
  animation: ultra-rainbow 3s linear infinite;
}

.badge-pookie-god {
  background: linear-gradient(135deg, #000000 0%, #434343 50%, #000000 100%);
  color: #ffd700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.7);
  animation: god-aura 2s ease-in-out infinite;
  border: 1px solid #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

@keyframes elite-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(255, 183, 0, 0.5); }
  50% { box-shadow: 0 2px 12px rgba(255, 183, 0, 0.8); }
}

@keyframes mega-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes giga-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes ultra-rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes god-aura {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.7);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
  }
  50% { 
    box-shadow: 0 4px 25px rgba(255, 215, 0, 1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 1);
  }
}

/* Question Detail View Styles */
.question-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.question-detail-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.question-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.detail-author .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.detail-author .author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-author .author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-author .author-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-badges {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.detail-badges .badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.detail-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.detail-content p {
    margin-bottom: 1rem;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.detail-tags .tag {
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.detail-tags .tag:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    gap: 2rem;
}

.detail-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.detail-stats > span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.detail-stats > span i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.share-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
}

.share-detail-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.share-detail-btn:active {
    transform: translateY(0);
}

.share-detail-btn i {
    font-size: 0.85rem;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px;
}

.vote-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.vote-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

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

.question-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 32px;
}

.btn-action:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

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

.btn-action.danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-action.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* Images in Questions and Answers */
.question-content img,
.detail-content img,
.answer-content img,
.answer-item img,
.ql-editor img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* Prevent image cropping in editor */
.ql-editor img {
    object-fit: contain !important;
    max-height: 500px;
}

/* Large images handling */
.question-content img.large,
.detail-content img.large,
.answer-content img.large {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.question-content img.large:hover,
.detail-content img.large:hover,
.answer-content img.large:hover {
    transform: scale(1.02);
}

/* Answers Section */
.answers-section {
    margin-top: 3rem;
}

.answers-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.answer-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-success);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.answer-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-success);
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.answer-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-author .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.answer-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.answer-content p {
    margin-bottom: 0.75rem;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

/* No Answers State */
.no-answers {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Answer Form Section */
.answer-form-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.answer-form-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.answer-form-section h3::before {
    content: '✍️';
    font-size: 1.5rem;
}

.answer-form {
    margin-top: 1rem;
}

.answer-form .quill-editor {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    min-height: 250px;
}

#answerEditor {
    min-height: 250px;
    background: var(--bg-tertiary);
}

.answer-form .ql-toolbar {
    background: var(--bg-tertiary);
    border: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: 1rem;
}

.answer-form .ql-container {
    min-height: 200px;
    background: var(--bg-secondary);
}

.answer-form .ql-editor {
    padding: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    min-height: 180px;
    color: var(--text-primary);
}

.answer-form .ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: italic;
}

.answer-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.answer-form-actions button {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.answer-form-actions .btn-submit {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.answer-form-actions .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.answer-form-actions .btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.answer-form-actions .btn-cancel:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Close button styling */
.close-detail {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.close-detail:hover {
    background: var(--accent-danger);
    color: white;
    border-color: var(--accent-danger);
    transform: rotate(90deg);
}

/* Mobile Anpassungen für Frage-Detail Modal */
@media (max-width: 768px) {
    /* Modal Fullscreen für Mobile */
    .modal-overlay {
        padding: 0 !important;
        align-items: stretch !important;
        background: rgba(0, 0, 0, 0.98);
    }
    
    #questionDetailModal .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
        background: var(--bg-primary);
        overflow: hidden;
    }
    
    #questionDetailModal .modal-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 100%);
        padding: 1rem;
        border-bottom: 2px solid var(--accent-primary);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
        min-height: 60px;
    }
    
    #questionDetailModal .modal-title {
        font-size: 1.25rem !important;
        padding-right: 50px;
        line-height: 1.3;
        color: #fff;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    #questionDetailModal .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 0;
        background: #0f0f1e;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    #questionDetailModal .modal-close {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
        background: rgba(255, 71, 87, 0.15);
        border-radius: 50%;
        border: 2px solid rgba(255, 71, 87, 0.5);
        color: #ff4757;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Question Detail Content Mobile */
    .question-detail-content {
        padding: 1.25rem !important;
        width: 100%;
    }
    
    /* Frage als eine große Card - wie die Antworten */
    .question-detail-content > div:first-child {
        background: linear-gradient(135deg, rgba(42, 42, 78, 0.4) 0%, rgba(26, 26, 46, 0.4) 100%);
        border-radius: 14px;
        border: 1px solid rgba(99, 102, 241, 0.15);
        backdrop-filter: blur(10px);
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
        margin: 0 0 1rem 0;
        padding: 0 0 1rem 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
        backdrop-filter: none;
        width: 100%;
    }
    
    .detail-author {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.875rem;
    }
    
    .detail-author .author-avatar {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0;
        background: var(--gradient-primary);
        box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);
    }
    
    .detail-author .author-info {
        flex: 1;
    }
    
    .detail-author .author-name {
        font-size: 1.05rem !important;
        font-weight: 700;
        color: #fff;
        margin-bottom: 0.2rem;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .detail-author .author-time {
        font-size: 0.825rem;
        color: #888;
    }
    
    .detail-badges {
        width: 100%;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }
    
    .detail-badges .badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.775rem;
        border-radius: 10px;
    }
    
    .detail-content {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.02rem !important;
        line-height: 1.65 !important;
        background: transparent;
        border: none;
        color: #e0e0e0;
    }
    
    .detail-content p {
        margin-bottom: 0.875rem;
        word-wrap: break-word;
    }
    
    .detail-tags {
        margin: 1rem 0 0 0;
        padding: 0.875rem 0 0 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        background: transparent;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .detail-tags .tag {
        padding: 0.35rem 0.75rem;
        font-size: 0.775rem;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
        border: 1px solid rgba(99, 102, 241, 0.2);
        color: #e0e0e0;
    }
    
    .detail-stats {
        gap: 0.75rem;
        margin: 1rem 0 0 0;
        padding: 0.75rem 0 0 0;
        background: transparent;
        border-radius: 0;
        display: flex;
        justify-content: space-between;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .detail-stats span {
        font-size: 0.7rem;
        font-weight: 500;
        color: #888;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        white-space: nowrap;
    }
    
    .detail-stats i {
        font-size: 0.75rem;
        color: var(--accent-primary);
    }
    
    /* Answers Section Mobile */
    .answers-section {
        margin-top: 1.75rem;
        padding: 0 1.25rem 1.25rem;
    }
    
    .answers-section h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem;
        padding-bottom: 0.625rem;
        border-bottom: 2px solid rgba(99, 102, 241, 0.3);
        color: #fff;
        font-weight: 700;
    }
    
    .answer-item {
        padding: 1.25rem !important;
        margin-bottom: 1.25rem !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, rgba(42, 42, 78, 0.4) 0%, rgba(26, 26, 46, 0.4) 100%);
        border: 1px solid rgba(99, 102, 241, 0.15);
        backdrop-filter: blur(10px);
    }
    
    .answer-item:hover {
        transform: none !important;
        background: linear-gradient(135deg, rgba(42, 42, 78, 0.5) 0%, rgba(26, 26, 46, 0.5) 100%);
    }
    
    .answer-header {
        flex-direction: row !important;
        gap: 0.875rem;
        align-items: center !important;
        margin-bottom: 0.875rem;
        padding-bottom: 0.875rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .answer-author {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .answer-author .author-avatar {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
        flex-shrink: 0;
        background: var(--gradient-success);
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    }
    
    .answer-author .author-info {
        flex: 1;
    }
    
    .answer-author .author-name {
        font-size: 0.975rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
        color: #fff;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .answer-author .author-time {
        font-size: 0.775rem;
        color: #888;
    }
    
    .answer-content {
        font-size: 0.975rem !important;
        line-height: 1.6 !important;
        color: #e0e0e0;
        padding: 0.4rem 0;
    }
    
    /* Answer Form Mobile */
    .answer-form-section {
        margin: 1.5rem 1.25rem 2rem;
        padding: 1.25rem !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
        border: 2px solid rgba(99, 102, 241, 0.3);
        backdrop-filter: blur(10px);
    }
    
    .answer-form-section h3 {
        font-size: 1.15rem !important;
        margin-bottom: 1.25rem !important;
        color: #fff;
        font-weight: 700;
    }
    
    .answer-form .ql-container {
        min-height: 160px !important;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 10px;
    }
    
    .answer-form .ql-editor {
        padding: 0.875rem !important;
        font-size: 0.95rem !important;
        color: #e0e0e0;
    }
    
    .answer-form .ql-toolbar {
        padding: 0.625rem !important;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px 10px 0 0;
    }
    
    #submitAnswerBtn {
        width: 100%;
        padding: 0.925rem !important;
        font-size: 0.975rem !important;
        margin-top: 0.875rem !important;
        background: var(--gradient-primary);
        border: none;
        border-radius: 10px;
        color: white;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    
    /* Badge Styles Mobile */
    .user-level-badge {
        font-size: 0.6rem !important;
        padding: 2px 7px !important;
        margin-left: 5px !important;
        border-radius: 8px !important;
    }
    
    .staff-badge {
        font-size: 0.55rem !important;
        padding: 2px 7px !important;
        margin-left: 4px !important;
    }
    
    /* No Answers State Mobile */
    .no-answers {
        margin: 1.25rem;
        padding: 1.75rem;
        font-size: 0.95rem;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(168, 85, 247, 0.06) 100%);
        border: 2px dashed rgba(99, 102, 241, 0.2);
        color: #888;
    }
    
    /* Scrollbar für Mobile */
    #questionDetailModal .modal-body::-webkit-scrollbar {
        width: 3px;
    }
    
    #questionDetailModal .modal-body::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
    }
    
    #questionDetailModal .modal-body::-webkit-scrollbar-thumb {
        background: var(--accent-primary);
        border-radius: 1.5px;
    }
    
    /* Mobile FAB and Bottom Nav */
    .mobile-fab,
    #mobileFab {
        display: flex !important;
    }
    
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    /* Load More Button nur auf bestimmten Seiten */
    body.on-activity-page #loadMoreContainer,
    body.on-stats-page #loadMoreContainer {
        display: none !important;
    }
    
    /* Ask Question Modal Mobile Buttons */
    #askQuestionModal .modal-footer {
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    #askQuestionModal .modal-footer button {
        width: auto !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    #submitQuestionBtn,
    #cancelAskBtn {
        width: auto !important;
        min-width: 100px;
        max-width: 150px;
    }
}