@use '../utils' as *;

/*----------------------------------------*/
/*  2.23 Short codes
/*----------------------------------------*/
.bg-flashlight {
    position: relative;
    z-index: 1;
    overflow: hidden;

    &::before {
        content: "";
        position: absolute;
        top: var(--y);
        left: var(--x);
        transform: translate(-50%, -50%);
        background: radial-gradient(var(--bd-primary), transparent, transparent);
        width: 200%;
        height: 200%;
        opacity: 0;
        transition: 0.5s, top 0s, left 0s;
        border-radius: 10px;
    }

    >* {
        z-index: 2;
        position: relative;
    }

    &::after {
        content: "";
        position: absolute;
        inset: 3px;
        background: var(--bd-white);
        border-radius: 8px;
    }

    &:hover::before {
        opacity: 1;
    }

    &.flashlight-sec {
        &::before {
            background: radial-gradient(var(--bd-secondary), transparent, transparent);
        }
    }
}

.bd-details-content-title {
    font-size: 28px;
    margin-bottom: 15px;

    @media #{$xs} {
        font-size: 24px;
    }
}

.bd-post-details-list {
    margin-left: 20px;

    ul {
        li {
            list-style: none;
            position: relative;
            margin-left: 20px;

            &:not(:last-child) {
                margin-bottom: 10px;
            }

            &::before {
                position: absolute;
                content: "";
                width: 8px;
                height: 8px;
                background-color: var(--bd-primary);
                border-radius: 50%;
                left: -20px;
                top: 8px;
            }
        }
    }
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
}

.pos-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/*----------------------------------------
   Text Underline
-----------------------------------------*/
.underline {
    & a {
        display: inline;
        background-image: linear-gradient(var(--bd-primary), var(--bd-primary)), linear-gradient(var(--bd-primary), var(--bd-primary));
        background-size: 0% 1px, 0 1px;
        background-position: 100% 100%, 0 83%;
        background-repeat: no-repeat;
        transition: background-size 0.4s linear;
        padding: 0 0 1% 0;

        &:hover {
            background-size: 0 1px, 100% 1px;
            color: var(--bd-primary) !important;
        }
    }
}

.underline-two {
    & a {
        display: inline;
        background-image: linear-gradient(var(--bd-secondary), var(--bd-secondary)), linear-gradient(var(--bd-secondary), var(--bd-secondary));
        background-size: 0% 1px, 0 1px;
        background-position: 100% 100%, 0 83%;
        background-repeat: no-repeat;
        transition: background-size 0.4s linear;
        padding: 0 0 2% 0;

        &:hover {
            background-size: 0 1px, 100% 1px;
            color: var(--bd-secondary) !important;
        }
    }
}

.underline-white {
    & a {
        display: inline;
        background-image: linear-gradient(var(--bd-white), var(--bd-white)), linear-gradient(var(--bd-white), var(--bd-white));
        background-size: 0% 1px, 0 1px;
        background-position: 100% 100%, 0 83%;
        background-repeat: no-repeat;
        transition: background-size 0.4s linear;
        padding: 0 0 1% 0;

        &:hover {
            background-size: 0 1px, 100% 1px;
            color: var(--bd-white) !important;
        }
    }
}

/* display flex */
.flex-wrap-small {
    @media #{$sm,$xs} {
        flex-wrap: wrap !important;
    }
}

.d-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-flex-start {
    display: flex;
    align-items: center;
    justify-content: start;
}

.d-flex-items {
    display: flex;
    align-items: center;
}

.d-flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.has-separator {
    margin-right: 15px;
    padding-right: 15px;
    position: relative;

    &::before {
        position: absolute;
        content: " ";
        width: 1px;
        height: 20px;
        right: 0px;
        top: 50%;
        background: var(--bd-border-primary);
        transform: translateY(-50%);
    }
}

.has-separator-black {
    margin-right: 15px;
    padding-right: 15px;
    position: relative;

    &::before {
        position: absolute;
        content: " ";
        width: 1px;
        height: 20px;
        right: 0px;
        top: 50%;
        background: var(--bd-theme-black);
        transform: translateY(-50%);
    }
}

.img-hover {
    &:hover {
        img {
            transform: scale3d(1.07, 1.07, 1.07);
        }
    }
}

