@use "variables" as *;

// ============================================================
// Help Center Cards — Layout 3 / Gutenberg "help-center"
// ============================================================
.bbpc-hc-wrap {
  .bbpc-hc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--black_90);
    border: 1px solid var(--black_90);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(2, 47, 57, 0.08);

    @media (max-width: 991px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 600px) {
      grid-template-columns: 1fr;
    }
  }

  .bbpc-hc-card {
    background: var(--bs-white);
    padding: 26px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    position: relative;
    transition: background 0.18s ease;

    &:hover {
      background: var(--black_25);
      text-decoration: none;

      .bbpc-hc-arrow {
        opacity: 1;
        transform: translateX(3px);
      }
    }
  }

  .bbpc-hc-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .bbpc-hc-body {
    flex: 1;
    min-width: 0;

    .bbpc-hc-title {
      margin: 0 0 4px;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.3;
      letter-spacing: -0.01em;
      color: var(--h_title);
    }

    .bbpc-hc-desc {
      margin: 0;
      font-size: 13.5px;
      line-height: 1.5;
      color: $p_color;
    }

    .bbpc-hc-count {
      display: inline-block;
      margin-top: 8px;
      font-size: 11.5px;
      font-weight: 600;
      color: $brand_color;
      letter-spacing: 0.02em;
      text-decoration: none;
    }
  }

  .bbpc-hc-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    line-height: 1;
    color: $black_300;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
}

// ============================================================
.communities-boxes {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -30px;
  gap: 30px;

  @media (max-width: 1025px) {
    margin: 0 -10px;
  }

  @media(max-width: 992px) {
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% + 30px);
  }

  @media(max-width: 420px) {
    width: calc(100% + 15px);

  }

  .com-box {
    text-align: center;
    margin-bottom: 57px;
    width: 20%;
    flex: 0 0 200px;

    @media(max-width: 1200px) {
      flex: 0 0 165px;
    }

    @media(max-width: 991px) {
      flex: 0 0 180px;
    }

    @media(max-width: 768px) {
      flex: 0 0 185px;
    }

    @media(max-width: 426px) {
      flex: 0 0 170px;
      margin-bottom: 30px;
    }

    .icon-container {
      border-radius: 6px;
      background: var(--bs-white);
      box-shadow: 0 40px 70px 0 rgba(2, 47, 57, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100px;
      width: 100px;
      margin: 0 auto 20px;
    }

    .icon-container img {
      width: 40px;
      height: 40px;
      object-fit: cover;
    }

    .com-box-content {
      .title {
        font-size: 20px;
        line-height: 26px;
        font-weight: 500;
        color: var(--black_800);
        margin-bottom: 5px;
        transition: all 0.3s ease-in-out;
        letter-spacing: normal;
        margin-top: 10px;

        a {
          color: var(--black_800);

          &:hover {
            color: $brand_color;
            text-decoration: none;
          }
        }

        &:hover {
          color: $brand_color;
        }
      }

      .total-post {
        color: $p_color;
        font-size: 14px;
        margin-top: 0;
      }
    }


  }
}

.more-communities {
  padding: 22px 0;
  border-top: 1px solid #e8ecee;
  border-bottom: 1px solid #e8ecee;
  margin-top: 40px;

  .collapse-wrap,
  .forumax-collapse-wrap {
    margin-top: 80px;
    display: none;
  }

  .collapse-btn-wrap,
  .forumax-collapse-btn-wrap {
    text-align: center;
    display: table;
    color: var(--black_600);
    font-weight: 500;
    margin: auto;

    &:hover {
      text-decoration: none;
      color: var(--black_800);
    }

    svg {
      position: relative;
      vertical-align: middle;
      display: inline;
    }

    .icon_plus,
    .icon_minus {

      path,
      line {
        stroke: var(--bbpc_brand_color);
      }
    }

    .icon_minus {
      display: none;
    }

    &.active {
      .icon_plus {
        display: none;
      }

      .icon_minus {
        display: initial;
      }
    }
  }
}



/** === Widgets === **/
.widget_display_stats dl dt {
  float: left;
  clear: left;
  margin: 0 0 10px;
  font-weight: 500;
}

.widget_display_stats dl dd {
  float: right;
  margin: 0;
}

.widget_display_replies li:before {
  font-family: eleganticons;
  content: "w";
  font-size: 15px !important;
  margin: 0 12px 0 0 !important;
  padding: 0px !important;
  line-height: 23px;
}


.widget_display_topics li {
  div {
    color: var(--black_400);
  }

  &::before {
    font-family: eleganticons;
    content: "b";
    margin: -3px 12px 0 0;
    font-size: 15px;
    color: var(--black_800);
    position: absolute;
    left: 0;
    top: 0;
  }
}

.widget_display_topics .bbp-forum-title,
.widget_display_replies .bbp-forum-title {
  display: inline-block;
  line-height: 1.36;
  color: var(--black_900);
}

.widget_display_topics li {
  padding-left: 30px;
}

.widget_display_topics li,
.widget_display_replies li {
  position: relative;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7e9;
  font-size: 16px;

  time {
    color: var(--black_400);
    display: block;
    font-size: 14px;
  }

  div {
    font-size: 14px;
  }
}

.widget_display_topics li a,
.widget_display_replies li a {
  color: var(--black_800);

  .bbp-author-avatar {
    img {
      border-radius: 50px !important;
    }
  }
}

.widget_display_replies li {
  .bbp-author-avatar {
    margin-right: 5px;
  }
}

.widget_display_topics li a:hover,
.widget_display_replies li a:hover {
  color: var(--bbpc_brand_color);
}

.bbp-logged-in .avatar {
  float: left;
  margin: 0 15px 0 0;
  border-radius: 99%;
}

.bbp-logged-in h4 {
  font-weight: normal;
  font-size: 18px;
  clear: none;
  margin: 0 0 5px;
}

.bbp-logged-in h4 a {
  color: #333;
  font-weight: 500;
}

.bbp-logged-in a.button.logout-link:hover,
.bbp-logged-in h4 a:hover {
  color: var(--bbpc_brand_color);
}

.bbp-logged-in a.button.logout-link:hover,
.bbp-logged-in a.button.logout-link {
  color: #666;
}

.forum-post-content .content img {
  max-width: 100%;
  height: auto;
}

ul.bbp-topics-widget.newness img {
  border-radius: 50%;
  margin: 5px;
}

.bbp-submit-wrapper {
  float: left;
  margin-top: 0;
}

.forum-post-content .forum-post-btm .taxonomy.forum-post-cat {
  display: flex;
}

.bbp-topic-reply-link {
  padding: 6px 20px;
  font-weight: 400;
  border-radius: 2px;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.18s ease-in-out;
  background: #fff;
  border: 1px solid #d0d8dc;
  color: var(--black_800);
  height: 26px;
  font-size: 12px;
  line-height: 26px;
}

.comment-content .bbp-topic-reply-link:hover {
  background: #fff;
  border: 1px solid var(--black_800);
  color: var(--black_800);
}

.page-numbers {
  cursor: pointer !important;
}

.pagination-wrapper .page-numbers.next {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}

.post-header .support-total-info li a {
  font-weight: 400;
}

.post-header .support-total-info li a {
  color: #6b707f;
}

.post-header .support-total-info li a.open-data.loading {
  color: var(--black_800);
  font-weight: 500;
}

#tagList {
  padding-left: 40px;
}

.userlist {
  padding-left: 15px;
}

.post-header .category-menu .all-users a {
  position: relative;
}

