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

.press-schedule::v-deep {
  display: flex;
  flex-direction: column;
  overflow: hidden;

  .press__bar {
    .press__bar-item {
      font-family: 'PEACE';
    }
  }

  .press__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 2.2rem 0 .88rem;
    z-index: 2;
    overflow: hidden;
  }

  .press__header {
    display: flex;
    align-items: center;
    padding: .24rem 0 .16rem;

    .press__head-helmet {
      width: .74rem;
      height: .79rem;
      margin-left: .16rem;
      background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/horizon/img-helmet.png) no-repeat;
      background-size: 100%;
    }

    .press__head-title {
      font-size: .32rem;
      color: #060721;
      font-family: 'PEACE';
    }

    .press__des-text {
      margin-left: auto;
      font-size: .32rem;
      color: #060721;
      font-family: 'PEACE';
    }

    .press__head-ob {
      display: flex;
      align-items: center;
      height: .4rem;
      padding: 0 .16rem;
      margin-left: auto;
      color: #fff;
      text-shadow: 0px .5px 0px rgba(0, 0, 0, .58);
      font-size: .18rem;
      background: rgba(34, 34, 105, .56);

      &::before {
        content: '';
        margin-right: .08rem;
        width: .24rem;
        height: .19rem;
        background-image: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/horizon/eye.png);
        background-size: 100%;
        background-repeat: no-repeat;
      }
    }
  }

  .press__main {
    flex: 1;
  }

  .press__footer {
    display: flex;
    align-items: center;
    padding: .16rem 0 .28rem;
  }

  .press__btn-search {
    width: 4rem;
    height: .48rem;
    padding-left: .24rem;

    .press__icon-search {
      margin-right: .08rem;
      font-weight: normal;
      font-size: .28rem;
      color: #212124;
    }
  }

  .press__btn-refresh {
    margin-left: .2rem;
    width: 1.76rem;
    height: .48rem;
    padding-left: .2rem;

    .press__icon-refresh {
      margin-right: .08rem;
      font-weight: normal;
      font-size: .28rem;
      color: #212124;
    }
  }

  .press__btn-search,
  .press__btn-refresh {
    position: relative;
    display: flex;
    align-items: center;
    font-size: .24rem;
    color: #212124;
    font-weight: 600;

    &::after {
      position: absolute;
      left: 0;
      top: 0;
      content: '';
      width: 200%;
      height: 200%;
      border-style: solid;
      border-width: 1px;
      border-color: rgba(33, 33, 36, .65);
      transform: scale(.5);
      transform-origin: 0 0;
      pointer-events: none;
    }
  }

  .press__btn-group {
    display: flex;
    margin-left: auto;

    .press__secondary-btn {
      @include secondary-btn($fontsize: .32rem, $width: auto);
      padding: 0 .32rem;
      margin-right: .2rem;
    }

    .press__primary-btn {
      @include primary-btn($fontsize: .32rem, $width: auto);
      padding: 0 .32rem;
      display: flex;
      align-items: center;
    }

    .press__disabled-btn {
      color: #fff;
      background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/horizon/btn-gray.png) no-repeat;
      background-size: cover;
      
      &:active {
        &::after {
          background-color: transparent;
        }
       
      }
    }

    .num {
      font-size: .28rem;
      margin-left: .1rem;
    }
  }
}

// tabs
.press-schedule::v-deep .press__match-tabs.press-tabs {

  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-18px);

  .press-tabs__scroll {
    background-color: transparent;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 100%;
    height: 1px;
    background: rgba(156, 156, 156, .45);
  }

  .press-tabs__wrap {
    height: .48rem;
    border: 0;
  }

  .press-tabs__nav {
    background: transparent;
    padding: 0;
  }

  .press-tab {
    width: 1.48rem;
    flex-shrink: 0;
    font-size: .24rem;
    line-height: .4rem;
    color: rgba(33, 33, 36, .75);
    text-align: center;
    padding-bottom: .2rem;
  }

  .press-tab--active {
    font-family: 'PEACE';
    color: $color-white;
    font-weight: normal;
    background: none;

    font-size: .28rem;
    font-weight: 700;
    color: #5300c3;
  }

  .press-tabs__line {
    bottom: 0;
    height: .04rem;
    width: .82rem;
    background: linear-gradient(90deg, #5300c3 0%, #5e2eff 100%);
  }

  .press-hairline--top-bottom::after,
  .press-hairline-unset--top-bottom::after {
    display: none;
  }
  --tabs-line-height: 24px;
}

// 下拉选项
.press-schedule::v-deep .press__select-box {
  position: relative;
  display: flex;
  align-items: center;
  height: .4rem;
  padding: 0 .2rem 0 .16rem;
  margin-left: .24rem;
  font-size: .24rem;
  color: #000;
  z-index: 1;

  &::after {
    position: absolute;
    left: 0;
    top: 0;
    content: '';
    width: 200%;
    height: 200%;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(0, 0, 0, .70);
    ;
    transform: scale(.5);
    transform-origin: 0 0;
    pointer-events: none;
  }

  .press__icon-guide {
    margin-left: .32rem;
    font-size: .26rem;
    color: #212124;
  }

  .press__select {
    position: absolute;
    top: .48rem;
    left: 0;
    width: 100%;
    height: 1.92rem;
    overflow-y: auto;
    background: rgba(10, 11, 22, .94);
  }

  .press__option {
    width: 100%;
    height: .48rem;
    line-height: .48rem;
    font-size: .24rem;
    color: #fff;
    padding: 0 .16rem;

    &.selected {
      background: rgba(63, 64, 73, .94);
    }
  }
}