/* Profile Sidebar Styles */

/* Sidebar Container */
.profile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 3000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.profile-sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: flex-end;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.close-sidebar i {
    font-size: 1.2rem;
}

/* User Section */
.user-section {
    padding: 0 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar i {
    font-size: 2rem;
    color: white;
}

.user-info {
    margin-bottom: 1.5rem;
}

.username {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.user-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Auth Button */
.auth-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 120px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.auth-button.logged-in {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

/* Menu Section */
.menu-section {
    padding: 0 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
}

.menu-icon i {
    font-size: 1.1rem;
    color: white;
}

.menu-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .profile-sidebar.active {
        left: 0;
    }
    
    .sidebar-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .user-section {
        padding: 0 1rem 1.5rem;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .profile-avatar i {
        font-size: 1.8rem;
    }
    
    .username {
        font-size: 1.3rem;
    }
    
    .menu-section {
        padding: 0 0.5rem;
    }
    
    .menu-item {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .profile-sidebar {
        width: 100%;
    }
    
    .user-section {
        padding: 0 0.8rem 1.2rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .profile-avatar i {
        font-size: 1.5rem;
    }
    
    .username {
        font-size: 1.2rem;
    }
    
    .user-subtitle {
        font-size: 0.8rem;
    }
    
    .auth-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .menu-item {
        padding: 0.7rem 0.8rem;
    }
    
    .menu-text {
        font-size: 0.9rem;
    }
}

/* Animation for menu items */
.menu-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced hover effects */
.menu-item:hover .menu-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.menu-item:hover .menu-text {
    color: rgba(255, 255, 255, 1);
}

/* Smooth transitions for all interactive elements */
.profile-sidebar * {
    transition: all 0.3s ease;
}

/* Custom scrollbar for sidebar */
.profile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.profile-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.profile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.profile-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}