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

/*----------------------------------------*/
/*  3.2.5 Sidebar css
/*----------------------------------------*/

.bd-sidebar-search-form {
    position: relative;

    input {
        width: 100%;
        background-color: var(--bd-white);
        border-radius: 4px;
        height: 50px;
        padding-inline-start: 20px;
        padding-inline-end: 55px;

        &:focus {
            border-color: var(--bd-primary);
        }
    }

    button {
        font-size: 20px;
        color: var(--bd-theme-black);
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background-color: transparent;
        border-radius: 50%;
        transition: all 0.3s ease-in-out;

        &:hover {
            color: var(--bd-primary);
        }
    }
}

.sidebar-right {
    margin-left: 15px;
    @media #{$md,$sm,$xs} {
        margin-left: 0;
    }
}

.sidebar-left {
    margin-right: 15px;
    @media #{$md,$sm,$xs} {
        margin-right: 0;
    }
}

.bd-blog-widget {
    background: var(--bd-white);
    box-shadow: 0px 10px 30px rgba(28, 51, 84, 0.08);
    padding: 30px 30px;
    border-radius: 5px;

    &:not(:last-child) {
        margin-bottom: 30px;
    }

    &.widget_categories ul li {
        align-items: center;
        display: flex;
        justify-content: space-between;
        color: var(--bd-theme-black);
        font-weight: 500;
        transition: all 0.3s ease-in-out;

        &:not(:last-child) {
            margin-bottom: 10px;
        }
    }
}

/* tag cloud */
.tagcloud a {
    font-size: 16px !important;
    color: var(--bd-taxonomy-color);
    font-weight: 500;
    border: 1px solid var(--bd-border-primary);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 36px;
    margin: 5px;
    position: relative;
    transition: all 0.3s ease-in-out;

    &:hover {
        color: var(--bd-white);
        background-color: var(--bd-primary);
        border-color: var(--bd-primary);
    }
}

.bd-sidebar-promotion {
    .thumb {
        img {
            width: 100%;
            height: 100%;
            border-radius: 5px;
        }
    }
}