/* TVOREC PORTAL - Custom Vanilla CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Fira+Code:wght@400;600&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #030712;
    --panel-bg: rgba(17, 24, 39, 0.55);
    --panel-border: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.35);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --secondary: #d946ef;
    --secondary-glow: rgba(217, 70, 239, 0.2);
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-header: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: #030712;
    background-image: 
        linear-gradient(rgba(3, 7, 18, 0.82), rgba(3, 7, 18, 0.82)),
        url('portal_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Containers */
.header-bar {
    border-b: 1px solid rgba(255,255,255,0.03);
    background: rgba(3, 7, 18, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.brand-text h1 {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.brand-text p {
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.05);
}

.main-content {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex-grow: 1;
    transition: max-width 0.3s ease;
}

/* Expand main content container when browsing the forum */
.main-content.layout-fullwidth {
    max-width: 96% !important;
    width: 96% !important;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.75rem;
}

.panel-title {
    font-family: var(--font-header);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Custom Grids */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media(min-width: 1024px) {
    .dashboard-grid {
        flex-direction: row;
    }
    .left-side {
        width: 35%;
        flex-shrink: 0;
    }
    .right-side {
        width: 65%;
    }
}

/* Typography & Titles */
h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.65rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-mono);
    border: 1px solid transparent;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.2);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    transition: var(--transition);
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 450px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

/* Profile / Stats Cards */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.03);
}

.avatar-large {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    object-cover: cover;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.05);
}

.avatar-mini {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    object-cover: cover;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Chat Widgets */
.chat-container {
    height: 450px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.chat-bubble {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: bubbleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.bubble-content {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    border-top-left-radius: 0.25rem;
    max-width: 85%;
}

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

.bubble-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bubble-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.bubble-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-word;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
}

/* Blog / Feed Cards */
.blog-post {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.post-meta {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

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

.post-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Project Showcases */
.project-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media(min-width: 768px) {
    .project-list-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 1.25rem;
    padding: 1.25rem;
    transition: var(--transition);
}

.project-row:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.project-row-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-row-body p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Page Section visibility */
.page-section {
    display: none;
    animation: sectionFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.active {
    display: block;
}

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

/* Stats counter */
.stats-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-metric-card {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 1.25rem;
    padding: 1rem;
    text-align: center;
}

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

.stat-metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

/* Footer styling */
.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.03);
    background: rgba(3, 7, 18, 0.4);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-top: 4rem;
}

.hidden {
    display: none !important;
}

/* Category Navigation Pills */
.cat-pill {
    background: transparent;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    user-select: none;
}

.cat-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
}

/* Sidebar Categories Layout & Button Styles */
.projects-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media(min-width: 768px) {
    .projects-layout {
        grid-template-columns: 240px 1fr;
    }
}

.cat-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: transparent;
    padding: 0.55rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: left;
    width: 100%;
    outline: none;
    user-select: none;
}

.cat-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.cat-sidebar-btn.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.12);
}

.legendary-gradient {
    background: linear-gradient(90deg, #ff007f, #7f00ff, #3b82f6, #ff007f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    animation: shineAdminText 3s linear infinite;
    display: inline-block;
}

@keyframes shineAdminText {
    to {
        background-position: 200% center;
    }
}

.admin-badge-style {
    position: relative !important;
    overflow: hidden !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.7) !important;
    color: #fff !important;
    text-shadow: 0 0 6px #ef4444, 0 0 12px rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2), inset 0 0 6px rgba(239, 68, 68, 0.1) !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    animation: pulseAdminBadge 2.5s infinite alternate !important;
}

.admin-badge-style::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: adminShimmer 3s infinite ease-in-out;
}

@keyframes adminShimmer {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

@keyframes pulseAdminBadge {
    0% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.25), inset 0 0 6px rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.5);
    }
    100% {
        box-shadow: 0 0 14px rgba(239, 68, 68, 0.5), inset 0 0 10px rgba(239, 68, 68, 0.3);
        border-color: rgba(239, 68, 68, 0.9);
    }
}

