/* =========================================================
   ZENITH KARATE ACADEMY
   SHARED NAVBAR
========================================================= */


/* =========================================================
   NAVBAR
========================================================= */

.navigationbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    display: flex;

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

    gap: 1.5rem;

    padding:
        0
        clamp(
            1rem,
            5%,
            5rem
        );

    background:
        rgba(
            73,
            73,
            73,
            0.118
        );

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.04
        );

    box-shadow:
        0 10px 35px
        rgba(
            0,
            0,
            0,
            0.02
        );

    z-index: 1000;

    transition:
        height 0.32s ease,
        padding 0.32s ease,
        background 0.32s ease,
        border-color 0.32s ease,
        box-shadow 0.32s ease;
}


.navigationbar.is-scrolled {
    height: 68px;

    padding-inline:
        clamp(
            1rem,
            4.2%,
            4rem
        );

    background:
        rgba(
            8,
            8,
            8,
            0.9
        );

    border-bottom-color:
        rgba(
            253,
            178,
            3,
            0.13
        );

    box-shadow:
        0 12px 34px
        rgba(
            0,
            0,
            0,
            0.28
        );
}


.navigationbar.is-scrolled::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(253, 178, 3, 0.55),
            rgba(230, 15, 50, 0.55),
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   LOGO
========================================================= */

.navigationbar .logo {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    min-width:
        0;

    flex-shrink:
        0;
}


.navigationbar .logo a {
    color:
        inherit;

    text-decoration:
        none;
}


.navigationbar .logo img {
    width:
        auto;

    height:
        65px;

    border-radius:
        50%;

    object-fit:
        contain;

    flex-shrink:
        0;

    transition:
        width 0.32s ease,
        height 0.32s ease,
        transform 0.32s ease;
}


.navigationbar.is-scrolled .logo img {
    height: 54px;

    transform:
        translateY(-1px);
}


.navigationbar .logo .primaryText {
    margin:
        0;

    color:
        rgb(
            236,
            234,
            234
        );

    font-size:
        26px;

    font-weight:
        800;

    letter-spacing:
        3px;

    transition:
        font-size 0.32s ease,
        letter-spacing 0.32s ease;
}


.navigationbar.is-scrolled .logo .primaryText {
    font-size: 23px;

    letter-spacing: 2.5px;
}


.navigationbar .logo .secondaryText {
    color:
        rgb(
            201,
            17,
            17
        );

    font-size:
        17px;

    font-weight:
        600;

    letter-spacing:
        2px;

    transition:
        font-size 0.32s ease,
        letter-spacing 0.32s ease;
}


.navigationbar.is-scrolled .logo .secondaryText {
    font-size: 14px;

    letter-spacing: 1.6px;
}


/* =========================================================
   NAV LINKS
========================================================= */

.navigationbar .nav-links {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        clamp(
            1rem,
            2vw,
            1.875rem
        );

    margin:
        0 auto;

    color:
        white;

    font-size:
        15px;

    font-weight:
        600;

    letter-spacing:
        1.5px;

    white-space:
        nowrap;

    min-width:
        0;
}


