/* Mobile Navigation Styles */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.menu-toggle .menu-icon {
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--surface-hover);
}

.menu-toggle:hover .menu-icon {
    transform: scale(1.1);
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--surface-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
}

.nav-drawer.open {
    transform: translateX(320px);
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(var(--primary-hue), var(--primary-saturation), 50%, 0.1),
        rgba(var(--accent-hue), 85%, 50%, 0.1)
    );
    border-bottom: 1px solid var(--glass-border);
}

.drawer-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-header h2::before {
    content: '✨';
    font-size: 1.25rem;
}

.drawer-close {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.drawer-close:hover {
    background: var(--surface-hover);
    transform: scale(1.05);
}

.drawer-menu {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 16px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.drawer-item:hover {
    background: var(--glass-background);
    border-color: var(--glass-border);
    transform: translateX(4px);
}

.drawer-item.active {
    background: linear-gradient(135deg, 
        rgba(var(--primary-hue), var(--primary-saturation), 50%, 0.15),
        rgba(var(--accent-hue), 85%, 50%, 0.15)
    );
    border: 1px solid var(--primary-color);
}

.drawer-item .nav-icon {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.drawer-item:hover .nav-icon {
    transform: scale(1.1) rotate(-10deg);
}

.drawer-item .nav-label {
    font-weight: 500;
    font-size: 1rem;
}

/* User Profile Section */
.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(135deg, 
        rgba(var(--primary-hue), var(--primary-saturation), 50%, 0.05),
        rgba(var(--accent-hue), 85%, 50%, 0.05)
    );
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.drawer-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--glass-background);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drawer-action-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.drawer-action-btn.sign-out {
    color: var(--error-color);
    border-color: var(--error-color);
}

.drawer-action-btn.sign-out:hover {
    background: var(--error-bg);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

.drawer-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none !important;
    }

    .main-nav {
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }

    .nav-brand {
        flex: 1;
        justify-content: center;
    }

    .nav-actions {
        margin-left: 0;
    }
}