/* LIVE COVERS PRESETS */
.cover-cyber-neon {
    background: linear-gradient(135deg, #6366f1, #d946ef, #3b82f6) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 6s ease infinite !important;
}

.cover-molten-gold {
    background: linear-gradient(135deg, #f59e0b, #ef4444, #eab308) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 6s ease infinite !important;
}

.cover-emerald-matrix {
    background: linear-gradient(135deg, #10b981, #06b6d4, #111827) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 6s ease infinite !important;
}

.cover-sunset-synth {
    background: linear-gradient(135deg, #f43f5e, #ec4899, #f59e0b) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 6s ease infinite !important;
}

.cover-deep-space {
    background: linear-gradient(135deg, #0f172a, #1e1b4b, #311042) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 6s ease infinite !important;
}

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

/* Layout Revamp - Sidebar Navigation */
.mobile-top-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 0.95rem;
}
.brand-mobile img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: rgba(10, 15, 30, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(99, 102, 241, 0.12);
    display: flex;
    flex-direction: column;
    z-index: 120;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.sidebar-brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}
.sidebar-brand-text h2 {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 950;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin: 0;
}
.sidebar-brand-text span {
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}
.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: auto;
}

.sidebar-menu {
    padding: 0.4rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 1;
    overflow-y: auto;
}
.sidebar-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    text-align: left;
    width: 100%;
}
.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.02) 100%);
    color: #a5b4fc;
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding-left: 0.75rem;
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.05);
}

.sidebar-user-panel {
    padding: 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(3, 7, 18, 0.3);
}
.sidebar-guest-card {
    text-align: center;
}
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    object-fit: cover;
}
.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
}
.sidebar-username {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}
.sidebar-role {
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.sidebar-logout-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.4rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(4px);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Forum Widgets Two Column Layout */
.forum-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}
.forum-main-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.forum-widgets-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.forum-widget-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.forum-widget-item:last-child {
    border-bottom: none;
}
.forum-widget-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}
.forum-widget-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
}
.forum-widget-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.forum-widget-title:hover {
    color: var(--primary);
}
.forum-widget-meta {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.sidebar-section-title {
    font-size: 0.55rem;
    font-weight: 850;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.65rem 1rem 0.35rem 1rem;
    opacity: 0.7;
}

@media (min-width: 1025px) {
    .main-content {
        margin-left: 260px !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        max-width: calc(100% - 260px) !important;
        width: auto !important;
        padding: 2rem 2.5rem !important;
    }
    .main-content.layout-fullwidth {
        max-width: calc(100% - 260px) !important;
        width: auto !important;
    }
}

@media (max-width: 1024px) {
    .mobile-top-bar {
        display: flex;
    }
    .sidebar-nav {
        left: -280px;
    }
    .sidebar-nav.active {
        left: 0;
    }
    .mobile-close-btn {
        display: block;
    }
    .main-content {
        margin-left: 0 !important;
        max-width: 100% !important;
        padding: 1.5rem 1.25rem !important;
        margin-top: 1rem !important;
    }
    .forum-two-column-layout {
        grid-template-columns: 1fr;
    }
}

/* Premium Forum Back Button styling */
.forum-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 0.5rem;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.forum-back-btn:hover {
    color: #ffffff !important;
    background: #4f46e5;
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.forum-back-btn i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.forum-back-btn:hover i {
    transform: translateX(-2px);
}
@keyframes pulseGreen {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.profile-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 900px) {
    .profile-layout-container {
        grid-template-columns: 1fr;
    }
}

.default-profile-cover {
    height: 180px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(217, 70, 239, 0.2)), 
                url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMCAwaDQwdjQwSDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTAgNDBoNDBNMCAwaDQwTTAgMGg0MCIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDMpIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=') #0f172a;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* LIVE COVER ANIMATION */
.cover-tvorec-live {
    position: relative;
    overflow: hidden;
}

.live-cover-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(217, 70, 239, 0.15)), 
                url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMCAwaDQwdjQwSDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTAgNDBoNDBNMCAwaDQwTTAgMGg0MCIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDMpIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=') #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Cyber Scanning Line */
.live-cover-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 249, 0.4), rgba(0, 255, 249, 0.8), rgba(0, 255, 249, 0.4), transparent);
    animation: scanLine 8s linear infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes scanLine {
    0% { transform: translateY(-10px); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: translateY(180px); opacity: 0; }
}

