@import "./colors.css";

.navbar {
    width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    position: fixed;
    left: 0;
    margin: 0 10px;
    z-index: 10;
    top: 16px;
}

.navbar .nav-content {
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--mrcoin-blue, #0088C2);
    color: var(--color-white);
}

.navbar .nav-content .nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
    color: var(--color-white);
}

.navbar .nav-content .nav-links img {
    width: 157px;
}

.navbar .nav-content .nav-links .menu-items {
    display: flex;
    gap: 16px;

}

.navbar .nav-content .menu-item {
    padding: 12px 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
}

.navbar .nav-content .nav-buttons {
    display: flex;
    gap: 16px;
}

.navbar .nav-languages {
    display: none;
    flex-direction: column;
    gap: 24px;
    padding: 32px 10%;
    height: 0%;
}

.navbar .nav-languages .nav-lang-items {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.navbar:has(.button-language:focus) .nav-languages,
.nav-languages:hover {
    display: flex;
}

.navbar .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.navbar:has(.button-hamburger:focus) .nav-mobile,
.nav-mobile:hover {
    display: flex;
}

.mobile-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 0;
    background: var(--mrcoin-blue, #0088C2);
    color: var(--color-white);
}

.mobile-menu-item {
    border: none;
    height: 46px;
    padding: 3px 20px 3px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--mrcoin-blue, #0088C2);
    color: var(--color-white);
}

.mobile-menu-item:hover {
    background: var(--mrcoin-blue-hover, #007BB8);
}

.mobile-menu-item:nth-last-child(1):hover {
    background: var(--mrcoin-blue);
}

.mobile-menu-item div {
    padding: 12px 8px;
    display: flex;
    gap: 10px;
}

.mobile-menu-item.other {
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-item .button {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.mobile-menu-item .button button {
    width: 100%;
    padding: 12px 16px;
    background: var(--mrcoin-light-blue, #DBEAFE);
    color: var(--color-black);
    border-radius: 8px;
}

.mobile-menu-has-icon{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-languages-menu .mobile-lang-items .mobile-menu-item {
    background-color: var(--mrcoin-blue-hover, #007BB8);
}

.mobile-languages-menu .mobile-lang-items .mobile-menu-item:hover {
    color: var(--mrcoin-light-blue);
    transition: 0.3s ease;
}

.mobile-languages-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-5px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.mobile-languages-menu.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.menu-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.menu-arrow.rotated {
    transform: rotate(180deg);
}

@media (max-width: 1230px) {
    .navbar {
        width: 100%;
        margin: 0;
        top: 0;
    }

    .nav-mobile {
        border-radius: 0 0 8px 8px;
        border-top: 1px solid var(--mrcoin-light-blue, #DBEAFE);
    }

    .nav-mobile .mobile-menu-item.other {
        border-radius: 0 0 8px 8px;
    }

    .menu-item {
        width: 100%;
        justify-content: flex-end;
    }


    .navbar .nav-content .nav-links .menu-items {
        display: none;
    }

    .navbar .nav-content {
        border-radius: 0;
    }

    .navbar .nav-content .nav-buttons {
        display: none;
    }

    .navbar .nav-content .nav-hamburger {
        display: flex;
    }

    .mobile-menu {
        width: 100%;
    }
}

@media (min-width: 1231px) {
    .navbar .nav-content .nav-links .menu-items {
        display: flex !important;
    }
}