@import '../../common/style/gp-match/mixin.scss';
@import '../../common/style/gp-match/palette.scss';

/*队伍-报名*/
.tip-toc-signup-team {
  width: 7.02rem;
  margin: 0 auto .24rem;
  background: linear-gradient(89.49deg, rgba(230, 234, 239, .7) 10.72%, rgba(252, 252, 252, .7) 94.4%);
  // border: .02rem solid rgba(252, 252, 252, 0.6);
  box-shadow: 0 .04rem .04rem rgba(196, 193, 205, .8);

  /*提示条  0303后废弃*/
  .team-topbar {
    position: relative;
    height: .52rem;
    padding: 0 .26rem;
    @include flex-content;
    font-size: .2rem;
    line-height: .52rem;

    /*未满员*/
    &.warning-bar {
      background: rgba(255, 91, 77, .80);

      &:after {
        position: absolute;
        top: 0;
        left: 0;
        content: '';
        width: 100%;

        /*height: 3.18rem;*/
        height: 3.24rem;
        border: 1px solid rgba(255, 91, 77, .80);
        z-index: -1;
        box-sizing: border-box;
      }
    }

    /*已满员*/
    &.tips-bar {
      background: rgba(54, 137, 179, .50);

      &:after {
        position: absolute;
        top: 0;
        left: 0;
        content: '';
        width: 100%;
        height: 3.24rem;
        border: 1px solid rgba(54, 137, 179, .50);
        z-index: -1;
        box-sizing: border-box;
      }
    }

    /*超时*/
    &.timeout-bar {
      background: #666f80;

      &:after {
        position: absolute;
        top: 0;
        left: 0;
        content: '';
        width: 100%;

        /*height: 2.48rem;*/
        height: 3.24rem;
        border: 1px solid #666f80;
        z-index: -1;
        box-sizing: border-box;
      }
    }

    em {
      color: #fff;
      padding-right: .12rem;
    }

    span {
      color: #fcfcfc;
    }

    .right-tips {
      color: #fff;
      @include flex-content($justify: flex-end);

      a {
        padding-left: .08rem;
        color: $color-light-yellow;
      }
    }
  }
}

/*队伍状态提示 0303后废弃*/
.right-tips-box {
  position: relative;

  .tip-toc-gamestart-tips {
    width: 3.6rem;
    height: .36rem;
    line-height: .36rem;
    margin-left: -1.8rem;
    overflow: visible;
    text-indent: 0;
    background: #000;
    border-radius: 0;
    transform: skewX(-15deg);
    font-size: .2rem;
    top: -.48rem;

    &::before {
      border-width: .1rem .08rem 0 .08rem;
      bottom: -.1rem;
      border-color: #000 transparent transparent transparent;
      transform: skewX(15deg);
    }

    span {
      display: inline-block;
      transform: skewX(15deg);
    }
  }

  .ico-tip-help {
    width: .32rem;
    height: .32rem;
    margin: 0 .08rem;
    font-size: .24rem;
  }
}

/*队伍状态提示 0303后废弃*/

.team-info-topbar {
  height: .6rem;
  @include flex-content;
  background: rgba(36, 36, 37, .1);

  em {
    @include flex-content($justify: flex-start);
  }

  .stage-name {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 .1rem 0 .22rem;
    height: .6rem;
    min-width: 2.2rem;
    line-height: .6rem;
    font-size: $font-s;
    color: $color-white;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/team-name.png) repeat;
    background-size: cover;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: .06rem;
      height: .6rem;
      background: #fd7500;
    }

    &::after {
      content: '';
      position: absolute;
      top: 0;
      right: -.52rem;
      width: .52rem;
      height: .6rem;
      background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/team-name-after.png) repeat;
      background-size: 100%;
    }
  }

  .icon-guide {
    color: $color-white;
    font-size: .26rem;
    margin-left: .1rem;
  }

  .label-me {
    display: inline-block;
    padding: 0 .08rem;
    margin-left: .08rem;
    font-size: .16rem;
    line-height: 1.4;
    color: #b5ddde;
    border: .01rem solid #b5ddde;
  }

  .label-team {
    display: inline-block;
    padding: 0 .08rem;
    margin-left: .08rem;
    font-size: .16rem;
    line-height: 1.4;
    color: #91a4d5;
    border: .01rem solid #91a4d5;
  }

  a {
    font-size: .2rem;
    line-height: .58rem;
    color: rgba(255, 255, 255, .75);
  }
}

