@use '../../utils' as *;

/*----------------------------------------*/
/* Ranking badge styles
/*----------------------------------------*/

.ranking-badge-item {
    position: relative;
    backdrop-filter: blur(4px);
    @include border-radius(16px);
    padding: 50px 30px;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    @include flexbox();
    align-items: end;
    justify-content: center;
    overflow: hidden;

    @media #{$lg,$sm,$xxs} {
        padding: 30px 20px;
    }

    &:before {
        position: absolute;
        content: "";
        inset: 0;
        @include border-radius(20px);
        padding: 2px;
        background: linear-gradient(139.9deg, rgba($white, $alpha: 0) 0%, rgba($white, $alpha: 0.4) 100%);
        -webkit-mask: linear-gradient(var(--td-white) 0 0) content-box, linear-gradient(var(--td-white) 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: -1;
    }

    .inner {

        &::before {
            position: absolute;
            content: "";
            inset: 0;
            @include border-radius(16px);
            padding: 2px;
            background: linear-gradient(90deg, rgba(91, 252, 196, 0.2) 0%, rgba(245, 147, 228, 0.2) 50%, rgba(113, 164, 240, 0.2) 100%);
            -webkit-mask: linear-gradient(var(--td-white) 0 0) content-box, linear-gradient(var(--td-white) 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            z-index: -1;
        }

        &::after {
            position: absolute;
            content: "";
            background: linear-gradient(90deg, rgba(91, 252, 196, 1) 0%, rgba(245, 147, 228, 1) 50%, rgba(113, 164, 240, 1) 100%);
            border-radius: 50%;
            opacity: 0.4;
            width: 98px;
            height: 98px;
            left: 62px;
            top: -36px;
            transform-origin: 0 0;
            transform: rotate(0deg) scale(-1, 1);
            filter: blur(20.5px);
        }
    }

    &.badge-lock {
        &::before {
            position: absolute;
            content: "";
            height: calc(100% - 2px);
            width: calc(100% - 2px);
            left: 0;
            top: 0;
            background: var(--td-black);
            @include border-radius(16px);
            opacity: 0.9;
            transition: 0.3s;
        }

        &::after {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            content: "\f023";
            font-family: var(--td-ff-fontawesome);
            font-weight: 900;
            color: var(--td-white);
            font-size: 62px;
            transition: 0.3s;
        }
    }

    &:nth-child(1) {
        .thumb {
            filter: drop-shadow(0px 4px 34px rgba(255, 255, 255, 0.25));
        }
    }

    &:nth-child(2) {
        .thumb {
            filter: drop-shadow(0px 4px 34px rgba(255, 194, 99, 0.25));
        }
    }

    &:nth-child(3) {
        .thumb {
            filter: drop-shadow(0px 4px 34px rgba(98, 42, 255, 0.25));
            ;
        }
    }

    &:nth-child(4) {
        .thumb {
            filter: drop-shadow(0px 4px 34px rgba(98, 42, 255, 0.25));
        }
    }

    .thumb {
        margin: 0 auto;
        margin-bottom: 28px;
        width: 100px;

        @media #{$xs,$sm,$md} {
            max-width: 120px;
        }
    }

    .contents {
        .title {
            font-size: 26px;
            margin-bottom: 25px;
            color: var(--td-white);

            @media #{$x3l,$xl} {
                font-size: 24px;
            }

            @media #{$xxl,$lg,$sm,$xs} {
                font-size: 20px;
            }
        }

        .description {
            background: rgba($white, $alpha: 0.08);
            mix-blend-mode: normal;
            border: 1px solid rgba($white, $alpha: 0.08);
            @include border-radius(36px);
            font-size: 14px;
            font-weight: 500;
            padding: 6px 14px;
        }
    }
}