@import "../../app/variables";

.sidebar {
    .recent-posts {
        background:$pure-white;
        padding: 20px;
        box-shadow: 0 5px 20px $shadow-extra-light;
    }
    .recent-title {
        // color: $primary-coral;
        font-weight: 700;
        margin-bottom: 15px;
        position: relative;
    }
    // .recent-title::after {
    //     content: "";
    //     display: block;
    //     width: 40px;
    //     height: 3px;
    //     background: $primary-coral;
    //     margin-top: 6px;
    //     border-radius: 2px;
    // }
    .recent-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .recent-item {
        padding: 10px 0;
        border-bottom: 1px solid $primary-blue;
    }

    .recent-item:last-child {
        border-bottom: none;
    }

    .recent-link {
        text-decoration: none;
        color:$text-dark;
        transition: all 0.3s ease;
        font-size: 14px;
        line-height: 1.8;
    }

    .recent-link:hover {
        color:$primary-coral;
        padding-right: 5px;
    }
    //tag
    .tags-box {
  padding: 20px;
//   background: $pure-white;
//   border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  margin-top: 24px;
}

.tags-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
}

.tags-title::after {
  content: "";
  width: 40px;
  height: 3px;
  background: $primary-gold;
  position: absolute;
  bottom: -6px;
  right: 0;
  border-radius: 4px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-item {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  background:$primary-blue;
  border-radius: 999px;
  color: $text-dark;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tag-item:hover {
  background: $primary-gold;
  color: $pure-white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.25);
}

    input:not([type="checkbox"]):not([type="radio"]),
    textarea {
        font-size: 1rem;
        font-weight: 400;
        display: block;
        width: 100%;
        padding: 8px 56px 8px 0 !important;
        color: #494949;
        border: 2px solid rgba(0, 0, 0, 0);
        background-color: rgba(0, 0, 0, 0);
        outline: none;
    }

    .accordion-button::after {
        display: none !important;
    }

    .accordion-button:not(.collapsed) {
        background-color: transparent !important;
    }

    .accordion-item:first-of-type>.accordion-header .accordion-button {
        border-top-right-radius: unset !important;
        border-top-left-radius: unset !important;
    }

    .title {
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }

    .subtitle {
        // color: var(--text-color);
        font-size: 0.75rem;
        font-weight: 500;
        margin-bottom: 2rem;
    }

    ul {
        padding: 0;

        li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;

            span {
                line-height: 18px;
                transition: all ease 500ms;
                cursor: pointer;
            }

            svg {
                @extend span;
            }
        }
    }

    .most-popular {
        border-radius: 10px;
        background-color: #f0f4fc;
        width: 100%;
        margin-bottom: 1rem;


    }

    .most-popular-card {
        padding: 0.5rem;
        border-radius: 10px;
        display: flex;
        align-items: start;
        gap: 0.5rem;
        margin-bottom: 1rem;

        &:hover {
            .image {
                transform: scale(1.05);
            }
        }

        .image {
            position: relative;
            transition: all ease 300ms;

            img {
                width: 78px;
                height: 69px;
                border-radius: 10px;
                object-fit: cover;
                object-position: center;
            }

            &::after {
                content: "";
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                right: 0;
                border-radius: 10px;
            }
        }

        .title {
            font-size: 0.75rem;
            font-weight: 800;
            color: #494949;
            line-height: 24px;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow-y: hidden;
            -webkit-line-clamp: 2;
            margin: 0;

        }

        .info {
            // display: flex;
            gap: 0.5rem;
            margin: 0;
            padding: 0;
            flex-wrap: wrap;

            .price {
                font-size: 0.625rem;
                font-weight: 800;
                color: #494949;
            }

            .category {
                padding: 0.1px 0.3rem;
                font-size: 0.525rem;
                border-radius: 50px;
            }
        }
    }

    .addvertise {
        padding: 0.5rem 0;
        margin-bottom: 1rem;

        a {
            img {
                width: 100%;
                object-fit: cover;
                object-position: center;
            }
        }
    }

    .most-popular-table {
        margin-bottom: 1rem;

        .most-popular-card-rows {
            padding: 1rem;
            transition: all ease 300ms;
            cursor: pointer;

            .title {
                font-size: 0.75rem;
                font-weight: 800;
                line-height: 24px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow-y: hidden;
                -webkit-line-clamp: 2;
                margin-bottom: 0.5rem;
            }

            .info {
                display: flex;
                gap: 0.5rem;
                margin: 0;
                padding: 0;
                flex-wrap: wrap;

                li {
                    font-size: 0.625rem;
                    font-weight: 800;
                }

                .category {
                    padding: 0.1rem 0.3rem;
                    border-radius: 50px;
                }
            }

            &:nth-child(2n) {

                &:hover {
                    background-color: transparent;
                }
            }
        }
    }

}