.team-info-box {
  padding: .36rem 0;
  background: rgba(255, 255, 255, .15);
}


.team-member-info {
  width: 6.54rem;
  margin: 0 auto;
  overflow-y: auto;
  padding-bottom: .12rem;
  @include flex-content($justify: flex-start);
  border-bottom: .02rem solid #dddfe1;

  &.no-border {
    border-bottom: 0;
  }

  li {
    position: relative;
    width: 1.1rem;
    flex-shrink: 0;
  }

  .team-member-img {
    position: relative;
    @include flex-content($justify: center, $direction: column);
    width: .8rem;
    height: .8rem;
    margin: 0 auto;
    background: rgba(105, 105, 105, .2);
    border: .02rem solid #000;

    &.empty-wrap {
      background: rgba(220, 223, 228, .7);
      border: .02rem solid rgba(220, 223, 228, .7);
    }

    img {
      width: .76rem;
      height: .76rem;
      display: block;
    }

    .status-leader {
      position: absolute;
      bottom: -.06rem;
      right: -.12rem;
      font-size: .3rem;
      width: .24rem;
      height: .24rem;
      background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-leader.png) no-repeat;
      background-size: 100%;
    }

    .ico-tip-48-add {
      width: .34rem;
      height: .34rem;
    }

    .icon-people {
      font-size: .46rem;
      color: rgba(0, 0, 0, .1);
    }
  }

  .team-member-label {
    position: absolute;
    bottom: .28rem;
    left: .07rem;
    display: block;
    width: .96rem;
    height: .28rem;
    font-size: .16rem;
    line-height: .28rem;
    color: #3a434a;
    border-radius: .1rem;
    text-align: center;
    letter-spacing: -1px;
    background: linear-gradient(269.02deg, #9ab3f3 0%, #aef4f5 100%);
  }

  .team-member-info-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .team-member-rank {
    display: block;
    max-height: .34rem;
    margin: .1rem .04rem 0 0;
    object-fit: cover;
  }

  .team-member-name {
    max-width: .96rem;
    height: .28rem;
    margin: .1rem 0 0;
    font-size: .2rem;
    line-height: .28rem;
    color: rgba(33, 33, 36, .75);
    text-align: center;
    letter-spacing: -1px;
    @extend %t-ellipsis;

    &.empty-text {
      width: .8rem;
      max-width: .8rem;
      margin: .1rem auto 0;
      letter-spacing: 0;
    }
  }

  .msg-box {
    @include flex-content($justify: center);

    .team-member-name {
      text-align: left;
    }
  }
}

.team-member-info-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  .team-member-rank {
    display: block;
    max-height: .34rem;
    margin: .1rem .04rem 0 0;
    object-fit: cover;
  }

  .team-member-name {
    max-width: .96rem;
    height: .28rem;
    margin: .1rem 0 0;
    font-size: .2rem;
    line-height: .28rem;
    color: rgba(33, 33, 36, .75);
    text-align: center;
    letter-spacing: -1px;
    @extend %t-ellipsis;

    &.empty-text {
      width: .8rem;
      max-width: .8rem;
      margin: .1rem auto 0;
      letter-spacing: 0;
    }
  }
}

