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

.press__schedule-manage {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(230, 223, 252) url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/schedule-manage/schedule-manage-bg.jpg) no-repeat;
  background-size: 100%;
  overflow: hidden;
  box-sizing: border-box;

  .press__button--primary-l {
    text-align: center;
    font-family: 'PEACE';
    width: 3.96rem;
    height: .72rem;
    line-height: .72rem;
    font-size: .4rem;
    color: $color-black-2;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn-l.png) no-repeat;
    background-size: 100%;
  }

  .press__button--disable-l {
    width: 3.96rem;
    height: .72rem;
    line-height: .72rem;
    font-size: .4rem;
    display: block;
    font-size: .4rem;
    font-family: 'PEACE';
    color: $color-white;
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn-l-disable.png) no-repeat;
    background-size: 100% 100%;
  }
  
}

.press__schedule-tabs {
  height: .84rem;
  overflow: hidden;
  background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/schedule-manage/tab-bg.png) no-repeat #fff;
  background-position: 0 -.14rem;
  background-size: 7.5rem 1.24rem;

  a {
    line-height: 1.04rem;

    &.press__schedule-tab--active {
      &::after {
        width: 1.5rem;
        margin-left: -.74rem;
      }
    }
  }
}

.press__schedule-module {
  flex: 1;
  overflow: hidden;
  padding-bottom: 0;
}

// 搜索
.press__search-part {
  flex-shrink: 0;
  padding: .16rem .24rem;
  border-bottom: .02rem solid rgba(252, 252, 252, .60);
  background: linear-gradient(101deg, rgba(238, 239, 241, .80) 15.46%, rgba(252, 252, 252, .80) 86.92%);
  backdrop-filter: blur(.02rem);

  .press__search-input {
    display: flex;
    align-items: center;
    width: 100%;
    height: .44rem;
    padding: 0 .16rem;
    background: #fff;
    border: .5px solid rgba(33, 33, 36, .10);
    box-sizing: border-box;

    .icon-search {
      margin-right: .08rem;
      flex-shrink: 0;
      font-size: .32rem;
      color: #212124;
    }

    .press_input,
    input {
      flex: 1;
      font-size: .2rem;
      color: #212124;

      &::placeholder {
        font-size: .2rem;
        color: rgba(33, 33, 36, .40);
      }
    }

    .press__search-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: .32rem;
      height: .32rem;
      background: #d9d9d9;
      border-radius: 50%;

      .icon-close {
        font-size: .16rem;
        color: #fcfcfc;
      }
    }
  }
}

.press__search-part {
  flex-shrink: 0;
  padding: .16rem .24rem;
  border-bottom: .02rem solid rgba(252, 252, 252, .60);
  background: linear-gradient(101deg, rgba(238, 239, 241, .80) 15.46%, rgba(252, 252, 252, .80) 86.92%);
  backdrop-filter: blur(.02rem);
  height: .44rem;

  .press__search-input {
    display: flex;
    align-items: center;
    width: 100%;
    height: .44rem;
    padding: 0 .16rem;
    background: #fff;
    border: .5px solid rgba(33, 33, 36, .10);
    box-sizing: border-box;

    .icon-search {
      margin-right: .08rem;
      flex-shrink: 0;
      font-size: .32rem;
      color: #212124;
    }
    
    .press_input,
    input {
      flex: 1;
      font-size: .2rem;
      color: #212124;

      &::placeholder {
        font-size: .2rem;
        color: rgba(33, 33, 36, .40);
      }
    }

    .press__search-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: .32rem;
      height: .32rem;
      background: #d9d9d9;
      border-radius: 50%;

      .icon-close {
        font-size: .16rem;
        color: #fcfcfc;
      }
    }
  }
}

