/**
 *
 * @authors kris
 * @date    2024-01-17 10:05:59
 * @version 1.0
 */
@import "./global";
@import "../../@{engine}/less/global";

.businessOrCareerWrap {
  width: 100%;
  max-width: 1200px;
  min-height: 500px;
  margin: 0 auto;

  p {
    line-height: 22px;
    word-break: break-word;
  }

  a {
    color: #0f0f0f;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  * {
    box-sizing: border-box;
    font-size: 14px;
  }

  // Member Art Collections Container
  .member_art_collections {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    background: #fff;
    min-height: 100vh;
    position: relative;
    .publicFont2;
  }

  // Header
  .mac_header {
    padding-top: 16px;
    text-align: left;
  }

  .mac_title {
    .publicFont4;
    font-size: 34px;
    font-weight: bold;
    line-height: 1.2;
    color: #0f0f0f;
    margin: 0 0 24px 0;
    text-transform: uppercase;
  }

  .mac_desc {
    font-size: 16px;
    line-height: 1.5;
    color: #0f0f0f;
    margin: 0 0 20px 0;
  }

  // Sort - member_art_collection
  .member_art_collection {
    width: 98%;
    height: 35px;
    padding-left: 16px;
    box-sizing: border-box;
    margin-top: 24px;

    .htmlBox {
      cursor: pointer;
      padding-right: 23px;
      font-size: 15px;
      float: left;
      position: relative;
      .publicFont3;

      .htmlBoxCon {
        span {
          .publicFont3;
        }
      }

      &::after {
        content: "";
        display: block;
        position: absolute;
        width: 8px;
        height: 8px;
        border-left: 1px solid #0f0f0f;
        border-bottom: 1px solid #0f0f0f;
        transform: rotate(-45deg);
        right: 2px;
        top: 5px;
        pointer-events: none;
      }

      &.active::after {
        transform: rotate(135deg);
        top: 8px;
      }
    }

    .htmlBoxShow {
      margin-left: 10px;
      -webkit-tap-highlight-color: transparent;
    }

    .filterBoxA {
      background: #fff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
      position: absolute;
      width: 214px;
      z-index: 20;
      display: none;

      &.active {
        display: block;
        margin-top: 8px;
      }

      &:after {
        position: absolute;
        display: block;
        top: -8px;
        left: 50%;
        margin-left: -7px;
        width: 0;
        height: 0px;
        content: "";
        border-style: solid;
        border-width: 8px;
        border-color: #fff #fff transparent transparent;
        transform: rotate(-45deg);
        box-shadow: 3px -3px 3px rgba(0, 0, 0, 0.02);
      }

      .dropItem {
        padding: 20px 0;
        list-style: none;
        margin: 0;

        li {
          margin: 0 10px 0 24px;
          line-height: 31px;
          text-align: left;
          cursor: pointer;
          position: relative;
          padding: 0 18px 0 0;
          font-size: 15px;
          user-select: none;

          span {
            .publicFont2;
          }

          &:hover span {
            text-decoration: underline;
          }

          &.active {
            color: #0f0f0f;

            &:after {
              content: "";
              position: absolute;
              top: 8px;
              right: 4px;
              width: 6px;
              height: 10px;
              border-style: solid;
              border-width: 0 2px 2px 0;
              transform: rotateZ(45deg);
              color: @mainColor;
            }
          }

          &.dropItemNote {
            cursor: inherit;
            padding: 0;
            color: #aaa;
            text-align: center;
            display: flex;
            justify-content: center;

            span {
              display: block;
              background-color: #fff;
              padding: 0 10px;
              position: relative;
              z-index: 2;
            }

            &:hover span {
              text-decoration: none;
            }

            &:before {
              content: "";
              width: 100%;
              border-bottom: 1px dashed #aaa;
              height: 13px;
              left: 0;
              top: 0;
              position: absolute;
            }
          }
        }
      }
    }
  }

  // Card List
  .mac_list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    width: 100%;
  }

  // Card
  .mac_card {
    background: #fff;
    border: 0.1rem solid #ececee;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .mac_card_img_wrap {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    margin: 0 0 16px;
  }

  .mac_card_img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: blur(20px);
    transform: translate3d(0, 0, 0);
  }

  .mac_img_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mac_overlay_text {
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    text-transform: uppercase;
    cursor: pointer;
    .publicFont2;
  }

  .mac_photo_count {
    position: absolute;
    bottom: 13px;
    right: 8px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    padding: 2px 8px 3.5px 5px;
    height: 19px;
    background: rgba(15, 15, 15, 0.4);
    color: #fff;
    font-size: 13px;
    gap: 4px;

    .camera {
      width: 14px;
      height: 14px;
      background: url(../../common/svgs/icoCamera3.svg) no-repeat center;
      background-size: contain;
    }
  }
  .mac_card_title {
    font-size: 15px;
    font-weight: 600;
    color: #0f0f0f;
    margin: 0 0 8px 0;
    line-height: 1.4;
    .publicFont3;
  }

  .mac_card_desc {
    font-size: 14px;
    line-height: 21px;
    color: #0f0f0f;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    .publicFont2;
  }


  // Interested Button
  .mac_interested_wrap {
    padding: 16px 0;
    text-align: center;
  }

  .mac_interested_btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #0f0f0f;
    border-radius: 0;
    color: #0f0f0f;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    .publicFont3;

    &:hover {
      background: #0f0f0f;
      color: #fff;
      text-decoration: none;
    }
  }

  // User Info
  .mac_user_info {
    display: flex;
    align-items: center;
    padding: 0 16px;
  }

  .mac_avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    display: block;
  }

  .mac_avatar_placeholder {
    width: 38px;
    height: 38px;
    background-image: url("../img/avatar_ic_defult.png");
    background-color: #e8e8e8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
  }

  .mac_user_detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mac_username {
    font-size: 14px;
    line-height: 19px;
    color: #0f0f0f;
    text-decoration: none;
    text-transform: uppercase;
    .publicFont3;
  }

  .mac_user_meta {
    font-size: 14px;
    line-height: 19px;
    color: #7b7b7b;
    .publicFont2;
  }

  // Timeline Subject
  .mac_timeline_subject {
    font-size: 15px;
    line-height: 21px;
    color: #0f0f0f;
    padding: 12px 0;
    .publicFont3;
    font-weight: bold;
  }

  // Actions
  .mac_actions {
    display: flex;
    align-items: center;
    padding: 28px 16px 16px;
  }

  .mac_action_btn {
    display: flex;
    align-items: center;
    height: 32px;
    color: #666;
    text-decoration: none;
    margin-right: 8px;
    width: 50%;
    justify-content: flex-start;
    &:hover {
      color: #0f0f0f;
    }

    i {
      color: #000;
      display: block;
      width: 26px;
      height: 20px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
    }
  }

  .mac_like_btn i {
    .importSvgBg(#000, "../svgs/icoPraise.svg");
  }

  .mac_comment_btn i {
    .importSvgBg(#000, "../svgs/overall_ic_comments_normal.svg");
  }

  // Pagination
  .mac_pagination {
    margin-top: 32px;
    padding-bottom: 20px;
  }
}

// Desktop styles
@media screen and (min-width: 768px) {
  .businessOrCareerWrap {
    .member_art_collections {
      max-width: 100%;
      padding: 0 24px 100px;
    }

    .mac_header {
      text-align: left;
      padding-top: 40px;
      margin-bottom: 40px;
    }

    .mac_title {
      font-size: 38px;
    }

    .mac_list {
      display: block;
      column-count: 3;
      column-gap: 24px;
    }

    .mac_card {
      break-inside: avoid;
      margin-bottom: 24px;
      display: inline-block;
      width: 100%;
      text-align: center;
    }

    .mac_card_img_wrap {
      margin-bottom: 12px;
    }

    .mac_card_content {
      padding: 0 8px;
      text-align: center;
    }

    .mac_card_title {
      font-size: 16px;
      margin-bottom: 4px;
      text-align: center;
    }

    .mac_card_desc {
      font-size: 14px;
      line-height: 1.5;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      text-align: center;
      margin-bottom: 12px;
    }

    .mac_user_info {
      flex-direction: column;
      align-items: center;
      padding: 12px 0;
    }

    .mac_avatar {
      margin-right: 0;
      margin-bottom: 8px;
    }

    .mac_user_detail {
      align-items: center;
      text-align: center;
    }

    .mac_username {
      font-size: 13px;
      font-weight: bold;
    }

    .mac_user_meta {
      font-size: 12px;
    }

    .mac_actions {
      justify-content: center;
      padding: 8px 16px 20px;
      max-width: 160px;
      margin: 0 auto;
    }

    .mac_action_btn {
      width: 50%;
      margin: 0;

      i {
        width: 22px;
        height: 18px;
      }

      &.mac_like_btn {
        justify-content: flex-start;
      }

      &.mac_comment_btn {
        justify-content: flex-end;
      }
    }
  }
}

@media screen and (min-width: 1200px) {
  .businessOrCareerWrap {
    .member_art_collections {
      max-width: 1200px;
    }
  }
}

// Mobile styles
@media screen and (max-width: 768px) {
  .businessOrCareerWrap {
    padding-top: 0;

    .member_art_collections {
      padding: 0 8px;
    }

    .mac_header {
      padding-top: 16px;
    }

    .mac_title {
      margin: 0 0 24px 0;
      line-height: 1.2;
    }

    .mac_desc {
      font-size: 16px;
      line-height: 1.5;
      margin-bottom: 16px;
      .publicFont2;
      font-family: STIXTwoText-Regular, Arial, Helvetica, sans-serif;
    }

    .member_art_collection {
      padding-left: 0;
      margin-top: 0;
      height: 21px;
      justify-content: space-between;
      margin-bottom: 36px;
      .htmlBox {
        font-size: 14px;
        line-height: 21px;
        font-family: STIXTwoText-Bold, Arial, Helvetica, sans-serif;

        .htmlBoxCon span {
          font-size: 14px;
          line-height: 21px;
          font-family: STIXTwoText-Bold, Arial, Helvetica, sans-serif;
        }

        &::after {
          top: 5px;
          width: 6px;
          height: 6px;
        }
      }

      .filterBoxA.active {
        width: 16rem;
        position: absolute;
      }
    }

    .mac_list {
      padding-top: 0;
    }

    .mac_card_content {
      padding: 0 16px 8px;
      word-break: break-word;
      color: #0f0f0f;
      p, a {
        font-size: 15px;
        line-height: 23px;
      }
    }

    .mac_card_desc {
      font-size: 15px;
      line-height: 23px;
    }



    .mac_interested_wrap {
      display: none;
    }

    .mac_username {
      font-size: 14px;
      line-height: 19px;
      .publicFont3;
    }

    .mac_user_meta {
      font-size: 14px;
      line-height: 19px;
      .publicFont2;
    }

    .mac_timeline_subject {
      font-size: 15px;
      line-height: 21px;
      padding: 10px 0;
    }
  }
}