.team-info-bottombar {
  height: .7rem;
  margin: 0 .26rem;
  @include flex-content;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.team-game-notice {
  @include flex-content($justify: flex-start);

  .icon-message {
    color: $color-black-2;
    font-size: .18rem;
    margin-right: .06rem;
  }

  p {
    max-width: 4rem;
    margin-right: .08rem;
    color: $color-black-2;
    font-size: .2rem;
    line-height: .7rem;
    @extend %t-ellipsis;
  }
}

/* 个人信息卡片 */
.personal-msg-card {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.98rem;
  height: 1.5rem;
  padding: .1rem .16rem;
  background: rgba(0, 0, 0, .75);
  overflow: hidden;
}

.personal-msg-name {
  color: rgba(255, 255, 255, .75);
  font-size: .22rem;
  line-height: .32rem;
  @extend %t-ellipsis;
}

.personal-msg-box {
  @include flex-content($justify: flex-start);

  .team-member-rank {
    max-height: .24rem;
    margin: 0 .04rem 0 0;
  }

  .team-member-name {
    width: 1.2rem;
    margin: 0;
    text-align: left;
    font-size: .16rem;
    color: rgba(255, 255, 255, .75);
  }
}

.more-msg-box {
  margin-top: .08rem;
  padding-top: .06rem;
  border-top: 1px solid rgba(255, 255, 255, .35);

  p {
    margin-top: .04rem;
    @include flex-content;

    span {
      color: rgba(255, 255, 255, .75);
      font-size: .18rem;
      line-height: .26rem;
    }

    em {
      color: rgba(255, 255, 255, .75);
      font-size: .24rem;
      line-height: .26rem;
      font-family: 'DINCondensed';
    }
  }
}

// 我的队伍
.my-team-wrap {
  margin: 0 auto;
  width: 7.1rem;
  height: 3.28rem;
  background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/my-team-wrap.png) no-repeat;
  background-size: 100%;
  box-shadow: 0 0 .2rem rgba(196, 193, 205, .8);
}

.my-team-top {
  display: flex;
  align-items: center;
  padding: .12rem .16rem;
  font-size: $font-s;
  color: $color-white;

  .my-team-top-left {
    display: flex;
    align-items: center;
  }

  .press-count-down {
    display: flex;
    align-items: center;
    font-size: $font-s;
    color: $color-white;
    margin-left: .16rem;
  }

  .my-team-time {
    position: relative;
    margin: 0 .06rem;
    font-family: 'AgencyFB-Bold';
    width: .46rem;
    height: .42rem;
    line-height: .38rem;
    text-align: center;
    border-radius: .04rem;
    font-size: $font-s;
    color: $color-white;
    background: linear-gradient(180deg, rgba(110, 59, 255, .8) 0%, rgba(109, 60, 246, 0) 28.69%), rgba(255, 255, 255, .1);
    // box-shadow: 0 .04rem .08rem rgba(0, 0, 0, 0.25), inset 0 0 .08rem rgba(255, 255, 255, 0.25);
    border: .02rem solid #b09cf3;
  }

  .my-team-tips {
    margin-left: auto;
    color: rba(255, 255, 255, .75);
    font-size: $font-xs;
  }

  .my-schedule-tips {
    display: flex;
    align-items: center;
    margin-left: auto;
    color: rgba(255, 255, 255, .75);
    font-size: $font-xs;

    .icon-help {
      position: relative;
      color: $color-white;
      font-size: .26rem;
      margin-right: .1rem;

      .help-tips {
        overflow: visible;
        position: absolute;
        top: -.44rem;
        left: .14rem;
        transform: translateX(-50%);
        margin: auto;
        white-space: nowrap;
        background: #000;
        font-size: $font-xs;
        color: $color-white;
        height: .36rem;
        line-height: .36rem;
        padding: 0 .06rem;

        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: -.16rem;
          width: .18rem;
          height: .36rem;
          transform: rotate(180deg);
          background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/help-tips-arrow.png) no-repeat;
          background-size: 100%;
        }

        &::after {
          content: '';
          position: absolute;
          top: 0;
          right: -.16rem;
          width: .18rem;
          height: .36rem;
          background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/help-tips-arrow.png) no-repeat;
          background-size: 100%;
        }
      }

      .help-tips-arrow {
        position: absolute;
        right: 0;
        left: 0;
        margin: auto;
        bottom: -.2rem;
        width: 0;
        height: 0;
        border: .1rem solid transparent;
        border-top: .1rem solid #000;
      }
    }

    .btn-view-chedule {
      display: flex;
      align-items: center;
      margin-left: .1rem;
      color: #ffbf00;
      font-size: $font-xs;

      .icon-back {
        transform: rotate(180deg);
        color: #ffbf00;
        font-size: .2rem;
        margin-left: .1rem;
      }
    }
  }
}

