/* ==========================
   RETROWAVE MOBILE MENU
   ========================== */

.retro-mobile-menu {

    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(15, 8, 28, 0.98),
            rgba(6, 4, 14, 0.98)
        );

    backdrop-filter: blur(18px);

    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);

    overflow-y: auto;
}

.retro-mobile-menu.active {
    transform: translateX(0);
}

/* ==========================
   TOP NEON BAR
   ========================== */

.retro-mobile-menu::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #9d4edd,
            #39ff88,
            #9d4edd
        );

    box-shadow:
        0 0 10px #39ff88,
        0 0 20px #39ff88;
}

/* ==========================
   RETRO GRID
   ========================== */

.retro-mobile-menu::after {

    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(57,255,136,.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(57,255,136,.03) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}

/* ==========================
   HEADER
   ========================== */

.retro-menu-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 24px 18px;
    margin-top: 8px;

    position: relative;
    z-index: 2;
}

.retro-menu-logo {

    display: flex;
    align-items: center;

    max-width: 220px;
}

.retro-menu-logo-image {

    display: block;

    width: 100%;
    height: auto;

    max-height: 200px;

    object-fit: contain;

}

.retro-menu-close {

    width: 48px;
    height: 48px;

    border: 1px solid rgba(157,78,221,.4);
    border-radius: 14px;

    background: rgba(157,78,221,.12);

    color: white;

    font-size: 1.3rem;

    cursor: pointer;

    transition: all .25s ease;
}

.retro-menu-close:hover {

    border-color: #39ff88;

    box-shadow:
        0 0 12px rgba(57,255,136,.25);

    transform: scale(1.05);
}

/* ==========================
   MENU LINKS
   ========================== */

.retro-menu-links {

    list-style: none;

    margin: 0;
    padding: 30px 20px;

    position: relative;
    z-index: 2;
}

.retro-menu-links li {
    margin-bottom: 12px;
}

.retro-menu-links a {

    display: flex;
    align-items: center;

    min-height: 64px;

    padding: 0 20px;

    border-radius: 16px;

    text-decoration: none;

    color: #d8c7ff;

    font-size: 1.15rem;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;

    border: 1px solid rgba(157,78,221,.25);

    background:
        linear-gradient(
            90deg,
            rgba(157,78,221,.10),
            rgba(57,255,136,.04)
        );

    text-shadow:
        0 0 4px rgba(157,78,221,.6),
        0 0 8px rgba(157,78,221,.4);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.03);

    transition: all .25s ease;
}
.retro-menu-links a::before {

    content: "";

    width: 4px;
    height: 24px;

    margin-right: 14px;

    border-radius: 4px;

    background: #9d4edd;

    box-shadow:
        0 0 6px #9d4edd,
        0 0 12px #9d4edd;
}




.retro-menu-links a:hover,
.retro-menu-links a:focus,
.retro-menu-links a[aria-current="page"] {

    color: #39ff88;

    background:
        linear-gradient(
            90deg,
            rgba(157,78,221,.25),
            rgba(57,255,136,.10)
        );

    border-color: rgba(57,255,136,.5);

    text-shadow:
        0 0 8px #39ff88,
        0 0 16px rgba(57,255,136,.8);

    box-shadow:
        0 0 20px rgba(57,255,136,.15),
        inset 0 0 10px rgba(57,255,136,.08);
}

.retro-menu-links a:hover::before,
.retro-menu-links a[aria-current="page"]::before {

    background: #39ff88;

    box-shadow:
        0 0 8px #39ff88,
        0 0 16px #39ff88;
}


.retro-menu-links a {

    position: relative;
    overflow: hidden;
}

.retro-menu-links a::after {

    content: "";

    position: absolute;

    left: -100%;
    top: 0;

    width: 50%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.08),
            transparent
        );

    transition: left .5s ease;
}

.retro-menu-links a:hover::after {
    left: 120%;
}



/* ==========================
   FOOTER
   ========================== */

.retro-menu-footer {

    margin-top: auto;

    padding: 24px;

    text-align: center;

    color: rgba(255,255,255,.55);

    font-size: .85rem;

    letter-spacing: .1em;

    position: relative;
    z-index: 2;
}

/* ==========================
   HAMBURGER BUTTON
   ========================== */
.mobile-menu-button {

    width: 48px;
    height: 48px;

    border-radius: 14px;

    border: 1px solid rgba(157,78,221,.35);

    background: rgba(157,78,221,.12);

    backdrop-filter: blur(8px);

    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    transition: all .25s ease;
}

.mobile-menu-button span {

    display: block;

    width: 22px;
    height: 2px;

    background: #ffffff;

    border-radius: 10px;

    transition: all .25s ease;
}

.mobile-menu-button:hover {

    border-color: #39ff88;

    box-shadow:
        0 0 16px rgba(57,255,136,.2);
}

.mobile-menu-button:hover span {

    background: #39ff88;
}

/* ==========================
   REDUCED MOTION
   ========================== */

@media (prefers-reduced-motion: reduce) {

    .retro-mobile-menu,
    .retro-menu-links a,
    .retro-menu-close {
        transition: none;
    }
}