.glitch-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    font-family: 'Cinzel', Georgia, serif;
    color: #ffffff;
    letter-spacing: 0.25em;
    position: relative;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8), 0 0 20px rgba(217, 70, 239, 0.4);
    user-select: none;
    padding-left: 0.25em;
    margin-bottom: 0.25rem;
    z-index: 2;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    clip-path: inset(0 0 0 0);
}

.glitch-title::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    animation: glitch-anim 4s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 0 2px #ff00c1;
    animation: glitch-anim2 4s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(15% 0 80% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(3% 0 92% 0); }
    100% { clip-path: inset(50% 0 45% 0); }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(70% 0 12% 0); }
    40% { clip-path: inset(5% 0 90% 0); }
    60% { clip-path: inset(95% 0 1% 0); }
    80% { clip-path: inset(12% 0 85% 0); }
    100% { clip-path: inset(33% 0 60% 0); }
}

.cyber-readout {
    font-family: 'Outfit', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00fff9;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 10px;
    opacity: 0.85;
    text-shadow: 0 0 5px rgba(0, 255, 249, 0.6);
    z-index: 2;
}

.spinning-words-wrapper {
    perspective: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.spinning-word {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    font-family: 'Cinzel', Georgia, serif;
    background: linear-gradient(0deg, #7f1d1d 0%, #c2410c 25%, #f97316 50%, #facc15 75%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transform-style: preserve-3d;
    animation: spin3D 8s linear infinite, fireFlicker 0.15s ease-in-out infinite alternate;
    margin-bottom: 0.1rem;
    user-select: none;
}

.spinning-words-wrapper .sub-text {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.45em;
    color: #ffd60a;
    text-shadow: 0 0 8px rgba(253, 224, 71, 0.8), 0 0 15px rgba(249, 115, 22, 0.5);
    opacity: 0.9;
    animation: textPulse 2s ease-in-out infinite alternate;
    font-family: 'Outfit', sans-serif;
    user-select: none;
    padding-left: 0.45em; /* Balance centering because of letter-spacing */
}

@keyframes spin3D {
    0% { transform: rotateY(0deg) rotateX(4deg); }
    100% { transform: rotateY(360deg) rotateX(4deg); }
}

@keyframes textPulse {
    0% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); }
}

@keyframes fireFlicker {
    0% {
        filter: drop-shadow(0 -1px 3px rgba(253, 224, 71, 0.95)) 
                drop-shadow(0 -3px 8px rgba(249, 115, 22, 0.85)) 
                drop-shadow(0 -7px 15px rgba(239, 68, 68, 0.65))
                drop-shadow(0 0 10px rgba(249, 115, 22, 0.45));
    }
    100% {
        filter: drop-shadow(0 -3px 5px rgba(253, 224, 71, 1)) 
                drop-shadow(0 -7px 14px rgba(249, 115, 22, 0.95)) 
                drop-shadow(0 -14px 25px rgba(239, 68, 68, 0.8))
                drop-shadow(0 0 15px rgba(249, 115, 22, 0.6));
    }
}

.sparks-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.spark {
    position: absolute;
    bottom: -15px;
    width: 3px;
    height: 3px;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 0 6px #f97316, 0 0 12px #ef4444;
    animation: floatUp 3.5s linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-210px) translateX(var(--dx, 30px)) scale(0); opacity: 0; }
}

@keyframes spin3DReverse {
    0% { transform: rotateY(360deg) rotateX(-4deg); }
    100% { transform: rotateY(0deg) rotateX(-4deg); }
}

/* Widget Cover adjustments for live cover sizing */
#user-widget-cover .glitch-title {
    font-size: 1.35rem !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 0.15rem !important;
}
#user-widget-cover .cyber-readout {
    font-size: 0.52rem !important;
    letter-spacing: 0.1em !important;
    margin-top: 5px !important;
}
