/*
   ==========================================================================
   V WORK MODULAR MOBILE NAVIGATION COMPONENT (v1.1.0)
   Namespaced under .vwnav- to prevent conflicts.
   Premium Dark Glass Theme
   ==========================================================================
*/

/* 1. Toggle Button */
.vwnav-toggle {
    display: none; /* Hidden on desktop */
    position: relative; /* Attached to header flow */
    width: 44px;
    height: 44px;
    background: transparent; /* Seamless blend */
    border: none;
    z-index: 100;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0; /* Prevent squishing */
}

.vwnav-toggle:active {
    transform: scale(0.95);
}

.vwnav-toggle-bar {
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 2. Drawer Container */
.vwnav-drawer {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen right */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(8, 10, 16, 0.88); /* Premium Dark Glassmorphism */
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 10500;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 40px;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* 2.1 Close Button (Inside Drawer) */
.vwnav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vwnav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.vwnav-close i {
    width: 20px;
    height: 20px;
}

/* 3. Overlay */
.vwnav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 4. Active States */
.vwnav-is-open .vwnav-drawer {
    right: 0;
}

.vwnav-is-open .vwnav-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Toggle Animation */
.vwnav-is-open .vwnav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.vwnav-is-open .vwnav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.vwnav-is-open .vwnav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 5. Menu Items */
.vwnav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vwnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8px;
    color: #FFFFFF; /* Pure White Text */
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.vwnav-link:hover {
    color: #3B82F6;
    padding-left: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.vwnav-link-icon {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    color: #FFFFFF;
}

/* 6. Footer Content */
.vwnav-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 40px;
}

.vwnav-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.vwnav-btn-primary {
    background: #2563EB;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.vwnav-btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
}

.vwnav-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.vwnav-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 7. Responsive Visibility */
@media (max-width: 992px) {
    .vwnav-toggle {
        display: flex;
    }
}

/* Prevent body scroll when open */
body.vwnav-no-scroll {
    overflow: hidden !important;
}
