@use "variables" as *;

/*=========== Forum Post Widget css ==========*/

.forum-post-widget {
  .widget-header {
    h2 {
      font-size: 40px;
      font-weight: 700;
      line-height: 50px;
      color: #000;
    }

    .action_btn {
      padding-bottom: 8px;
      padding-top: 8px;
      box-shadow: none;

      &:hover {
        box-shadow: 0 20px 30px 0 rgba(17, 166, 131, 0.24);
      }
    }
  }

  .post-filter-widget {
    box-shadow: 0 1.6px 3.5px 0 #334d7226, 0 0.5px 1px 0 #334d721a;
    border-radius: 10px;
    background-color: var(--bs-white);
    padding: 16.5px 30px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;

    .single-filter-item {
      margin-right: 30px;
      display: flex;
      align-items: center;
      a {
        &.data-active {
          color: var(--bbpc_brand_color);
        }
      }
      i {
        margin-right: 5px;
        font-size: 12px;
      }

      @media (max-width: 1200px) and (min-width: 992px) {
        margin-right: 20px;
      }

      &:last-child {
        margin-right: 0;
      }

      input[type="radio"] {
        display: none;

        &:checked {
          display: none;

          ~ label {
            .main-img {
              display: none;
            }

            .hover-img {
              display: block;
            }

            color: $brand_color;
          }
        }
      }

      label {
        display: flex;
        align-items: center;
        cursor: pointer;

        img {
          margin-right: 8.5px;
          margin-bottom: 1px;
        }

        .main-img {
          display: block;
        }

        .hover-img {
          display: none;
        }

        font-size: 14px;
        font-weight: 400;
        line-height: 16px;
        color: #6a737c;
      }
    }
  }
}

.single-forum-post-widget {
  box-shadow: 0 1.6px 3.5px 0 #334d7226, 0 0.5px 1px 0 #334d721a;
  border-radius: 10px;
  background-color: var(--bs-white);
  transition: all 0.3s ease-out;
  padding: 22px 35px 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;

  &:first-child {
    margin-top: 0;
  }

  &:hover {
    box-shadow: 0 20px 45px 0 #334d7226;
    transform: translateX(2px);

    .post-title {
      h6 {
        a {
          color: $brand_color;
        }
      }
    }
  }

  .post-title {
    margin-bottom: 10px;

    h6 {
      margin-top: 0;
      margin-bottom: 0;
      line-height: 22px;
      font-size: 16px;
      font-weight: 500;

      a {
        color: var(--black_800);
        font-size:18px;
      }
    }

    i {
      font-size: 15px;
      color: #2ed83f;
      vertical-align: middle;
      margin-left: 6px;
    }
  }

  .post-info {
    display: flex;
    flex-wrap: wrap;

    > div {
      margin-right: 15px;

      img {
        margin-right: 5px;
        height: 15px;
        width: 15px;
        margin-top: 0px;
      }

      color: var(--black_600);
      font-size: 14px;
      font-weight: 400;
      line-height: 16px;
    }

    .post-category {
      a {
        color: #4a6ee0;
      }
    }
  }

  .post-tags {
    display: flex;

    .single-tag {
      padding: 3px 9.5px;
      border-radius: 3px;
      font-size: 12px;
      font-weight: 400;
      line-height: 14px;
      color: #fff;
      margin: 12px 10px 0 0;

      &:last-child {
        margin-right: 0;
      }

      &.tag-jq {
        background-color: #f7ab40;
      }

      &.tag-php {
        background-color: #7543e0;
      }

      &.tag-wp {
        background-color: #6078ce;
      }

      &.tag-js {
        background-color: #ff7245;
      }

      &.tag-dvlp {
        background-color: #48a6ea;
      }

      &.tag-ecmrc {
        background-color: #333333;
      }

      &.tag-foram {
        background-color: $brand_color;
      }

      &.tag-hlp {
        background-color: #2c53df;
      }

      &.tag-sprt {
        background-color: #0cc72a;
      }
    }
  }

  .post-reach {
    border-left: 1px solid var(--black_50);
    padding-left: 10px;

    > div {
      font-size: 12px;
      font-weight: 400;
      line-height: 14px;
      color: #848d95;
      margin-top: 10px;
      display: flex;
      align-items: center;

      &:first-child {
        margin-top: 0;
      }

      img {
        margin-right: 5px;
      }
    }
  }
}

.single-forum-post-widget {
  .post-category {
    img {
      width: 20px;
      height: auto;
      border-radius: 50%;
    }
  }
}

.single-filter-item {
  a {
    color: var(--black_600);
    &:hover {
      text-decoration: none !important;
    }
  }
}

.single-forum-post-widget {
  .post-content {
    .post-category {
      a {
        font-size: 14px;
        color: var(--black_600);
        gap: 5px;
        &:hover {
          color: var(--bbpc_brand_color);
          text-decoration: none;
        }
      }
    }
  }
}

body{
  &.body_dark {
    .forum-post-widget{
      .post-filter-widget{
        .single-filter-item{
          svg, path {
            fill: darkgrey;
          }
        } 
      } 
    }
  } 
}

#aj-post-filter-widget{
  svg {
    circle.bbpc-preloader{
        stroke: var(--bbpc_brand_color) !important;
    }
  }
}