@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
body { font-family: 'Inter', sans-serif; background-color: #020617; color: #f8fafc; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.5); }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Shimmer Animation */
.shimmer-text {
    background: linear-gradient(110deg, #7c3aed 20%, #ec4899 40%, #ffffff94 50%, #ec4899 60%, #7c3aed 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-reverse 6s linear infinite;
}

@keyframes shine-reverse {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Notification Dropdown */
.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 60;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}
.notif-dropdown.show { display: block; animation: zoomIn 0.2s; }
.notif-item { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; cursor: pointer; }
.notif-item:hover { background: rgba(255,255,255,0.05); }

/* Topic Card */
.topic-card {
    position: relative; overflow: hidden;
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.25s ease;
}
.topic-card:hover {
    background-color: rgba(30, 41, 59, 0.8);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.5), 0 0 15px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
    z-index: 10;
}

/* Closed Topic Card Styling */
.topic-card.is-closed {
    opacity: 0.8;
    border-color: rgba(71, 85, 105, 0.5);
    background-color: rgba(15, 23, 42, 0.3);
}
.topic-card.is-closed:hover {
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.4);
    opacity: 1;
}

.pin-badge {
    position: absolute; top: 6px; right: 6px; color: #7c3aed;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    transform: rotate(45deg); font-size: 14px; z-index: 20;
}
.pin-badge i { transform: rotate(-45deg); }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.locked-icon-indicator {
    color: #7c3aed;
    font-size: 1rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.3));
    transition: opacity 0.3s;
    margin-left: auto;
}
.topic-card:hover .locked-icon-indicator {
    opacity: 1;
}

/* Различные цвета для статусов */
.status-closed { background: #334155; color: #94a3b8; border: 1px solid #475569; }
.status-resolved { background: #064e3b; color: #34d399; border: 1px solid #059669; }
.status-answered { background: #1e3a8a; color: #93c5fd; border: 1px solid #2563eb; }
.status-warning { background: #7f1d1d; color: #fca5a5; border: 1px solid #dc2626; }
.status-orange { background: #7c2d12; color: #fdba74; border: 1px solid #ea580c; }
.status-indigo { background: #312e81; color: #c7d2fe; border: 1px solid #4f46e5; }

/* Tags Inline */
.tag-inline {
    display: inline-block;
    color: #a855f7;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}
.tag-inline:hover { text-decoration: underline; color: #d8b4fe; }

/* Preview Popup */
.preview-popup {
    position: absolute;
    background: #0f172a;
    border: 1px solid #7c3aed;
    color: #cbd5e1;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    line-height: 1.4;
}
.preview-popup.show { opacity: 1; }
.preview-popup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -6px;
    width: 10px;
    height: 10px;
    background: #0f172a;
    border-left: 1px solid #7c3aed;
    border-bottom: 1px solid #7c3aed;
    transform: rotate(45deg);
}

/* User Tooltip */
.user-tooltip { position: absolute; z-index: 200; display: none; width: 280px; pointer-events: none; }
.user-tooltip.show { display: block; animation: zoomIn 0.2s; }

/* Admin Glow for tooltip/card */
.admin-card-border {
    border-color: #fbbf24 !important; /* amber-400 */
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

#lightbox { display: none; position: fixed; z-index: 1000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px); animation: fadeIn 0.3s; }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); animation: zoomIn 0.3s; }
.close-lightbox { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.bg-gray-800 { background-color: rgb(17 23 31) !important; }
.max-w-7xl { max-width: 116rem !important; }
.w-22 { width: 22rem; }
.w-25 { width: 24rem; }
.bg-blue-601 { background-color: rgb(37 99 235 / 70%); }
.bg-red-601 { background-color: rgb(220 38 38 / 70%); }
.bg-gray-601 { background-color: rgb(75 85 99 / 90%); }
.bg-purple-601 { background-color: rgb(147 51 234 / 70%); }
.bg-emerald-601 { background-color: rgb(5 150 105 / 70%); }