.navigationbar .nav-links a {
    position:
        relative;

    color:
        white;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.navigationbar .nav-links a:hover {
    color:
        rgb(
            230,
            15,
            50
        );

    transform:
        translateY(
            -1px
        );
}


.navigationbar .nav-links a::after {
    content:
        "";

    position:
        absolute;

    left:
        0;

    bottom:
        -4px;

    width:
        0;

    height:
        2px;

    background:
        #c40012;

    transition:
        width
        0.3s
        ease;
}


.navigationbar .nav-links a:hover::after {
    width:
        100%;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.navigationbar .loginbutton {
    width:
        9rem;

    height:
        2.9rem;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-shrink:
        0;

    background:
        rgba(
            212,
            175,
            55,
            0.06
        );

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            0.35
        );

    border-radius:
        5px;

    color:
        #fdb203;

    font-size:
        0.68rem;

    font-weight:
        800;

    letter-spacing:
        1.2px;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        width 0.32s ease,
        height 0.32s ease;
}


.navigationbar.is-scrolled .loginbutton {
    width: 8.2rem;

    height: 2.55rem;
}


.navigationbar .loginbutton:hover {
    background:
        rgba(
            212,
            175,
            55,
            0.12
        );

    border-color:
        rgba(
            212,
            175,
            55,
            0.6
        );

    color:
        #fdb203;

    transform:
        translateY(
            -1px
        );
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.navigationbar .navmenubutton {
    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    width:
        4.5rem;

    height:
        4.5rem;

    padding:
        0;

    flex-shrink:
        0;

    border:
        0;

    border-radius:
        2rem;

    background:
        transparent;

    color:
        white;

    font-size:
        2rem;

    cursor:
        pointer;

    transform-origin:
        center;

    transition:
        transform
        0.2s
        ease;
}


.navigationbar .navmenubutton:active {
    transform:
        rotate(
            90deg
        );
}


@media (hover: hover) and (pointer: fine) {

    .navigationbar .navmenubutton:hover {
        transform:
            rotate(
                90deg
            );
    }

}


/* =========================================================
   LARGE TABLETS
========================================================= */

@media (max-width: 1266px) {

    .navigationbar {
        padding-inline:
            1.25rem;
    }


    .navigationbar .loginbutton {
        display:
            none !important;
    }


    .navigationbar .logo img {
        width:
            56px;

        height:
            56px;
    }


    .navigationbar .logo .primaryText {
        font-size:
            19px;

        letter-spacing:
            2px;
    }


    .navigationbar .logo .secondaryText {
        font-size:
            13px;
    }

}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 1100px) {

    .navigationbar .loginbutton {
        display:
            none !important;
    }

}


@media (max-width: 850px) {

    .navigationbar {
        height:
            70px;

        padding-inline:
            15px;
    }


    .navigationbar.is-scrolled {
        height: 64px;

        padding-inline:
            13px;
    }


    .navigationbar .nav-links {
        display:
            none;
    }


    .navigationbar .navmenubutton {
        display:
            flex !important;
    }


    .navigationbar .logo {
        gap:
            8px;
    }


    .navigationbar .logo img {
        width:
            52px;

        height:
            52px;
    }


    .navigationbar.is-scrolled .logo img {
        width: 49px;
        height: 49px;
    }


    .navigationbar .logo .primaryText {
        font-size:
            18px;

        letter-spacing:
            1.5px;
    }


    .navigationbar .logo .secondaryText {
        font-size:
            12px;

        letter-spacing:
            1px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .navigationbar {
        height:
            66px;

        padding-inline:
            10px;

        gap:
            0.5rem;
    }


    .navigationbar.is-scrolled {
        height: 60px;

        padding-inline:
            9px;
    }


    .navigationbar .logo {
        gap:
            7px;

        min-width:
            0;

        max-width:
            calc(
                100% - 50px
            );

        flex-shrink:
            1;
    }


    .navigationbar .logo img {
        width:
            52px;

        height:
            52px;
    }


    .navigationbar.is-scrolled .logo img {
        width: 47px;
        height: 47px;
    }


    .navigationbar .logoText {
        min-width:
            0;

        overflow:
            hidden;
    }


    .navigationbar .logo .primaryText {
        font-size:
            15px;

        letter-spacing:
            1px;

        white-space:
            nowrap;
    }


    .navigationbar .logo .secondaryText {
        font-size:
            13px;

        letter-spacing:
            1px;

        white-space:
            nowrap;
    }


    .navigationbar.is-scrolled .logo .primaryText {
        font-size: 14px;
        letter-spacing: 0.9px;
    }


    .navigationbar.is-scrolled .logo .secondaryText {
        font-size: 11px;
        letter-spacing: 0.8px;
    }


    .navigationbar .nav-links {
        display:
            none;
    }


    .navigationbar .navmenubutton {
        display:
            flex !important;

        width:
            40px;

        height:
            40px;

        margin-left:
            auto;

        flex-shrink:
            0;

        font-size:
            1.5rem;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .navigationbar {
        padding-inline:
            8px;
    }


    .navigationbar.is-scrolled {
        padding-inline:
            8px;
    }


    .navigationbar .logo img {
        width:
            46px;

        height:
            46px;
    }


    .navigationbar.is-scrolled .logo img {
        width: 43px;
        height: 43px;
    }


    .navigationbar .logo .primaryText {
        font-size:
            15px;
    }


    .navigationbar .logo .secondaryText {
        font-size:
            9px;
    }


    .navigationbar .navmenubutton {
        width:
            36px;

        height:
            36px;

        font-size:
            1.35rem;
    }

}


/* =========================================================
   ACCOUNT MENU
========================================================= */

.account-menu {
    position: relative;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}


.account-button {
    width: 2.9rem;
    height: 2.9rem;

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

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.045);

    color:
        rgba(255, 255, 255, 0.72);

    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.account-icon {
    width: 1.35rem;
    height: 1.35rem;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.account-button:hover,
.account-menu.open .account-button {
    color:
        #D4AF37;

    background:
        rgba(
            212,
            175,
            55,
            0.08
        );

    border-color:
        #D4AF37;

    transform:
        translateY(-1px);
}


.account-button:focus-visible {
    outline:
        2px solid
        #D4AF37;

    outline-offset: 4px;
}


/* =========================================================
   ACCOUNT PANEL
========================================================= */

.account-menu-panel {
    position: absolute;

    top:
        calc(
            100% + 0.7rem
        );

    right: 0;

    min-width: 9rem;

    padding: 0.35rem;

    background:
        rgba(
            10,
            10,
            10,
            0.98
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 0.45rem;

    box-shadow:
        0 14px 30px
        rgba(
            0,
            0,
            0,
            0.35
        );

    z-index: 1100;

    transform-origin:
        top right;

    animation:
        accountMenuOpen
        0.18s
        ease-out;
}


@keyframes accountMenuOpen {

    from {
        opacity: 0;

        transform:
            translateY(-0.35rem)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   ACCOUNT LINK
========================================================= */

.account-menu-link {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    min-height: 2.5rem;

    padding:
        0.65rem
        0.8rem;

    border-radius: 0.3rem;

    color:
        rgba(
            255,
            255,
            255,
            0.72
        );

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.1rem;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.account-menu-link:hover {
    color:
        #D4AF37;

    background:
        rgba(
            212,
            175,
            55,
            0.08
        );
}


.account-menu-link:focus-visible {
    outline:
        2px solid
        #D4AF37;

    outline-offset: -2px;
}


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

    .navigationbar,
    .navigationbar .logo img,
    .navigationbar .logo .primaryText,
    .navigationbar .logo .secondaryText,
    .navigationbar .loginbutton {
        transition: none !important;
    }

}
