@import '../../../../style/variables.scss';

.protected-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: $primary;
    padding: 10px 16px 60px;
    z-index: 9;
    @media only screen and (min-width: 640px) {
        padding: 10px 20px 66px;
    }
    @media only screen and (min-width: 1024px) {
        height: 82px;
        padding: 6px 20px 6px 0;
    }
    @media only screen and (min-width: 1200px) {
        padding: 6px 32px 6px 0;
    }
    .protected-logo{
        .protected-mobile-toggle{
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            cursor: pointer;
            margin-right: 6px;
            border: 2px solid $white;
            border-radius: 6px;
            padding: 4px;

            i{
                width: 100%;
                height: 2px;
                background: $white;
                position: relative;
                &::before,&::after{
                    content: '';
                    position: absolute;
                    left: 0;
                    width: 100%;
                    height: 2px;
                    background: $white;
                }
                &::before{
                    top: -6px;
                    @media only screen and (max-width: 380px){
                        top: -5px;
                        height: 1px;
                    }
                }
                &::after{
                    bottom: -6px;
                    @media only screen and (max-width: 380px){
                        bottom: -5px;
                        height: 1px;
                    }
                }
                @media only screen and (max-width: 380px){
                    height: 1px;
                }
            }
            @media only screen and (max-width: 380px){
                width: 22px;
                height: 22px;

            }
            @media only screen and (min-width: 640px) {
                width: 34px;
                height: 34px;
                margin-right: 10px;
            }
            @media only screen and (min-width: 1024px){
                display: none;
            }
        }
        img{
            max-width: 120px;

            @media only screen and (max-width: 450px) {
                max-width: 100px;
            }
            @media only screen and (max-width: 390px) {
                max-width: 80px;
            }
            @media only screen and (min-width: 768px) {
                max-width: 174px;
            }
        }
        @media only screen and (min-width: 1024px) {
            width: 250px;
            margin-right: 20px;
            padding-left: 16px;
        }
        @media only screen and (min-width: 1200px) {
            width: 310px;
        }
        @media only screen and (min-width: 1441px) {
            width: 370px;
            margin-right: 32px;
        }
    }

    .protected-search{
        @media only screen and (min-width: 1024px) {
            position: static;
            width: 250px;
        }
        @media only screen and (min-width: 1441px) {
            width: 350px;
        }
        input{
            border-color: transparent;
            @media only screen and (max-width: 639px) {
                height: 38px;
                padding-top: 0;
                padding-bottom: 0;
                background-size: 18px 18px;
                background-position: left 10px center;
                padding-left: 38px;
            }
        }
    }
    .search-bar-wrapper{
        position: absolute;
        bottom: 10px;
        left: 16px;
        right: 16px;
        @media only screen and (min-width: 640px) {
            left: 20px;
            right: 20px;
        }
        @media only screen and (min-width: 1024px){
            position: relative;
            left: unset;
            right: unset;
            bottom: unset;
        }
        .search-list-wrapper{
            position: absolute;
            top: 100%;
            width: 100%;
            left: 0;
            margin-top: 3px;
            background: $white;
            box-shadow: 10px 9px 38px 0px rgba(0, 0, 0, 0.02);
            max-height: 250px;
            overflow-y: auto;
            opacity: 0;
            pointer-events: none;
            transition: 0.2s ease-in-out;
            scrollbar-color: rgba(253, 158, 85, 0.5) $dust;
            scrollbar-width: thin;
            &::-webkit-scrollbar {
                width: 3px;
                height: 3px;
                @media only screen and (min-width: 640px) {
                    width: 5px;
                    height: 5px;
                }
            }
            &::-webkit-scrollbar-thumb {
                background-color: rgba(253, 158, 85, 0.5);
            }
            &::-webkit-scrollbar-track {
                background-color: $dust;
            }
            .search-list{
                padding: 3px 10px;
                font-size: 14px;
                color: $btnText;
                border-color: transparent;
                cursor: pointer;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
            @media only screen and (min-width: 640px) {
                font-size: 16px;
                padding: 5px 14px;
            }
            @media only screen and (min-width: 1600px) {
                padding: 5px 20px;
                font-size: 18px;
            }
            &:hover{
                background-color: $primary;
                color: $white;
            }
            }
            &.show{
                opacity: 1;
                pointer-events: visible;
            }
        }
    }
    .action-group{
        gap: 6px;
        @media only screen and (max-width: 375px) {
            gap: 3px;
        }
        @media only screen and (min-width: 640px) {
            gap: 10px;
        }
        @media only screen and (min-width: 1024px) {
            gap: 16px;
        }
        @media only screen and (min-width: 1200px) {
            gap: 20px;
        }
        @media only screen and (min-width: 1441px) {
            gap: 24px;
        }
        @media only screen and (min-width: 1600px) {
            gap: 32px;
        }
        .create-event-btn{
            background: $tertiary;
            border-color: $tertiary;
            color: $white;
            border: 1px solid $white;
            @media only screen and (max-width: 767px) {
                font-size: 14px;
                line-height: 20px;
                padding: 8px 16px;
            }
            @media only screen and (max-width: 639px) {
                font-size: 12px;
                padding: 4px 8px;
            }
            @media only screen and (max-width:400px) {
                font-size: 10px;
                padding: 2px 3px;
                white-space: nowrap;
            }
            &:hover{
                background: $white;
                color: $tertiary;
                border-color: $white;
            }
        }
        .notification-main{
            position: relative;
            .notification-btn{
                position: relative;
                width: 30px;
                height: 30px;
                cursor: pointer;
                @media only screen and (max-width:420px) {
                    width: 18px;
                }
                @media only screen and (min-width: 1024px) {
                    width: 34px;
                    height: 34px;
                }
                @media only screen and (min-width: 1200px) {
                    width: 40px;
                    height: 40px;
                }
                @media only screen and (min-width: 1441px) {
                    width: 52px;
                    height: 52px;
                }
                i{
                    &::before{
                        font-size: 15px;
                        color: $white;
                        transition: all 0.4s;
                        @media only screen and (min-width: 410px){
                            font-size: 20px;
                        }
                        @media only screen and (min-width: 640px) {
                            font-size: 24px;
                        }
                        @media only screen and (min-width: 768px) {
                            font-size: 32px;
                        }
                    }
                }
                &:hover{
                    i{
                        &::before{
                            color: $white;
                            transition: all 0.4s;
                        }
                    }
                }
            }
            .ball-count{
                position: absolute;
                top: -2px;
                right: 4px;
                font-size: 10px;
                line-height: 10px;
                font-weight: 400;
                color: $white;
                // padding: 2px;
                border-radius: 100%;
                background: $tertiary;
                min-width: 15px;
                min-height: 15px;
                display: flex;
                justify-content: center;
                align-items: center;
                @media only screen and (max-width: 375px){
                    min-width: 12px;
                    min-height: 12px;
                    font-size: 8px;
                }
                @media only screen and (min-width: 640px) {
                    top: -6px;
                    right: 2px;
                    font-size: 12px;
                    min-width: 18px;
                    min-height: 18px;
                    // padding: 4px;
                }
                @media only screen and (min-width: 1024px) {
                    top: 0;
                    right: 6px;
                }
                @media only screen and (min-width: 1440px) {
                    top: 6px;
                    right: 12px;
                }
            }
            .notification-body{
                position: absolute;
                top: 100%;
                right: 0;
                min-width: 240px;
                max-height: 335px;
                background: $white;
                box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.08);
                opacity: 0;
                visibility: hidden;
                transition: all 0.4s;
                overflow-y: auto;
                scrollbar-color: $primary #E6D8C5;
                scrollbar-width: thin;
                &::-webkit-scrollbar {
                    width: 6px;
                    height: 6px;
                }
                &::-webkit-scrollbar-thumb {
                    background-color: $primary;
                }
                &::-webkit-scrollbar-track {
                    background-color: #e6d8c5;
                }
                @media only screen and (max-width: 380px){
                    min-width: 220px;
                    max-width: 220px;
                }
                @media only screen and (min-width: 640px) {
                    min-width: 380px;
                }
                &.show{
                    opacity: 1;
                    visibility: visible;
                    transition: all 0.4s;
                }
                li{
                    padding: 10px 10px 10px 18px;
                    border-bottom: 1px solid $mainBorder;
                    position: relative;
                    cursor: pointer;
                    @media only screen and (min-width: 1441px) {
                        padding: 12px 12px 12px 18px;
                    }
                    h4{
                        font-size: 14px;
                        line-height: 18px;
                        color: $btnText;
                        font-weight: 700;
                        font-family: 'Cinzel';
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        margin-bottom: 0;
                        @media only screen and (min-width: 1441px) {
                            font-size: 16px;
                            line-height: 22px;
                        }
                    }
                    p{
                        margin-bottom: 0;
                        font-size: 14px;
                        line-height: 16px;
                        margin-top: 5px;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        @media only screen and (min-width: 1441px) {
                            font-size: 16px;
                            line-height: 18px;
                            -webkit-line-clamp: 3;
                        }
                    }
                    &:last-child{
                        border-bottom: none;
                    }
                    &::before{
                        content: "";
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        margin: auto;
                        left: 4px;
                        background: $lightOrange;
                        width: 5px;
                        height: 75%;
                    }
                    &.empty-notification{
                        padding: 30px 16px;
                        text-align: center;
                        background: $LightCream;
                        i{
                            font-size: 30px;
                            color: $primary;
                            @media only screen and (min-width: 480px) {
                                font-size: 40px;
                            }
                            @media only screen and (min-width: 640px) {
                                font-size: 50px;
                            }
                            @media only screen and (min-width: 1200px) {
                                font-size: 60px;
                            }
                        }
                        .title{
                            font-size: 18px;
                            line-height: 1.3;
                            font-weight: 600;
                            letter-spacing: 0.04em;
                            text-transform: capitalize;
                            color: $mainText;
                            margin: 10px 0 6px;
                            @media only screen and (min-width: 480px) {
                                font-size: 22px;
                                margin: 14px 0 6px;
                            }
                            @media only screen and (min-width: 1200px) {
                                font-size: 26px;
                            }
                            @media only screen and (min-width: 1441px) {
                                font-size: 26px;
                            }
                        }
                        p{
                            font-size: 14px;
                            line-height: 1.3;
                            color: $darkGrey;
                            margin: 0 auto;
                            @media only screen and (min-width: 1200px) {
                                font-size: 18px;
                                max-width: 260px;
                            }
                            @media only screen and (min-width: 1441px) {
                                font-size: 20px;
                                max-width: 310px;
                            }
                        }
                    }
                    span{
                        font-size: 12px;
                        gap: 5px;
                        color: $tertiary;
                        margin-top: 5px;
                        @media only screen and (min-width: 1441px) {
                            margin-top: 8px;
                            line-height: 16px;
                        }
                    }
                    &.discount-code-text{
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        column-gap: 5px;
                        @media only screen and (min-width: 640px){
                            column-gap: 15px;
                        }
                        .notifications-content{
                            width: 80%;
                            max-width: 80%;
                        }
                        .copy-code{
                            font-size: 12px;
                            line-height: 20px;
                            font-weight: 700;
                            font-family: "Cinzel";
                            color: $tertiary;
                            text-transform: uppercase;
                            @media only screen and (min-width: 640px){
                                font-size: 14px;
                            }
                            @media only screen and (min-width: 1441px){
                                font-size: 16px;
                                line-height: 24px;
                            }
                        }
                    }
                    &.read{
                        h4 , p{
                            color: $lightGrey;
                        }
                        &::before{
                            display: none;
                        }
                    }
                }
            }
        }
        .my-account-dropdown{
            position: relative;
            white-space: nowrap;
            padding: 10px 0;
            @media only screen and (min-width: 640px) {
                max-width: 210px;
            }
            @media only screen and (min-width: 768px) {
                max-width: 226px;
            }
            @media only screen and (min-width: 1024px) {
                max-width: 260px;
            }
            .account-toggle{
                gap: 6px;
                cursor: pointer;
                @media only screen and (min-width: 640px) {
                    gap: 10px;
                }
                @media only screen and (min-width: 1600px) {
                    gap: 16px;
                }
                img{
                    width: 24px;
                    height: 24px;
                    object-fit: cover;
                    border-radius: 100%;
                    flex-shrink: 0;
                    @media only screen and (max-width: 380px){
                        width: 20px;
                        height: 20px;
                    }
                    @media only screen and (min-width: 640px) {
                        width: 40px;
                        height: 40px;
                    }
                    @media only screen and (min-width: 1441px) {
                        width: 50px;
                        height: 50px;
                    }
                }
                .title{
                    font-size: 16px;
                    color: $white;
                    margin: 0;
                    width: 100%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: none;
                    @media only screen and (min-width: 640px) {
                        font-size: 14px;
                        display: block;
                    }
                    @media only screen and (min-width: 768px) {
                        font-size: 16px;
                    }
                    @media only screen and (min-width: 1200px) {
                        font-size: 16px;
                    }
                    @media only screen and (min-width: 1441px) {
                        font-size: 18px;
                    }
                }
                i{
                    font-size: 8px;
                    transform: rotate(-90deg);
                    @media only screen and (min-width: 640px) {
                        font-size: 14px;
                    }
                    @media only screen and (min-width: 1200px) {
                        font-size: 16px;
                    }
                    &::before{
                        color: $white;
                    }
                }
            }
            .account-body{
                position: absolute;
                right: 0;
                background: $white;
                top: 100%;
                width: 100%;
                min-width: 180px;
                right: 0;
                opacity: 0;
                visibility: hidden;
                transition: all 0.4s;
                box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.08);
                &.show{
                    opacity: 1;
                    visibility: visible;
                    transition: all 0.4s;
                }
                a,.link{
                    font-size: 14px;
                    padding: 8px 16px;
                    color: $btnText;
                    gap: 6px;
                    cursor: pointer;
                    transition: all 0.4s;
                    @media only screen and (min-width: 768px) {
                        font-size: 16px;
                        padding: 10px 16px;
                        gap: 10px;
                    }
                    @media only screen and (min-width: 1200px) {
                        font-size: 18px;
                        padding: 16px;
                        gap: 16px;
                    }
                    i{
                        color: $primary;
                        &::before{
                            transition: all 0.4s;
                        }
                    }
                    &:hover{
                        background: $primary;
                        color: $white;
                        transition: all 0.4s;
                        i{
                            &::before{
                                color: $white;
                                transition: all 0.4s;
                            }
                        }
                    }
                }
            }
        }
    }
    .header-ln-select{
        .css-13cymwt-control , .css-t3ipsp-control{
            min-width: auto;
            border: transparent;
            background-color: transparent;
            background: transparent;
            &:hover{
                border-color: transparent;
            }
            &:focus-within{
                border-color: transparent;
                background: transparent;
                &:hover{
                    border-color: transparent;
                }
            }
        }
        .css-1fdsijx-ValueContainer{
            padding: 0px 0px 0px 5px;
            @media only screen and (min-width: 640px){
                padding: 0px 5px 0px 5px;
            }
            @media only screen and (min-width: 1600px){
                padding: 0px 10px 0px 10px;
            }
        }
        .css-1dimb5e-singleValue{
            font-weight: 700;
            color: $white;
            padding: 0;
            margin-left: 0;
            @media only screen and (min-width: 640px){
                padding: 3px 0;
            }
        }
        .css-1xc3v61-indicatorContainer , .css-15lsz6c-indicatorContainer{
            color: $white;
            &:hover{
                color: $white;
            }
        }
        .css-1dimb5e-singleValue, .css-r7ikz2-option, .css-rs8ahr-option, .css-5zq1nl-option{
            @media only screen and (min-width: 1600px){
                font-size: 18px;
            }
            @media only screen and (max-width: 410px){
                font-size: 12px;
            }
        }
    }
    .css-1xc3v61-indicatorContainer , .css-15lsz6c-indicatorContainer{
        padding: 0;
        @media only screen and (min-width: 1024px){
            padding: 8px;
        }
    }
    .react-select-menu {
        svg{
            width: 15px;
            height: 15px;
            @media only screen and (max-width: 380px){
                width: 12px;
                height: 12px;
            }
            @media only screen and (min-width: 640px){
                width: 20px;
                height: 20px;
            }
        }
    }
}