/* =========================================================
   SASSIVERSE GLOBAL NAVIGATION
   The Teleporter

   Shared navigation between major Sassiverse destinations.
   Desktop: visible destination links
   Tablet / Phone: collapsible Explore menu
========================================================= */


/* =========================================================
   NAV SHELL
========================================================= */

.sassiverse-nav {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid rgba(70, 48, 57, 0.12);

    box-shadow:
        0 5px 20px rgba(70, 48, 57, 0.05);
}

.sassiverse-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(1180px, calc(100% - 3rem));
    min-height: 72px;

    margin: 0 auto;

    gap: 2rem;
}


/* =========================================================
   SASSIVERSE HOME / BRAND
========================================================= */

.sassiverse-nav__brand-group {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.sassiverse-nav__brand {
    flex: 0 0 auto;

    color: #553344;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.15rem;
    font-weight: 800;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;
}

.sassiverse-nav__brand:hover {
    color: #74485d;
}

.sassiverse-nav__name {
    color: #9b6b30;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.sassiverse-nav__prompt {
    margin-left: auto;
    color: #6a5962;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: right;
}


/* =========================================================
   DESTINATION LINKS
========================================================= */

.sassiverse-nav__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 0.25rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.sassiverse-nav__links li {
    margin: 0;
    padding: 0;
}

.sassiverse-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0.65rem 0.85rem;

    border-radius: 999px;

    color: #342d35;

    font-size: 0.9rem;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.sassiverse-nav__link--backpack {
    color: #553344;
    background: linear-gradient(135deg, #fff2bd, #f5dfc8);
    border: 1px solid rgba(155, 107, 48, 0.3);
    white-space: nowrap;
}

.sassiverse-nav__link--backpack:hover {
    background: linear-gradient(135deg, #ffe99a, #f2d2bb);
}

.sassiverse-nav__link:hover {
    color: #553344;

    background: rgba(116, 72, 93, 0.08);

    transform: translateY(-1px);
}


/* =========================================================
   CURRENT DESTINATION
   JavaScript adds this automatically.
========================================================= */

.sassiverse-nav__link.is-current {
    color: #553344;

    background: rgba(116, 72, 93, 0.12);
}


/* =========================================================
   MOBILE EXPLORE BUTTON
========================================================= */

.sassiverse-nav__toggle {
    display: none;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0.65rem 1rem;

    border: 1px solid rgba(85, 51, 68, 0.24);
    border-radius: 999px;

    color: #553344;
    background: rgba(255, 255, 255, 0.72);

    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;

    cursor: pointer;
}

.sassiverse-nav__toggle:hover {
    background: rgba(116, 72, 93, 0.08);
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
========================================================= */

.sassiverse-nav__brand:focus-visible,
.sassiverse-nav__link:focus-visible,
.sassiverse-nav__toggle:focus-visible {
    outline: 3px solid rgba(216, 168, 62, 0.72);
    outline-offset: 3px;
}


/* =========================================================
   TABLET / MOBILE NAVIGATION
========================================================= */

@media (max-width: 900px) {

    .sassiverse-nav__inner {
        position: relative;

        width: min(100% - 2rem, 1180px);
        min-height: 68px;

        gap: 1rem;
    }

    .sassiverse-nav__prompt {
        display: none;
    }

    .sassiverse-nav__toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .sassiverse-nav__links {
        position: absolute;

        top: calc(100% + 0.5rem);
        right: 0;

        display: none;

        width: min(340px, calc(100vw - 2rem));

        padding: 0.75rem;

        background: #fffdf8;

        border: 1px solid rgba(70, 48, 57, 0.14);
        border-radius: 20px;

        box-shadow:
            0 18px 45px rgba(70, 48, 57, 0.14);
    }

    .sassiverse-nav__links.is-open {
        display: block;
    }

    .sassiverse-nav__links li {
        width: 100%;
    }

    .sassiverse-nav__link {
        justify-content: flex-start;

        width: 100%;

        padding: 0.8rem 1rem;

        border-radius: 12px;
    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 480px) {

    .sassiverse-nav__inner {
        width: calc(100% - 1.5rem);
    }

    .sassiverse-nav__brand {
        font-size: 1rem;
    }

    .sassiverse-nav__toggle {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sassiverse-nav__link {
        transition: none;
    }

    .sassiverse-nav__link:hover {
        transform: none;
    }

}

/* =========================================================
   ALWAYS-VISIBLE BACKPACK SHORTCUT
   Desktop: far right; mobile: beside the Teleporter button.
========================================================= */

.sassiverse-nav__backpack {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(155, 107, 48, 0.3);
    border-radius: 50%;
    background: linear-gradient(135deg, #fff2bd, #f5dfc8);
    font-size: 1.45rem;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.sassiverse-nav__backpack:hover,
.sassiverse-nav__backpack[aria-current="page"] {
    background: #ffe99a;
    transform: translateY(-1px);
}

.sassiverse-nav__backpack:focus-visible {
    outline: 3px solid rgba(216, 168, 62, 0.72);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .sassiverse-nav__backpack {
        order: 1;
    }
    .sassiverse-nav__toggle {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .sassiverse-nav__inner {
        gap: 0.5rem;
    }
    .sassiverse-nav__backpack {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sassiverse-nav__backpack {
        transition: none;
    }
    .sassiverse-nav__backpack:hover {
        transform: none;
    }
}