//二级tab
.press__sub-tab {
  display: flex;
  margin: .2rem .2rem 0;
  background: #edecef;
  border-radius: .04rem;

  .press__sub-tab-item {
    flex: 1;
    height: .6rem;
    line-height: .6rem;
    text-align: center;
    font-size: .24rem;
    color: rgba(33, 33, 36, .55);
    border: .02rem solid rgba(84, 84, 87, .06);
    border-right: 0;

    &:first-child {
      border-radius: .04rem 0 0 .04rem;
    }

    &:last-child {
      border-right: .02rem solid rgba(84, 84, 87, .06);
      border-radius: 0 .04rem .04rem 0;
    }

    &.press__sub-tab-item--active {
      color: #5300c3;
      background: rgba($color: #5d28f7, $alpha: .16);
      border: .02rem solid #cac8ed;

      &+.confirm-start-tab-item {
        border-left: 0;
      }
    }
  }
}

//空状态
.press-empty-gp {
  flex: 1;
  width: auto;
  margin: .2rem;
  border: .02rem solid rgba(252, 252, 252, .60);
  background: linear-gradient(101deg, rgba(238, 239, 241, .50) 15.46%, rgba(252, 252, 252, .50) 86.92%);
  box-shadow: 0 0 .2rem 0 rgba(83, 71, 134, .38);

  .press-empty-gp__img {
    margin-top: -2rem;
  }

  .press-empty-gp__text {
    margin-top: .3rem;
  }
}

//自动开赛部分
.press__automatic-part {
  background: #fff;
  padding: .34rem .2rem;
  display: flex;
  align-items: center;

  .press__text-left {
    display: flex;
    align-items: center;
    font-size: .24rem;
    color: #212124;
    margin-right: .14rem;
  }

  .press__text-right {
    margin-left: .2rem;
    flex-shrink: 0;
    font-size: .24rem;
    color: #212124;
  }

  .press__text-tips {
    margin-left: auto;
    flex-shrink: 0;
    font-size: .24rem;
    color: #212124;
  }

  .press__time-box {
    width: .42rem;
    height: .42rem;
    line-height: .42rem;
    text-align: center;
    font-family: 'AgencyFB-Bold';
    font-size: .24rem;
    color: #fff;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/schedule-manage/time-box-bg.png) no-repeat;
    background-size: 100%;
  }

  .press__text-day {
    margin: 0 .06rem;
    line-height: .42rem;
    font-size: .28rem;
    color: #212124;
    font-family: 'PEACE';
  }

  .press__text-colon {
    position: relative;
    top: -.02rem;
    margin: 0 .06rem;
    line-height: .42rem;
    font-size: .32rem;
    color: #212124;
    font-family: 'AgencyFB-Bold';
  }
}

.press__schedule-tabs {
  height: .84rem;
  color: rgba(255, 255, 255, .75);
  background: $color-light;
  border-bottom: .02rem solid #ededed;

  @include flex-content;

  a {
    width: 100%;
    height: .84rem;
    display: block;
    flex: 1;
    font-size: $font-s;
    color: $color-main;
    text-align: center;
    position: relative;

    @include line-height(.84);

    &:after {
      content: '';
    }

    &.tabs-streaming {
      position: relative;

      &::after {
        content: '当前';
        position: absolute;
        width: .64rem;
        height: .32rem;
        text-align: center;
        display: inline-block;
        padding: .02rem .1rem;
        border-radius: .02rem;
        background: linear-gradient(270deg, #f2b534 -62.5%, #fd7500 100%);
      }
    }

    &.press__schedule-tab--active {
      font-size: $font-m;
      font-weight: bold;
      color: #fcfcfc;
      background: linear-gradient(to right, #5300c3, #5e2eff);
      -webkit-background-clip: text;
      color: transparent;

      &:after {
        content: '';
        position: absolute;
        bottom: 0;
        width: 0;
        height: 0;
        width: 1.2rem;
        height: .06rem;
        margin-left: -.6rem;
        left: 50%;
        background: linear-gradient(to right, #5300c3, #5e2eff);

        /*animation: tab-bounce-in-left .3s both;*/
      }
    }

    /*&:first-of-type{
			&.press__schedule-tab--active{

				&:after{
					content:'';
					animation: tab-bounce-in-right .3s both;
				}
			}
		}*/

  }
}

.press__button-part {
  position: absolute;
  width: 100%;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  height: auto;
  min-height: .72rem;
  padding: 0 .4rem 0 .22rem;
  box-sizing: border-box;
  background: #f7f7f7;
  box-shadow: 0px -3px 6px 0px rgba(131, 131, 131, .25);
  z-index: 3;

  .press__button--primary-l {
    text-align: center;
    font-family: 'PEACE';
    width: 3.96rem; 
    height: .72rem;
    line-height: .72rem;
    font-size: .4rem;
    color: #212124;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn-l.png) no-repeat;
    background-size: 100%;
  }

  .press__select-box {
    position: relative;
    display: flex;
    align-items: center;
    height: .46rem;
    margin-top: .64rem;
    padding: 0 .2rem 0 .12rem;
    font-size: .24rem;
    color: #212124;
    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;
    }

    .icon-triangle {
      transform: scale(.9);
      margin-top: .02rem;
      margin-left: .24rem;
      font-size: .04rem;
      color: rgba($color: #212124, $alpha: .75);
    }
  }

  .press__select-group {
    margin-top: .28rem;

    .press__select-title {
      line-height: .28rem;
      font-size: .2rem;
      color: rgba(33, 33, 36, .75);
    }

    .press__select-box {
      margin-top: .08rem;
    }
  }

  .press__grouping-item-num {
    padding: .12rem 0;
    line-height: .28rem;
    font-size: .2rem;
    text-align: center;
    color: #212124;
  }

  .press__button--disable-l {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .34rem;

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

  .press__button--disable-l {
    width: 3.96rem;
    height: .72rem;
    line-height: .72rem;
    font-size: .4rem;
    display: block;
    font-size: .4rem;
    font-family: 'PEACE';
    color: #fff;
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn-l-disable.png) no-repeat;
    background-size: 100% 100%;
  }
}

.empty-container {
  flex: 1;
}


