@use "../theme/breakpoints" as *;
@use "../theme/colors" as *;

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 10;

    @media (max-width: $breakpoints-md) {
        flex-direction: column;
        align-items: start;
    }

    @media screen and (min-width: $breakpoints-md) {
        background: linear-gradient(0deg, rgba(240, 243, 250, 0) 0%, rgba(240, 243, 250, 0) 2%, rgb(254, 254, 255) 89%, rgb(255, 255, 255) 100%);
    }

    .logo-container {
        img {
            width: 150px;

            @media (min-width: $breakpoints-md) {
                position: absolute;
                left: 4rem;
                top: 4rem;
                width: 200px;
            }
        }
    }

    .desktop-nav, .mobile-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;

        a {
            text-decoration: none;
        }
    }

    .desktop-nav {
        .btn {
            min-width: unset;
            padding: 0.5rem 1rem;
        }

        a {
            color: white;
            font-weight: 600;
        }

        @media (max-width: $breakpoints-xl) {
            span {
                display: none;
            }
        }

        @media screen and (max-width: $breakpoints-md) {
            display: none;
        }
    }

    .mobile-nav {
        background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .831372549), #ffffff);
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 0.5rem 2rem;

        @media screen and (max-width: $breakpoints-md) {
            display: flex;
            justify-content: space-between;
            align-items: start;
            gap: 1rem;
        }

        @media screen and (max-width: $breakpoints-sm) {
            padding: 0.5rem;
            gap: 0.3rem;
        }

        a {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .icon-container {
            display: flex;
            justify-content: center;
            align-items: center;
            background: $main-color;
            border-radius: 100%;
            width: 60px;
            height: 60px;

            @media screen and (max-width: $breakpoints-sm) {
                width: 40px;
                height: 40px;
            }
        }

        span {
            color: $main-color;
            font-weight: 600;
            @media screen and (max-width: $breakpoints-sm) {
                font-size: 0.8rem;
            }
        }
    }

    .mobile-logout-button {
        display: none;
        right: 0.8rem;
        top: 0.8rem;
        position: absolute;
        min-width: unset;
        border-radius: 100%;

        @media screen and (max-width: $breakpoints-md) {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 60px;
            height: 60px;
        }

        @media screen and (max-width: $breakpoints-sm) {
            width: 40px;
            height: 40px;
        }
    }
}
