/*-------------------------------------  Button Style  -----------------------------------------*/

.infolio-button {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    background-color: #212529;
    color: #fff;
    &.button-animation::after{
        content: '';
        position: absolute;
        right: 5px;
        top: -8px;
        width: 40px;
        height: 40px;
        border-radius: 40px;
        background: rgba(0, 0, 0, 0.05);
        transition: all .4s;
    }
    &.button-animation:hover::after{
        width: 100%;
        right: 0;
    }
    &.button-scale-effect {
        display: flex !important;
        align-items: center !important;
        .text2{
            display: block;
            padding-left: 10px;
            position: relative;
            z-index: 2;
        }
        &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: #14cf93;
            transform: scale(0);
            transition: all .4s;
        }
    }
    &.button-scale-effect:hover {
        &::after {
            transform: scale(1);
        }
    }

    &.animated-gradient-bg::before {
        position: absolute;
        content: "";
        left: 0;
        top: 0;
        width: 150%;
        height: 100%;
        z-index: 1;
        background: -webkit-gradient(linear, left top, right top, color-stop(10%, #0c3df4), color-stop(45%, #02b5ff), color-stop(#02b5ff), to(#0c3df4));
        background: -webkit-linear-gradient(left, #0c3df4 10%, #02b5ff 45%, #02b5ff, #0c3df4);
        background: -o-linear-gradient(left, #0c3df4 10%, #02b5ff 45%, #02b5ff, #0c3df4);
        background: linear-gradient(to right, #0c3df4 10%, #02b5ff 45%, #02b5ff, #0c3df4);
        -webkit-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    &.animated-gradient-bg:hover::before {
        left: -50%;
    }

    .infolio-button-text {
        position: relative;
        z-index: 2;
    }

    .infolio-button-icon {
        display: inline-block;
        -webkit-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    &:hover {
        .hover-animation-right-to-left {
            animation: RL_smooth 1s ease-in-out infinite alternate both;
        }
    }

    &.animated-icon {
        .infolio-button-content-wrapper {
            .infolio-button-icon {
                position: relative;
                transition: all 0.3s ease;

                &:first-of-type {
                    opacity: 0;
                    transform: translateX(-10px);
                }

                &:last-of-type {
                    opacity: 1;
                    transform: translateX(0);
                }
            }
        }

        &:hover {
            .infolio-button-content-wrapper {
                padding-left: 10px;

                .infolio-button-icon {
                    &:first-of-type {
                        opacity: 1;
                        transform: translateX(0);
                    }

                    &:last-of-type {
                        opacity: 0;
                        transform: translateX(10px);
                    }
                }
            }
        }
    }
}

body.tcg-dark-mode {
    .infolio-button.button-animation::after {
        background: rgba(255, 255, 255, 0.05);
    }
}

@media (prefers-color-scheme: dark) {
    body.tcg-auto-mode {
        .infolio-button.button-animation::after {
            background: rgba(255, 255, 255, 0.05);
        }
    }
}