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

.press-card__button {
  display: flex;
  position: relative;
  
  margin-top: .5rem;
  padding: 0 .3rem;

  align-items: center;
  justify-content: space-between;

  .press-card__button-common {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn-l.png) center top no-repeat;
    background-size: 100% 100%;
    width: 3.06rem;
    height: .72rem;
    font-size: 20px;
    line-height: .72rem;
    margin: 0 auto;
    color: #212124;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    align-content: center;
    letter-spacing: -.03rem;
    white-space: nowrap;
    overflow: visible;
    word-break: break-all;
    font-family: 'PEACE';

    .press-card__button-countdown {
      letter-spacing: .02rem;
      height: .28rem;
      line-height: .28rem;
      font-size: .28rem;
      margin: .04rem 0 0 .08rem;
    }

    &.press-card__button--invalid {
      color: #fcfcfc;
      background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/invild-btn.png) center top;
      background-size: cover;
      background-repeat: no-repeat;

      .press-card__button-countdown {
        color: #fff;
      }
    }

    &.press-card__button--primary {
      position: relative;

      background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/horizon/team-card-btn.png) no-repeat;
      background-size: cover;

      &::after {
        content: '';
        display: block;
        position: absolute;
        background: rgba(255, 255, 255, 0);
        pointer-events: none;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
      }

      &:active {
        &::after {
          content: '';
          display: block;
          position: absolute;
          background: rgba(255, 255, 255, .6);
          pointer-events: none;
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
        }
      }
    }
  }

  &--one {
    justify-content: center;

    .press-card__button-common {
      width: 3.96rem;
    }

    .press-card__button-tips {
      min-width: 3.04rem;
      padding: 0 .2rem;
    }
  }

  &--no-top {
    margin-top: 0;
  }
}

.press-card__button-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.press-card__left-icon,
.press-card__right-icon {
  width: 1.2rem;
  height: .64rem;
  padding: .06rem 0 0;
  display: block;
  position: absolute;
  top: 0;
  color: #212124;
  font-size: .2rem;
  line-height: .22rem;
  text-align: center;

  i {
    margin: 0 0 .08rem 0;
    display: block;
  }

  .iconfont {
    line-height: .22rem;
  }
}

.press-card__left-icon {
  left: .32rem;
}

.press-card__right-icon {
  right: .28rem;
}

.press-card__button-tips {
  position: absolute;
  top: -.5rem;
  left: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  transform: translateX(-50%) skewX(-15deg);
  background: #000;
  color: #fff;
  font-size: .22rem;
  text-align: center;
  letter-spacing: -.01rem;
  border-radius: 1px;
  height: .36rem;
  line-height: .36rem;

  &:before {
    content: '';
    position: absolute;
    -webkit-transform: skewX(15deg);
    transform: skewX(15deg);
    bottom: -.1rem;
    left: 50%;
    margin-left: -.1rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: .1rem .1rem 0 .1rem;
    border-color: #000 transparent transparent transparent;
  }

  span {
    display: inline-block;
    white-space: nowrap;
    padding: 0 .24rem;
    transform: skewX(15deg);

    &.status-tips-img {
      width: .4rem;
      height: .4rem;
      margin: 0 .06rem;
      position: relative;

      img {
        width: .4rem;
        height: .4rem;
        display: block;
        border-radius: 100%;
        border: .01rem solid #a4a9ad;
      }
    }
  }
}



