@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';

.press-site-item {
  width: 7.48rem;
  height: 3.32rem;
  position: relative;
  margin: 0 auto;
  margin-bottom: -.2rem;
  padding: .2rem .2rem;
  @include flex-content($align: flex-start, $justify: flex-start);
  background: url(#{$pubg-match-img}/site-card-bg2.png) no-repeat;
  background-size: 100% 100%;
  box-sizing: border-box;

  .press-site-item__main {
    padding-top: .24rem;
    padding-left: .32rem;
  }
}

.press-site-item__label {
  width: 1.08rem;
  position: absolute;
  top: .22rem;
  right: .22rem;
  height: .32rem;
  padding-left: .18rem;
  line-height: .32rem;
  color: $color-white;
  font-size: $font-xs;
  font-style: normal;
  text-align: center;
  background: $color-orange;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);

  &.press-site-item__label--orange {
    background: linear-gradient(270deg, #ef816f 22.22%, #efbd7c 94.44%);
    opacity: .9;
    color: #fff;
  }

  &.press-site-item__label--green {
    background: linear-gradient(270deg, #25ad64 22.22%, #1dc96d 88.89%);
    opacity: .9;
  }

  &.press-site-item__label--gray {
    background: linear-gradient(270deg, #888 22.22%, #a0a0a0 73.15%);
    opacity: .9;
    color: #fff;
  }

  &.press-site-item__label--blue {
    background: linear-gradient(270deg, #5300c3 22.22%, #5e2eff 88.89%);
    opacity: .9;
  }
}

.press-site-item__main {
  .press-site-item__button {
    margin: .24rem auto 0;
  }
}

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

.press-site-item__labels {
  margin: .08rem 0 .16rem;
  @include flex-content($justify: flex-start);
  flex-shrink: 0;
  flex-wrap: wrap;

  i {
    width: .24rem;
    margin: 0 .08rem 0 0;
    color: #4f4f52;
    font-style: normal;

    &.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-site-item__join-num {
      width: auto;
      margin: 0;
    }
  }

  span {
    @include flex-content;
    padding: 0 .14rem;
    margin-right: .12rem;
    line-height: .4rem;
    color: $color-main;
    // color: $color-black-2;
    font-size: $font-xs;
    background: rgba(33, 33, 36, .1);
    display: flex;
    align-items: center;

    &.tag-purple {
      color: #4712b8;
    }

    &.tag-green {
      color: #158c56;
    }

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

.press-site-item__extra {
  @include flex-content($justify: flex-start);

  i {
    margin-right: .06rem;
  }

  span {
    width: 4rem;
    color: rgba(33, 33, 36, .75);
    height: .34rem;
    line-height: .34rem;
    font-size: $font-s;
  }

  .label-prize {
    width: .41rem;
    height: .42rem;
    background: url(#{$pubg-match-img}/label-prize.png) no-repeat;
    background-size: 100%;
  }
}


.press-site-item__image {
  height: 2.88rem;
  width: 1.88rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: .2rem;
}

.press-site-item__button {
  height: .5rem;
  line-height: .5rem;
  min-width: 1.24rem;
  display: block;
  font-size: $font-s;
  text-align: center;
  font-family: 'PEACE';
  letter-spacing: .02rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .1rem;
  letter-spacing: 0px;
  box-sizing: border-box;

  &--gray {
    color: rgba(255, 255, 255, 1);
    position: relative;
    z-index: 1;

    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url(#{$pubg-match-img}/bg-btn-black-s.png) no-repeat;
      background-size: 100% 100%;
      opacity: .5;
      z-index: -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);
  }

  span {
    line-height: .18rem;
    height: .22rem;
    font-size: .24rem;
    margin: 0 0 0 .08rem;
    font-family: 'AgencyFB-Bold';
  }
}


.t-overflow {
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
  overflow: hidden;
}


.press-match-item__prize {
  width: 4.5rem;
  height: 1.32rem;
  overflow-x: auto;
  display: flex;
  flex-wrap: nowrap;
  margin-top: .16rem;

  .press-match-item__prize_card {
    width: 1.06rem;
    height: 1.32rem;
    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: .01rem solid rgba(33, 33, 36, .10);
      background: rgba(22, 23, 37, .10);

      .press-match-item_img {
        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;
    }
  }
}