/* Navigation Drawer Styles */
:root {
    --drawer-bg: #ffffff;
    --drawer-width: 280px;
    --drawer-overlay: rgba(15, 23, 42, 0.4);
    --drawer-text: #0b1a30;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    color: var(--primary-blue, #0b1a30);
    z-index: 1100;
    transition: 0.3s;
}

.hamburger svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Drawer Container */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    visibility: hidden;
    transition: all 0.4s ease;
}

.drawer-overlay.active {
    display: block;
    visibility: visible;
    background: rgba(15, 23, 42, 0.4);
}

.drawer {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--drawer-width));
    width: var(--drawer-width);
    height: 100vh;
    background: var(--drawer-bg);
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    z-index: 2001;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.drawer-overlay.active .drawer {
    transform: translateX(var(--drawer-width));
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.drawer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5; /* Default primary */
    text-decoration: none;
}

.drawer-close {
    cursor: pointer;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: 0.2s;
}

.drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer-link {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-link:hover, .drawer-link.active {
    background: #f1f5f9;
    color: #4f46e5;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

/* Mobile Visibility */
@media (max-width: 900px) {
    .hamburger {
        display: block !important;
    }
    .nav-links, .nav-actions .btn-signin, .nav-actions .btn-join, 
    .navbar-admin .nav-links, .navbar-admin .btn-outline {
        display: none !important;
    }
}