.has-position {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 1;
}

.checkbox-option {
    & input {
        display: none;

        &:checked {
            &~label {
                &::after {
                    background-color: var(--bd-primary);
                    border-color: var(--bd-primary);
                }

                &::before {
                    visibility: visible;
                    opacity: 1;
                }
            }
        }
    }

    & label {
        font-size: 16px;
        color: var(--bd-theme-black);
        position: relative;
        padding-left: 26px;
        z-index: 1;

        & a {
            &:hover {
                color: var(--bd-primary);
            }
        }

        &:hover {
            cursor: pointer;
        }

        span {
            margin-inline-start: 5px;
            color: var(--bd-theme-black);
        }

        i {
            color: var(--bd-rating-color);
        }
    }
}


/* gap */

.gap-05 {
    gap: 5px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-16 {
    gap: 16px;
}

.gap-20 {
    gap: 20px;
}

.gap-25 {
    gap: 25px;
}

.gap-30 {
    gap: 30px;
}

.gap-35 {
    gap: 35px;
}

/* Border Radius Short Code */

.radius-0 {
    border-radius: 0px;
}

.radius-6 {
    border-radius: 6px;
}

.radius-8 {
    border-radius: 8px;
}

.radius-10 {
    border-radius: 10px;
}

.radius-16 {
    border-radius: 16px;
}

.radius-24 {
    border-radius: 16px;
}

.radius-50 {
    border-radius: 50px;
}

code {
    font-size: 16px;
    color: var(--bd-body-text);
    word-wrap: break-word;
}

.text-border-highlights {
    position: relative;
    z-index: 1;

    span {
        position: absolute;
        inset-inline-start: 0;
        display: inline-block;
        z-index: -1;
        width: calc(100% - 3px);
    }
}

/* Height Short code */
.lh-1 {
    line-height: 1;
}

.h100vh {
    height: 100vh;
}

.h100p {
    height: 100%;
}

.h-1px {
    height: 1px;
}

.h-2px {
    height: 2px;
}

.h-3px {
    height: 3px;
}

.h-4px {
    height: 4px;
}

.h-5px {
    height: 5px;
}

.h-6px {
    height: 6px;
}

.h-7px {
    height: 7px;
}

.h-8px {
    height: 8px;
}

.h-9px {
    height: 9px;
}

.h-10px {
    height: 10px;
}

.h-15px {
    height: 15px;
}

.h-20px {
    height: 20px;
}

.h-40px {
    height: 40px;
}

/* Bottom Short Code */
.bottom-0 {
    inset-block-end: 0;
}

.bottom-5 {
    inset-block-end: 5px;
}

.bottom-6 {
    inset-block-end: 6px;
}

.bottom-7 {
    inset-block-end: 7px;
}

.bottom-8 {
    inset-block-end: 8px;
}

.bottom-9 {
    inset-block-end: 9px;
}

.bottom-10 {
    inset-block-end: 10px;
}

.bottom-15 {
    inset-block-end: 15px;
}

.bottom-20 {
    inset-block-end: 20px;
}

.bottom-25 {
    inset-block-end: 25px;
}

/* List Style None */
.list-none {
    ul {
        list-style: none;
    }
}

/* Font Size */
.fs-8 {
    font-size: 8px;
}

.fs-9 {
    font-size: 9px;
}

.fs-10 {
    font-size: 10px;
}

.fs-11 {
    font-size: 11px;
}

.fs-12 {
    font-size: 12px;
}

.fs-13 {
    font-size: 13px;
}

.fs-14 {
    font-size: 14px;
}

.fs-15 {
    font-size: 15px;
}

.fs-16 {
    font-size: 16px;
}

.fs-17 {
    font-size: 17px;
}

.fs-18 {
    font-size: 18px;
}

.fs-19 {
    font-size: 19px;
}

.fs-20 {
    font-size: 20px;
}

.fs-21 {
    font-size: 21px;
}

.fs-22 {
    font-size: 22px;
}

.fs-23 {
    font-size: 23px;
}

.fs-24 {
    font-size: 24px;
}

.fs-25 {
    font-size: 25px;
}

.fs-26 {
    font-size: 26px;
}

.fs-27 {
    font-size: 27px;
}

.fs-28 {
    font-size: 28px;
}

.fs-29 {
    font-size: 29px;
}

.fs-30 {
    font-size: 30px;

    @media #{$xs} {
        font-size: 24px;
    }
}