.match-detail--horz {
  .my-team-name {
    .icon-guide {
      color: #fff;
    }
  }
}

.my-team-name {
  font-size: $font-s;
  color: $color-black-2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: .66rem;
  margin-top: .04rem;
  padding-left: .3rem;
  padding-right: .18rem;
  font-weight: bold;

  .my-team-name-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .icon-guide {
    font-size: .26rem;
    margin-left: .1rem;
    color: #000;
  }

  .my-team-btn {
    margin-left: auto;
    display: flex;
    align-items: center;

    .icon-edit {
      color: #f2b634;
      font-size: .22rem;
    }

    .my-team-btn-text {
      color: #f2b634;
      font-size: .22rem;
    }
  }

  .icon-edit-mr {
    margin-right: .05rem;
  }

  .icon-edit-ml {
    margin-left: .05rem;
  }

  .edit-condition {
    margin-left: auto;
    display: flex;
    align-items: center;
    font-size: $font-xs;
    font-weight: normal;
    color: rgba(#212124, .6);
    position: relative;

    .edit-condition-tooltip {
      width: 4.4rem;
      height: .74rem;
      background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/full-text-tooltip.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
      position: absolute;
      top: -.8rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 999;
      padding: 0 .25rem .1rem;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      overflow: hidden;

      .tooltip-text {
        color: #fff;
        font-size: 10px;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        overflow: hidden;
        -webkit-box-orient: vertical;
      }
    }

    .edit-condition-text {
      max-width: 4.8rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-break: break-all;
      position: relative;
      cursor: pointer;
      user-select: none;
    }

    .icon-edit-more {
      margin-left: .06rem;
      margin-right: .1rem;
      color: rgba(33, 33, 36, .75);
      font-size: .2rem;
    }
  }
}

.my-team-personal-group-wrap {
  height: 3.1rem;
}

.my-team-personal-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: .36rem .24rem 0;
  margin-top: -1.28rem;
  overflow-x: auto;
  height: 4.6rem;

  .personal-box:first-child {
    .personal-msg-card {
      left: 82%;
    }
  }

  &::-webkit-scrollbar {
    display: none;
  }

  .personal-rank {
    width: 1rem !important;
  }

  .personal-rank-name {
    max-width: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

// 筛选条件
.condition-group {
  display: flex;
  padding: 0 .22rem;
  margin-bottom: .24rem;

  .condition-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    height: .44rem;
    padding: 0 .12rem;
    margin-right: .16rem;
    font-size: $font-xs;
    color: $color-black-2;
    border: .02rem solid rgba(33, 33, 36, .1);

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

  .condition-text {
    width: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
  }

  .icon-triangle {
    font-size: .1rem;
    color: rgba(33, 33, 36, .75);
    ;
  }
}

.personal-member-info-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  .team-member-rank {
    display: block;
    max-height: .34rem;
    margin: 0 .04rem 0 0;
    object-fit: cover;
  }

  .team-member-name {
    max-width: .96rem;
    height: .28rem;
    margin: 0 0 0;
    font-size: .2rem;
    line-height: .28rem;
    color: rgba(33, 33, 36, .75);
    text-align: center;
    letter-spacing: -1px;
    @extend %t-ellipsis;

    &.empty-text {
      width: .8rem;
      max-width: .8rem;
      margin: 0 auto 0;
      letter-spacing: 0;
    }
  }
}

.pop-box04 .player-info p {
  margin-top: 0;
  color: $color-black-2;
  font-size: $font-m;
  text-align: center;
}

.pop-wrap.pop-bg03 {
  width: 100%;
  height: 6.12rem;
}

.pop-wrap .p-title2 span {
  color: #212124;
  font-size: .32rem;
}

.pop-box04 .avatar-img {
  width: 1.92rem;
  height: 1.92rem;

  img {
    width: 100%;
    height: 100%;
  }
}

.pop-wrap .p-close01 {
  top: .4rem;
  left: .4rem;
  right: inherit;
  background: none;
  font-size: 0;
  width: .32rem;
  height: .32rem;
  text-indent: 0;

  &::before {
    width: .32rem;
    height: .32rem;
    font-size: .28rem;
    color: #212124;
  }
}

// 游戏内横版样式
.my-team-ingame-horz {
  .my-team-wrap {
    background: none;
    box-shadow: none;
    width: inherit;
    height: inherit;
  }

  .my-team-top {
    display: block;
    padding: .24rem 0 .32rem 0;

    &+.my-team-content {
      margin-top: 0;
    }

    .my-team-top-left {
      font-size: .36rem;
      color: #212124;
      font-family: 'MStiffHeiPRC';
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .my-team-countdown-title {
      font-size: .4rem;
      color: #212124;
      font-family: 'PEACE';
      transform: translateY(.02rem);
    }

    .press-count-down {
      font-size: .36rem;
      color: #ed7b2f;
      line-height: .6rem;
      font-weight: 600;
    }

    .my-team-time {
      font-family: 'AgencyFB-Bold';
      width: auto;
      font-size: .44rem;
      line-height: normal;
      height: .52rem;
      box-shadow: none;
      background: none;
      color: #ed7b2f;
      transform: translateY(.04rem);
      border: 0;
    }

    .my-team-time-text {
      font-size: .36rem;
    }

    .my-team-time-dot {
      font-family: 'AgencyFB-Bold';
      font-size: .44rem;
    }

    .my-schedule-tips {
      margin-top: .18rem;
      justify-content: center;
      font-size: .18rem;
      color: rgba(33, 33, 36, .6);
      margin-top: .2rem;
    }
  }

  .my-team-content {
    width: 6.48rem;
    height: 3.08rem;
    margin-top: .46rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/horizon/my-team-content-bg.png) no-repeat;
    background-size: 100%;
  }

  .my-team-name {
    margin-top: 0;
    height: auto;
    padding-top: .44rem;
    padding-bottom: .44rem;

    .edit-condition {
      color: #f2b634;

      .edit-condition-text {
        width: 3.2rem;
      }

      .icon-edit {
        font-size: .2rem;
        color: #f2b634;
        margin-left: .04rem;
      }
    }
  }

  .my-team-name-text {
    font-size: .24rem;
    color: #fff;
    font-weight: 700;
    line-height: .3rem;
  }

  .my-team-personal-group {
    height: auto;
    margin: 0 .18rem 0 .22rem;
    padding: .04rem 0 0;
  }

  .personal-avatar-box {
    width: .82rem;
    height: .82rem;

    .status-leader {
      top: -.04rem;
      left: -.12rem;
      right: inherit;
      bottom: inherit;
      z-index: 2;
    }
  }

  .personal-box {
    flex-shrink: 0;

  }

  .personal-rank {
    position: relative;
    z-index: 3;
  }

  .personal-rank-img {
    position: absolute;
    top: -.32rem;
    right: -.1rem;
  }

  .personal-rank-name {
    width: .82rem;
    font-size: .18rem !important;
    color: rgba(255, 255, 255, .75) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    display: block !important;
  }

  .personal-box {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 1.02rem !important;
    height: 1.58rem;
    align-items: flex-start;
  }
}

// 横版样式
.my-team-wrap-horz {
  .my-team-top {
    .my-schedule-tips {
      .icon-help {
        margin-right: .06rem;
        font-size: .22rem;
        color: rgba(33, 33, 36, .6);
      }

      .btn-view-chedule {
        color: rgba(237, 123, 47, 1);

        .icon-back {
          margin-left: .06rem;
          color: rgba(237, 123, 47, 1);
        }
      }

      .text-hightlight {
        color: rgba(237, 123, 47, 1);
      }
    }
  }

  .my-team-time.time-hour {
    // margin-left: .2rem;
  }
}
