@use '../utils' as *;

/*=============================
	02. Button style
===============================*/
.tg-button-wrap {
    @include flexbox();
    gap: 22px;
    flex-wrap: wrap;
}
.btn {
    user-select: none;
    -moz-user-select: none;
    background: var(--tg-theme-primary) none repeat scroll 0 0;
    border: medium none;
    @include border-radius(10px);
    color: var(--tg-color-white-default);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0;
    padding: 21px 32px 19px 32px;
    text-align: center;
    text-transform: capitalize;
    touch-action: manipulation;
    @include transition(.3s);
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.5);
    transition-delay: 0s;
    vertical-align: middle;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--tg-heading-font-family);
    gap: 10px;
    min-width: 180px;
    justify-content: center;
    --arrow-hover-move-x: -110%;
    .btn-text {
        display: inline-block;
        position: relative;
        z-index: 1;
        margin-bottom: 0px;
        text-align: center;
        &:before {
            top: 0;
            left: 0;
            opacity: 1;
            display: block;
            @include transition(.5s);
            position: relative;
            color: inherit;
            content: attr(data-text);
            transform: translateY(0);
        }
        &:after {
            top: 0;
            left: 0;
            opacity: 0;
            width: 100%;
            display: block;
            @include transition(.5s);
            position: absolute;
            background: transparent;
            color: inherit;
            content: attr(data-text);
            transform: translateY(240%);
        }
    }
    &::before {
        content: "";
        position: absolute;
        -webkit-transition-duration: 800ms;
        transition-duration: 800ms;
        width: 200%;
        height: 200%;
        top: 110%;
        left: 50%;
        background: var(--tg-heading-color);
        @include transform(translateX(-50%));
        @include border-radius(50%);
        z-index: -1;
    }
    & svg {
        @include transform(translateY(-2.5px));
        & path {
            transition: transform .38s cubic-bezier(.37, .08, .02, .93), opacity .18s ease-out;
            &:nth-of-type(1) {
                transform: translateX(0);
                opacity: 1;
                transition-delay: .15s, .15s;
            }
            &:nth-of-type(2) {
                transform: translateX(calc(1 * var(--arrow-hover-move-x)));
                opacity: .5;
                transition-delay: 0s, 0s;
            }
        }
    }
    &:hover,
    &:focus,
    &:active,
    &:focus-visible {
        color: var(--tg-color-white-default) !important;
        background: var(--tg-theme-primary);
        &:before {
            top: -40%;
        }
        .btn-text {
            &:before {
                opacity: 0;
                transform: translateY(-240%);
            }
            &:after {
                opacity: 1;
                transform: translateY(0%);
            }
        }
    }
    &-two {
        background: var(--tg-color-white-default);
        color: var(--tg-theme-primary);
        &:focus,
        &:active,
        &:hover {
            background: var(--tg-color-white-default) !important;
        }
    }
    &-three {
        &:before {
            background: var(--tg-color-white-default);
        }
        &:focus,
        &:active,
        &:hover {
            color: var(--tg-theme-primary) !important;
        }
    }
    &-four {
        background: #4D555A;
        border: 1px solid rgba(255, 255, 255, 0.2);
        &:before {
            background: var(--tg-theme-primary);
        }
        &:focus,
        &:active,
        &:hover {
            border-color: var(--tg-theme-primary);
            background: #4D555A;
            color: var(--tg-color-white-default);
        }
    }
    &-five {
        background: var(--tg-color-smoke-4);
        color: var(--tg-theme-primary);
        min-width: auto;
        padding: 21px 27px 19px 27px;
        &:before {
            background: var(--tg-theme-primary);
        }
        &:focus,
        &:active,
        &:hover {
            background: var(--tg-color-smoke-4);
            color: var(--tg-color-white-default);
        }
    }
    &-six {
        background: transparent;
        color: var(--tg-heading-color);
        border: 1px solid var(--tg-theme-primary);
        min-width: auto;
        padding: 21px 27px 19px 27px;
        &:after {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--tg-theme-primary);
            opacity: 0.08;
        }
        &:before {
            background: var(--tg-theme-primary);
        }
        .btn-text {
            &:after {
                color: var(--tg-color-white-default);
            }
        }
        &:focus,
        &:active,
        &:hover {
            background: var(--tg-color-smoke-4);
            color: var(--tg-color-white-default);
        }
    }
    &-seven {
        background: var(--tg-color-white-default);
        color: var(--tg-theme-primary);
        min-width: auto;
        padding: 21px 27px 19px 27px;
        &:before {
            background: var(--tg-theme-primary);
        }
        &:focus,
        &:active,
        &:hover {
            background: var(--tg-color-smoke-4);
            color: var(--tg-color-white-default);
        }
    }
    &-eight {
        background: transparent;
        color: var(--tg-color-white-default);
        border: 1px solid var(--tg-color-white-default);
        min-width: auto;
        padding: 21px 27px 19px 27px;
        &:before {
            background: var(--tg-theme-primary);
        }
        .btn-text {
            &:after {
                color: var(--tg-color-white-default);
            }
        }
        &:focus,
        &:active,
        &:hover {
            background: transparent;
            border-color: var(--tg-theme-primary);
            color: var(--tg-color-white-default);
        }
    }
    &.w-100 {
        justify-content: center;
    }
}

.link-btn {
    font-weight: 600;
    position: relative;
    &:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 1px;
        width: 0;
        background: var(--tg-theme-primary);
        transition: 0.4s;
    }
    &:hover {
        &:after {
            width: 100%;
        }
    }
}

/*Social Area**************/
.social-links {
    .list-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        a {
            border-radius: 5px;
            display: inline-block;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            background: var(--tg-border-2);
            font-size: 16px;
            transition: 0.4s;
            &:hover {
                background: var(--tg-theme-primary);
                color: var(--tg-color-white-default);
            }
        }
    }
    &.style2 {
        .list-wrap {
            gap: 10px;
            a {
                border-radius: 50%;
                background: var(--tg-color-smoke);
                color: var(--tg-heading-color);
                font-size: 15px;
                &:hover {
                    background: var(--tg-theme-primary);
                    color: var(--tg-color-white-default);
                }
            }
        }
    }
    &.style3 {
        .list-wrap {
            gap: 10px;
            a {
                background: var(--tg-color-gray-6);
                color: var(--tg-color-white-default);
                font-size: 16px;
                width: 45px;
                height: 45px;
                line-height: 45px;
                &:hover {
                    background: var(--tg-theme-primary);
                    color: var(--tg-color-white-default);
                }
            }
        }
    }
}