.fs-31 {
    font-size: 31px;
}

.fs-32 {
    font-size: 32px;
}

.fs-33 {
    font-size: 33px;
}

.fs-34 {
    font-size: 34px;
}

.fs-35 {
    font-size: 35px;
}

.fs-36 {
    font-size: 36px;
}

.fs-37 {
    font-size: 37px;
}

.fs-38 {
    font-size: 38px;
}

.fs-39 {
    font-size: 39px;
}

.fs-40 {
    font-size: 40px;
}

.fs-41 {
    font-size: 41px;
}

.fs-42 {
    font-size: 42px;
}

.fs-43 {
    font-size: 43px;
}

.fs-44 {
    font-size: 44px;
}

.fs-45 {
    font-size: 45px;
}

.fs-46 {
    font-size: 46px;
}

.fs-47 {
    font-size: 47px;
}

.fs-48 {
    font-size: 48px;
}

.fs-49 {
    font-size: 49px;
}

.fs-50 {
    font-size: 50px;

    @media #{$xl,$xs} {
        font-size: 40px;
    }
}

.fs-51 {
    font-size: 51px;
}

.fs-52 {
    font-size: 52px;
}

.fs-53 {
    font-size: 53px;
}

.fs-54 {
    font-size: 54px;
}

.fs-55 {
    font-size: 55px;
}

.fs-56 {
    font-size: 56px;
}

.fs-57 {
    font-size: 57px;
}

.fs-58 {
    font-size: 58px;
}

.fs-59 {
    font-size: 59px;
}

.fs-60 {
    font-size: 60px;
}

.fs-61 {
    font-size: 61px;
}

.fs-62 {
    font-size: 62px;
}

.fs-63 {
    font-size: 63px;
}

.fs-64 {
    font-size: 64px;
}

.fs-65 {
    font-size: 65px;
}

.fs-66 {
    font-size: 66px;
}

.fs-67 {
    font-size: 67px;
}

.fs-68 {
    font-size: 68px;
}

.fs-69 {
    font-size: 69px;
}

.fs-70 {
    font-size: 70px;
}

.fs-71 {
    font-size: 71px;
}

.fs-72 {
    font-size: 72px;
}

.fs-150 {
    font-size: 150px;
}

.fs-140 {
    font-size: 140px;

    @media #{$xl} {
        font-size: 120px;
    }
}

.fs-190 {
    font-size: 190px;
}

.fs-200 {
    font-size: 200px;
    @media #{$xl} {
        font-size: 170px;
    }
    @media #{$lg} {
        font-size: 150px;
    }
}

/* Font Weight */
.fw-1 {
    font-weight: var(--bd-fw-thin);
}

.fw-2 {
    font-weight: var(--bd-fw-elight);
}

.fw-3 {
    font-weight: var(--bd-fw-light);
}

.fw-4 {
    font-weight: var(--bd-fw-regular);
}

.fw-5 {
    font-weight: var(--bd-fw-medium);
}

.fw-6 {
    font-weight: var(--bd-fw-sbold);
}

.fw-7 {
    font-weight: var(--bd-fw-bold);
}

.fw-8 {
    font-weight: var(--bd-fw-ebold);
}

.fw-9 {
    font-weight: var(--bd-fw-black);
}

.swiper-shadow-add {
    padding: 15px 15px !important;
    margin: -15px -15px !important;
}

.table-head-bg {
    thead {
        tr th {
            background-color: var(--bd-bg-primary);
        }
    }
}

.latter-sp-2 {
    letter-spacing: 2px;
}

.filter-shadow {
    filter: drop-shadow(7px 10px 0px var(--bd-light));
}

.device-scroll {
    @media #{$sm,$xs} {
        overflow-x: scroll;
        overflow-y: hidden !important;
        overflow: scroll;
        overflow-y: scroll;
        overflow-y: scroll;
        flex-wrap: nowrap !important;
        padding-bottom: 10px;
        padding-bottom: 10px;
    }
}