@import '../../styles/_assets.scss';

.menu-margin-bottom {
    margin-bottom: 20px;
}

.info-list__item_icon {
    width: 30px;
    height: 30px;
}

.menu-icon {
    width: 30px; 
    height: 30px;
    fill: $black;
    transition: fill 0.3s ease;
}

.list-icon {
    height: 100%;
    min-width: 16px;

    &.red {
        fill: $red;
    }

    &.green {
        fill: $green;
    }

    &.blue {
        fill: $blue;
    }
}

.menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 430px;
    min-width: 320px;

    border-radius: 50px;
    background-color: $background;
    padding: 50px 36px 50px 50px;
}

.menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu__header_title {
    flex: 1 1 auto;
    font-family: "Oswald";
    font-size: 36px;
    color: $black;
    font-weight: 600;
}

.menu__header_icon {
    display: block;
    position: relative;
    z-index: 2;
    width: 30px;
    height: 20px;

    span {
        position: absolute;
        z-index: 1;
        display: block;
        width: 100%;
        height: 3px;
        left: 0;
        background-color: $black;
        transition: all 0.3s ease;

        &:first-child {
            top: 0;
        }

        &:nth-child(2) {
            top: 50%;
            transform: translateY(-50%);
        }

        &:last-child {
            bottom: 0;
        }
    }

    &.active span {
        &:first-child {
            top: 50%;
            transform: rotate(-45deg);
        }

        &:last-child {
            top: 50%;
            transform: rotate(45deg);
        }

        &:nth-child(2) {
            width: 0;
        }
    }
}

.menu__info {}

.menu__info_title {
    font-family: "Oswald";
    font-size: 21px;
    color: $black;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-list {
    padding: 0 0 0 8px;
}

.info-list__item {
    display: flex;
    align-items: center;

    &:not(:last-child) {
        margin-bottom: 10px;
    }
}

.info-list__link {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
}

.info-list__background {
    padding: 10px 15px;
    background-color: $white;
    border-radius: 50px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;

    &.active {
        background-color: $blue;

        .menu-icon {
            fill: $white
        }

        .info-list__item_text {
            color: $white;
        }
    }
}

.info-list__item_icon {}

.info-list__item_text {
    flex: 1 1 auto;
    display: flex;
    align-items: center;

    font-family: "Noto sans";
    font-size: 14px;
    color: $grey;
    font-weight: 400;
    margin-left: 8px;
    transition: color 0.3s ease;
}

.info-list__item_count {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    color: $black;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50px;
    background-color: $ashen;
    padding: 5px 15px;
}

.menu__actions {}

.login-btn {
    display: flex;
    align-items: center;
    width: 100%;

    border-radius: 50px;
    padding: 10px 20px;
    background-color: $white;
    color: $black;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.login-btn_icon {
    fill: $blue;
    width: 20px;
    height: 20px;
}

.login-btn_text {
    font-family: 'Noto sans';
    font-size: 21px;
    font-weight: 400;
    margin-left: 15px;
    white-space: nowrap;
}

.add-list_btn {

}