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

.press-site-item {
  width: 7.02rem;
  padding: .48rem .2rem .24rem .28rem;
  min-height: 2.84rem;
  position: relative;
  margin: 0 auto .28rem;
  @include flex-content($align: flex-start, $justify: flex-start);
  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, .6);
  box-shadow: 0 0 .2rem rgba(196, 193, 205, .8);
  box-sizing: border-box;

  .press-site-item__main {
    flex: 1;
    margin-top: -.06rem;
  }
}

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

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

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

  &.press-site-item__label--gray {
    background: #9a9a9a;
    color: #fff;
  }

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

.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: 400;

  &.white-title {
    color: $color-white;
  }

  p {
    max-width: 4.15rem;
    font-weight: 400;
    @include inline-vertical-content;
  }
}

.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;
    }
  }

  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(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/label-prize.png) no-repeat;
    background-size: 100%;
  }
}


.press-site-item__image {
  margin-right: .24rem;
  width: 1.16rem;
  height: 1.4rem;
  background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/match-logo-bg.png) no-repeat;
  background-size: 100%;

  img {
    width: .76rem;
    height: .76rem;
    display: block;
    margin: .1rem auto;
    object-fit: scale-down;
  }

  p {
    width: 1.16rem;
    height: .42rem;
    text-align: center;
    line-height: .36rem;
    font-size: .2rem;
    color: #fff;
  }
}

.press-site-item__button {
  height: .5rem;
  line-height: .5rem;
  width: 3.06rem;
  display: block;
  font-size: $font-s;
  text-align: center;
  font-family: 'PEACE';
  letter-spacing: .02rem;

  display: flex;
  justify-content: center;
  align-items: center;

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

.press-site-item__button--primary {
  color: $color-black-2;
  background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn.png) no-repeat;
  background-size: 100% 100%;
}

.press-site-item__button--default {
  color: $color-white;
  position: relative;
  background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn-black.png) no-repeat;
  background-size: 100% 100%;
}

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