// Public styles

.bptk-hidden {
  display: none !important;
}

.bptk-report-button-disabled {

  opacity: 50% !important;
  cursor: default !important;

  a {
    cursor: default !important;
  }
}

// Shade our moderated activities
#activity-stream {
  ul.activity-list {

  }
}

#buddypress .activity-list.bp-list .activity-item {
  &.moderated {
    background: repeating-linear-gradient(
                    45deg,
                    #FAF9F6,
                    #FAF9F6 10px,
                    rgba(250, 160, 160, 0.3) 10px,
                    rgba(250, 160, 160, 0.3) 20px
    );
  }
}

// Nouveau Styles (more icon based)
.bp-nouveau {
  .bptk-report-activity-button {
    &:before {
      content: "\f227";
    }

    &:after {
      max-width: none;
    }
  }

  .bptk-moderate-activity-button {
    &:before {
      content: "\f528";
    }

    &:after {
      max-width: none;
    }
  }
}

// Twenty Twenty Two
.twentytwentytwo {
  .bptk-moderate-text, .bptk-report-text {
    display: none;
  }
}

// BuddyBoss specific styles
.bptk_bb {

  #buddypress .bp-settings-container .bp-navs #bptk_blocked {

    &:before {
      content: '\E8C9';
    }
  }

  #bbpress-forums#bbpress-forums .bs-forums-items.list-view .bs-dropdown-wrap .bs-dropdown-wrap-inner .bs-dropdown .bbp-admin-links a.bbp-reply-report-link, #bbpress-forums#bbpress-forums .bs-forums-items.list-view .bs-dropdown-wrap .bs-dropdown-wrap-inner .bs-dropdown .bbp-admin-links a.bbp-topic-report-link {
    &:before {
      content: '\e8ea';
    }
  }

  #buddypress .activity-list .action.bp-generic-meta .button.bptk-report-button-disabled {
    color: #ccc;

    &:hover {
      .bptk-report-text {
        //opacity: 50% !important;
        color: #ccc;
      }
    }
  }

  .groups-meta {
    .bptk-report-group-button {
      margin-left: 12px !important;
    }
  }

  .bptk-report-activity-button, .bptk-moderate-activity-button {
    &:before {
      display: inline-block;
      text-rendering: auto;
      font-size: 22px;
      min-width: 22px;
      speak: none;
      font-style: normal;
      font-weight: 400;
      font-variant: normal;
      text-transform: none;
      line-height: 1;
      list-style: none;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      vertical-align: middle;
    }
  }

  .bptk-report-activity-button {
    &:before {
      content: "\ee9c";
    }
  }

  .bptk-moderate-activity-button {
    &:before {
      content: "\eece";
    }
  }
}

.bptk-report-modal {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  position: fixed;
  z-index: 999992;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 300px;
  max-width: 90%;
  height: 400px;
  max-height: 90%;
  background-color: #fff;
  border-radius: 2%;

  .bptk-report-modal-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 20px;
    overflow: auto;
    box-sizing: border-box;

    textarea {
      height: auto;
      resize: none;
    }

    p {
      margin: 0px;
      font-weight: bold;
    }

    #bptk-report-type {
      padding: 3px;
    }

    .bptk-report-modal-inner-header {

      display: flex;
      justify-content: space-between;


      .bptk-report-close-button {
        cursor: pointer;
        font-size: 80%;
        padding: 0px;
      }
    }
  }
}

.bptk-report-closed {
  display: none;
}

.bptk-report-modal-overlay {
  z-index: 999991;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#buddypress .bptk-report-message-button {

  font-size: 80%;
}

#bbpress-forums .bptk-report-forum-topic-button {

  cursor: pointer;

  &:not(.bptk-Youzify) {
    float: left;
    margin-bottom: 10px;
  }


}

#youzify {
  .bptk-block-profile.youzify-name, .bptk-report-button.youzify-name, .bptk-suspend-profile.youzify-name {
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 24px;
    font-weight: 400;
    margin: 0;
    color: #fff;
    display: inline;
    margin: 0px 4px;

    i {
      margin-right: 3px;
      font-size: 10px;
    }

    a {
      color: #fff;
      font-size: 10px;
    }

    span {
      font-size: 10px;
    }
  }

  .activity-meta .bptk-report-activity-button, .acomment-options .bptk-report-activity-comment-button {

    &:before {

      content: "\f024";
    }
  }

  .bptk-report-activity-button {
    color: #b1b0b0;
    font-size: 10px;
    display: inline-block;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 10px;

    &:before {
      font-size: 12px;
      content: "\f024";
      margin-right: 5px;
    }
  }


  #youzify-members-directory .bptk-block-list {

    a {
      justify-content: center;

      &:before {
        content: '\2297';
        font-size: 20px;
        font-weight: 500;
        margin-right: 8px;
      }
    }

  }

  .youzify-members-directory .bptk-block-list {
    justify-content: center;
  }

  #youzify-group-header .bptk-block-profile {
    display: none;
  }

  #youzify-group-header .bptk-report-button {
    display: none;
  }

  #youzify-group-header .bptk-suspend-profile {
    display: none;
  }
}





