@import "~/styles/partials/variables";
@import "~/styles/partials/mixins";
@import "~/styles/partials/iconStyle";

.header {
    &--main {
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99;
        transition: all 0.3s ease-in-out;

        &.border {
            background: linear-gradient(to bottom, $black 0%, transparent 80%);
            
            &::after {
                content: '';
                border-bottom: 1px solid $lightGrey;
                position: absolute;
                bottom: 0px;
                left: 50%;
                width: 92%;
                transform: translate(-50%, -50%);

            }

            .submenu:hover {
                .submenu-link::after {
                    color: $white;
                }
            }
            
        }
        &.visible{
            top: 0;
        }
        &.hidden{
            top: -125px;
        }

        &-submenu {
            padding: 45px;
            border-radius: 0 0 10px 10px;
            position: absolute;
            left: 50%;
            width: 50vw;
            pointer-events: none;
            transition: opacity 0.4s ease-in-out;
            opacity: 0;
            visibility: hidden;
            bottom: 100%;
            z-index: 1;

            &::before {
                top: -27px;
                left: 0;
                content: '';
                background: transparent;
                width: 100%;
                height: 27px;
                position: absolute;
            }

            &-detail {
                width: 60%;
            }

            &-list {
                width: 40%;
                list-style: square;
                padding-top: 30px;
                padding-left: 30px;
                padding-bottom: 30px;

                li {

                    &::marker {
                        color: $primary;
                        font-size: 20px;
                    }
                }
            }
        }

        &-tabs {
            padding: 0;
            width: 75vw;

            &-list {
                width: 20%;
                background-color: rgba($blueSecondary, 0.2);

                li {
                    padding: 20px;

                    button{
                        text-align: left;
                    }
                }
            }

            &-data {
                width: 80%;

                &-detail {
                    width: 70%;
                    border-left: 1px solid $grey;
                }

                &-list {
                    column-count: 2;
                    column-gap: 35px;
                    list-style: square;

                    li {
                        break-inside: avoid;
                        page-break-inside: avoid;

                        &::marker {
                            color: $primary;
                            font-size: 20px;
                        }
                    }
                }
            }


        }

        .submenu {

            transition: 0.2s ease-in-out;

            &-sublist {
                color: $black;
                font-weight: $normal;

                &:hover {
                    color: $primary;
                    text-decoration: underline;
                    font-weight: $bolder;
                }
            }

            &-link {

                &::after {
                    content: $lt--dropdown-arrow;
                    font-size: size(22);
                    color: $white;
                    transition: all 0.2s ease-in-out;
                    margin-left: 5px;
                }



                &.hclass {
                    &::after {
                        color: $black;
                    }
                }
            }

            &:hover {

                .header--main {
                    &-submenu {
                        opacity: 1;
                        visibility: visible;
                        bottom: auto;
                        top: 100%;
                        pointer-events: all;
                        transform: translate(-70%, 27px);    
                    }

                    &-tabs {
                        transform: translate(-60%, 27px);
                    }
                }
                
                .submenu-link {

                    &::after {
                        color: $primary;
                        transform: rotate(-180deg);
                        transition: 0.2s ease-in-out;

                    }
                }

            }
        }
    }

    &--search {
        border-bottom: 1px solid $lightGrey;

        &-modal {
            height: auto !important;
            @include maxOrientation(1024, portrait) {
                width: 80% !important;
                height: 100% !important;
                overflow-x: hidden;
            }

            .modal{
                &-content{
                    @include maxOrientation(1024, portrait) {
                        height: 100%;
                        overflow: hidden;
                    }
                }

            }

            &-content {
                background: rgba($blueSecondary, 0.2);
                position: relative;
                @include maxOrientation(1024, portrait) {
                    height: 100%;
                }

                .search {
                    &-content {
                        margin: auto;
                        position: relative;
                        @include maxOrientation(1024, portrait) {
                            width: 90%;
                        }
                        &-bg-image {
                            bottom: 0;
                            right: 0;
                        }
                    }

                    &-suggetion{
                        &-wrap{
                            position: relative;
                            z-index: 1;
                        }
                    }

                    &-input {
                        &-wrap {
                            @include maxOrientation(1024, portrait) {
                            border-bottom: 1px solid $lightGrey;
                            }
                            input{
                                @include maxOrientation(1024, portrait) {
                                    border-bottom: none !important;
                                }
                            }
                            .lt-search {
                                position: absolute;
                                right: 0;
                            }
                        }
                    }
                }
            }
            &.bg{
                &--network{
                    &-bottom{
                        &-right{
                            &::after{

                                @include maxOrientation(1024, portrait) {
                                    bottom: -8px;
                                    right: 0;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    &--modal {
        &-content {
            width: 80% !important;
            padding: 20px;

            input {
                font-size: size(20);
                border: none;
            }

            .marker{
                &--inner{
                    &-links{
                        // list-style: square inside;
                        li{
                            position: relative;
                            &::before{
                                content: "";
                                list-style: square;
                                width: 5px;
                                display: block;
                                margin-right: 10px;
                                height: 5px;
                                background-color: $primary;
                            }
                        }
                        .arrow {
                            
                            transform: rotate(-90deg);
                            margin-left: auto;
                            
                        }
                        
                        &-anchor {
                            flex: 1;
                        }
                    }
                }
    
            }
        }
    }

    &--overlay {
        inset: 0;
        background-color: rgba($black, 0.4);
        z-index: 10;
        opacity: 0;
        transition: opacity 0.4s ease-in-out;
        pointer-events: none;

        &.active {
            pointer-events: all;
            opacity: 1;
        }
    }

    &--mobile {
        &-link {
            // list-style: square inside;
            // padding-left: 20px;
            font-size: 16px;

            &.inner {
                overflow: auto;
                height: 75vh;
            }
            
            li {
                &::marker {
                    color: $primary;
                }
            }
            
            .sublinks {
                &::marker {
                    color: $primary;
                }
            }
        }
    }

    &--close {
        top: 10px;
        z-index: 1000;
        right: 10px;
    }
}
.search-content {
    .search-input-wrap{
        .lt--search {
            right: 0;
        }
    }
    
}