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

$pubg-match-img:'https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match';
$share-icon:'https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch';

.press-match-item {
  width: 7.1rem;
  height: 3.16rem;
  position: relative;
  margin: .24rem auto 0;
  box-shadow: 0 0rem .2rem rgba(196, 193, 205, .8);
  background: url(#{$pubg-match-img}/home-card-bg.png) no-repeat;
  background-size: 100% 100%;

  .press-match-item__inner {
    width: 4.96rem;
    height: 2.84rem;
    margin: .14rem .14rem;
    margin-right: 0;
    padding-left: .24rem;
    padding-top: .24rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, .56));
    overflow: hidden;
    border-radius: .02rem;
    box-sizing: border-box;
  }
}

.press_icon-box {
  width: 1.08rem;
  height: .32rem;
  line-height: .32rem;
  background: linear-gradient(270deg, #ef816f 22.22%, #efbd7c 94.44%);
  position: absolute;
  top: .02rem;
  right: .02rem;
  box-shadow: 0 0 .08rem 0 rgba(196, 193, 205, .80);
  color: #fff;
  font-size: .2rem;
  padding-left: .2rem;
  text-align: center;
  clip-path: polygon(100% 0, 0% 0%, 20% 100%, 100% 100%);

  &.press-match-item__label--gray {
    background: linear-gradient(270deg, rgba(136, 136, 136, 1), rgba(160, 160, 160, 1));
  }
  
  &.press-match-item__label--gray {
    background: linear-gradient(270deg, #ef816f 22.22%, #efbd7c 94.44%);
  }
  
  &.press-match-item__label--gray {
    background: linear-gradient(270deg, rgba(83, 0, 195, 1), rgba(94, 46, 255, 1));
  }
  
  &.press-match-item__label--gray {
    background: linear-gradient(270deg, rgba(37, 173, 100, 1), rgba(31, 201, 109, 1));
  }
}


.press-match-item__title {
  height: .4rem;
  font-size: $font-m;
  line-height: .4rem;
  color: $color-black-2;
  width: 4.2rem;

  .t-overflow {
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    overflow: hidden;
    font-weight: 600;
    font-size: .26rem;
    letter-spacing: 0px;
  }

}

.press-match-item__labels {
  width: 4.34rem;
  margin: .1rem 0 .08rem;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  
  @include flex-content($justify: flex-start);

  .press_icon-box,
  i {
    width: .24rem;
    margin: 0 .08rem 0 0;
    color: #4f4f52;

    &.icon-top {
      color: rgba(255, 255, 255, .75);
    }

    &.icon-time {
      font-size: .22rem;
    }

    &.icon-location {
      font-size: .22rem;
    }

    &.icon-wx {
      font-size: .22rem;
    }

    &.icon-mine-bottom {
      font-size: .18rem;
    }
  }

  .press-match-item__tag {
    padding: 0 .12rem;
    margin-right: .12rem;
    line-height: .4rem;
    color: $color-main;
    font-size: $font-xs;
    background: rgba(33, 33, 36, .1);
    display: flex;
    align-items: center;
    white-space: nowrap;

    @include flex-content;
    margin-bottom: .08rem;

    &.press-match-item__tag--purple {
      color: #4712b8;
    }

    &.press-match-item__tag--green {
      color: #158c56;
    }
  }

  .press-match-item__tag-purple-bg {
    background: #5300c3;
    color: #fff;
  }
}


.press-match-item__prize {
  width: 95%;
  height: 1.32rem;
  overflow-x: auto;
  display: flex;
  flex-wrap: nowrap;
  overflow-y: hidden;
  scrollbar-width: none;

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

  .press-match-item__prize_card {
    width: 1.06rem;
    margin-right: .2rem;
    display: flex;
    flex-direction: column;
    align-items: center;

    .press-match-item__prize_card_img {
      width: 1rem;
      height: 1rem;
      display: flex;
      justify-content: center;
      align-items: center;
      border: .5px solid rgba(33, 33, 36, .10);
      background: rgba(22, 23, 37, .10);

      .press-match-item_icon_redimg {
        width: 100%;
        height: 100%;
      }
    }

    .p-overflow {
      white-space: nowrap;
      text-overflow: ellipsis;
      word-break: break-all;
      overflow: hidden;
      height: .32rem;
      width: 100%;
      font-size: .18rem;
      color: rgba(33, 33, 36, .60);
      text-align: center;
      margin-top: .06rem;
    }
  }
}

.press-match-item__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.press__icon--share {
  width: .38rem;
  height: .38rem;
  background: url(#{$share-icon}/share-icon.png) center center no-repeat;
  background-size: .36rem .36rem;
  position: absolute;
  top: 0;
  right: 0;
  padding: .24rem;
  z-index: 100;
  box-sizing: content-box;
}

.press-img-right {
  position: absolute;
  width: 1.96rem;
  right: .02rem;
  display: flex;
  flex-direction: column;
  align-items: center;

  .press-img-border {
    .press-match-item__image {
      width: 1.44rem;
      height: 1.44rem;
      border-radius: 50%;
    }
  }

  .press-img-border-btn {
    width: 1.6rem;
    height: .6rem;
    margin-top: .3rem;
    color: var(--dark4, #212124);
    text-align: center;
    font-family: 'PEACE';
    font-size: .22rem;
    line-height: .6rem;
    letter-spacing: 0px;

    &--gray {
      background: url(#{$pubg-match-img}/bg-btn-black.png) no-repeat;
      background-size: 100% 100%;
      opacity: .8;
      color: rgba(255, 255, 255, 1);
    }

    &--orange {
      background: url(#{$pubg-match-img}/bg-btn-112.png) no-repeat;
      background-size: 100% 100%;
    }

    &--green {
      background: url(#{$pubg-match-img}/bg-btn-black.png) no-repeat;
      background-size: 100% 100%;
      color: rgba(255, 255, 255, 1);
    }

    &--blue {
      background: url(#{$pubg-match-img}/bg-btn-black.png) no-repeat;
      background-size: 100% 100%;
      color: rgba(255, 255, 255, 1);
    }

  }
}

.press-match-item__image {
  position: relative;
  width: 1.64rem;
  height: 1.64rem;
  border-radius: 50%;
  z-index: 1;
}