#bptk-blocked-template {

  text-align: center;

  #item-header-avatar, #item-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .bptk-block-profile {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
  }
}

// Enterprise styles

.single-report {

  .report {
    margin: 0px 20px;
  }

  .entry-members,
  .entry-meta,
  .entry-moderation-panel,
  .entry-comments {

    margin: 10px 0px;
  }

  .entry-members {

    display: flex;
    justify-content: space-evenly;
    margin-top: 20px;

    @media (max-width: 640px) {
      flex-direction: column;
    }

    .entry-members-reporter, .entry-members-reported {

      display: flex;
      flex-direction: column;
      background: #fff;
      border: 1px solid #e7e9ec;
      border-radius: 4px;
      margin-bottom: 20px;
      padding: 20px;

      h3 {
        margin-bottom: 5px;
      }

      .entry-members-inner {

        display: flex;

        .entry-members-avatar {

          width: 75px;
          height: auto;
          margin: 20px;
        }

        .entry-members-details {

          display: flex;
          flex-direction: column;
          align-items: start;
          justify-content: center;
        }
      }
    }
  }

  .entry-meta {
    display: flex;
    flex-direction: column;
    align-items: start;

    .entry-meta-inner {

      ul {

        list-style: none;
        margin: 0px;
        padding-left: 0px;

        li {

          .label {
            font-weight: bold;
          }
        }
      }
    }
  }

  .entry-comments {
    .commentlist {
      list-style: none;
      margin: 0px;
      padding: 0px;

      li {
        margin: 5px;
      }

      #reply-title {
        margin-top: 20px;
      }
    }
  }

  #bptk-frontend-moderation-panel {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1rem;
    margin-bottom: 20px;

    .button {
      background-color: #00ab66;
      box-shadow: inset 0 -0.6em 1em -0.35em rgba(0, 0, 0, 0.17), inset 0 0.6em 2em -0.3em rgba(255, 255, 255, 0.15), inset 0 0 0em 0.05em rgba(255, 255, 255, 0.12);
      text-align: center;
      position: relative;
      margin: 10px 0px;
      padding: 1em;
      border-radius: 0.2em;
      color: #fff;
      display: flex;
      justify-content: center;

      span:nth-of-type(odd) {
        display: none;
      }

      span:nth-of-type(even) {
        display: block;
      }

      &.bptk-button-true {
        background-color: #cc3333;

        span:nth-of-type(even) {
          display: none;
        }

        span:nth-of-type(odd) {
          display: block;
        }
      }
    }
  }
}

.archive-report {

  .report {

    border: 1px solid gray;
    margin: 10px;
    padding: 20px 40px 20px 20px;
    border-radius: 5px;

    .entry-header {
      margin-bottom: 10px;

      .entry-meta {

        flex-direction: column;
        align-items: flex-start;

        p {
          margin-bottom: 0px;
        }
      }


    }

    .entry-content p {
      margin-bottom: 10px;
    }

    .entry-title {
      font-size: 1rem;
    }

    &.report-unread {

      border-width: 3px;

      .entry-title {
        font-weight: bold;
      }
    }


  }

}

.buddyboss-theme {

  .archive-report {

    .report {

      position: relative;

      &.report-unread {

        .ribbon1 {
          position: absolute;
          top: -6.1px;
          right: 10px;
        }

        .ribbon1:after {
          position: absolute;
          content: "";
          width: 0;
          height: 0;
          border-left: 25px solid transparent;
          border-right: 25px solid transparent;
          border-top: 7px solid #007CFF;
        }

        .ribbon1 span {
          position: relative;
          display: block;
          text-align: center;
          color: #fff;
          background: #007CFF;
          font-size: 14px;
          line-height: 1;
          padding: 12px 8px 10px;
          border-top-right-radius: 8px;
          width: 50px;
        }

        .ribbon1 span:before, .ribbon1 span:after {
          position: absolute;
          content: "";
        }

        .ribbon1 span:before {
          height: 6px;
          width: 6px;
          left: -6px;
          top: 0;
          background: #007CFF;
        }

        .ribbon1 span:after {
          height: 6px;
          width: 8px;
          left: -8px;
          top: 0;
          border-radius: 8px 8px 0 0;
          background: #007CFF;
        }
      }
    }
  }
}
