/* ============================================================
   VIDEOMATE — NAVIGATION COMMUNE
   Desktop + Mobile
   ============================================================ */

.vm-site-header {
    position: relative;
    z-index: 2000;
}

.vm-site-header .vm-nav-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.vm-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#7c3aed,#4f46e5);
    color: white;
    font-size: 15px;
}

.vm-main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.vm-main-nav a {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.vm-main-nav a:hover {
    background: rgba(124,58,237,.10);
    color: #7c3aed;
}

.vm-mobile-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(128,128,128,.25);
    border-radius: 11px;
    background: transparent;
    color: inherit;
    font-size: 23px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vm-mobile-overlay {
    display: none;
}

@media (max-width: 800px) {

    .vm-site-header .vm-nav-container {
        width: calc(100% - 24px);
        min-height: 64px;
    }

    .vm-mobile-button {
        display: flex;
    }

    .vm-main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(330px, 86vw);
        height: 100dvh;

        padding: 82px 20px 30px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;

        background: rgba(10,14,25,.98);
        color: white;

        border-left: 1px solid rgba(255,255,255,.12);
        box-shadow: -20px 0 60px rgba(0,0,0,.45);

        overflow-y: auto;

        transition: right .25s ease;

        z-index: 2002;
    }

    .vm-main-nav.vm-open {
        right: 0;
    }

    .vm-main-nav a {
        width: 100%;
        min-height: 48px;
        padding: 13px 12px;
        border-bottom: 1px solid rgba(255,255,255,.07);
        color: white;
        font-size: 16px;
        border-radius: 8px;
    }

    .vm-main-nav a:hover {
        background: rgba(255,255,255,.07);
        color: white;
    }

    .vm-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        backdrop-filter: blur(3px);
        z-index: 2001;
    }

    .vm-mobile-overlay.vm-active {
        display: block;
    }

    body.vm-menu-open {
        overflow: hidden;
    }
}
