/* Zeus Sidebar Enhancement - v1.0 */

/* ===== 侧边栏容器增强 ===== */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(18, 18, 26, 0.98) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px solid transparent;
    border-image: linear-gradient(
        180deg,
        rgba(99, 102, 241, 0.6) 0%,
        rgba(139, 92, 246, 0.4) 50%,
        rgba(99, 102, 241, 0.2) 100%
    ) 1;
    z-index: 999;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.sidebar-menu.active {
    left: 0;
    box-shadow:
        5px 0 50px rgba(99, 102, 241, 0.2),
        0 0 100px rgba(139, 92, 246, 0.15),
        inset -1px 0 0 rgba(139, 92, 246, 0.3);
}

/* 滚动条美化 */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(18, 18, 26, 0.5);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
}

/* ===== 顶部Logo区域增强 ===== */
.sidebar-header {
    padding: 16px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(139, 92, 246, 0.08) 100%
    );
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.1) 0%,
        transparent 70%
    );
    animation: sidebar-header-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sidebar-header-glow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(10%, 10%); opacity: 0.8; }
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.3);
    position: relative;
    animation: sidebar-logo-pulse 3s ease-in-out infinite;
}

@keyframes sidebar-logo-pulse {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(99, 102, 241, 0.5),
            0 0 0 1px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow:
            0 6px 30px rgba(139, 92, 246, 0.7),
            0 0 0 2px rgba(99, 102, 241, 0.5);
    }
}

.sidebar-logo svg {
    width: 30px;
    height: 30px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sidebar-brand {
    flex: 1;
    z-index: 1;
}

.sidebar-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.sidebar-brand-tagline {
    font-size: 0.75rem;
    color: rgba(167, 139, 250, 0.7);
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* ===== 导航区域 ===== */
.sidebar-section-title {
    padding: 20px 16px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(139, 92, 246, 0.8);
    position: relative;
}

.sidebar-section-title::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.5) 0%,
        rgba(139, 92, 246, 0.3) 50%,
        transparent 100%
    );
}

/* ===== 导航项卡片化设计 ===== */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 6px 12px;
    border-radius: 14px;
    background: rgba(18, 18, 26, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 导航项背景光效 */
.sidebar-nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.15) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.sidebar-nav-item:hover::before {
    left: 100%;
}

/* 导航项悬停效果 */
.sidebar-nav-item:hover {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(139, 92, 246, 0.1) 100%
    );
    border-color: rgba(139, 92, 246, 0.4);
    color: #ffffff;
    transform: translateX(4px);
    box-shadow:
        -4px 0 20px rgba(99, 102, 241, 0.2),
        inset -2px 0 0 rgba(139, 92, 246, 0.6);
}

/* 活跃状态指示器 */
.sidebar-nav-item.active {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.2) 0%,
        rgba(139, 92, 246, 0.15) 100%
    );
    border-color: rgba(139, 92, 246, 0.5);
    color: #ffffff;
    box-shadow:
        -4px 0 25px rgba(99, 102, 241, 0.3),
        inset -3px 0 0 rgba(251, 191, 36, 0.8);
}

/* 图标样式 */
.sidebar-nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    opacity: 0.9;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-nav-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.sidebar-nav-item.active svg {
    opacity: 1;
    animation: sidebar-icon-pulse 2s ease-in-out infinite;
}

@keyframes sidebar-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== 底部区域 ===== */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 16px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(18, 18, 26, 0.6) 100%
    );
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.sidebar-footer-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(139, 92, 246, 0.7);
    margin-bottom: 12px;
    text-align: center;
}

/* 社交链接卡片化 */
.sidebar-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sidebar-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-social-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-social-link:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 0 2px rgba(139, 92, 246, 0.2);
}

.sidebar-social-link:hover::before {
    opacity: 1;
}

.sidebar-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.sidebar-social-link:hover svg {
    fill: white;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sidebar-menu {
        width: 280px;
        left: -300px;
    }

    .sidebar-nav-item {
        padding: 12px 14px;
        margin: 5px 10px;
    }
}
