@import 'press-ui/common/style/press/index.scss';
@import 'press-ui/common/style/press/var.scss';
@import 'press-ui/common/style/smoba/layout.scss';
@import 'press-ui/common/style/smoba/mixin.scss';

.press-schedule-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;

  &__wrap {
    display: flex;
    overflow: hidden;
    height: auto;
    background: $color-white;

    &--scrollable {
      .press-schedule-tab {
        flex: 0 0 22%;

        &--complete {
          flex: 1 0 auto !important;
          padding: 0 $padding-sm;
        }
      }

      .press-schedule-tabs__nav {
        &--complete {
          padding-right: 8px;
          padding-left: 8px;
        }
      }
    }
  }

  &__nav {
    position: relative;
    display: flex;
    user-select: none;
    background: transparent;

    padding-bottom: tovmin(20);
    padding-top: tovmin(12);
    padding-left: tovmin(32);
    box-sizing: border-box;
    // 解决替换press-ui后高度态度的问题
    height: auto;

    .press-schedule-tab__split {
      transform: rotate(180deg);
      color: #bfc3e1;
      font-weight: 400;
      margin: 0 8px 0 8px;
    }

    .press-schedule-tab__placeholder {
      width: 32px;
    }
  }

  &__line {
    position: absolute;
    bottom: auto;
    left: 0;
    top: tovmin(78);
    z-index: 1;
    width: tovmin(112);
    height: tovmin(16);
    background-color: transparent;
    border-radius: 0;
    background-image: linear-gradient(90deg, #5bbdfa 0%, rgba(91, 189, 250, 0) 100%);
  }

  &__track {
    position: relative;
    width: 100%;
    height: 100%;

    &--animated {
      display: flex;
      transition-property: left;
    }
  }

  &__content {
    overflow: hidden;
    height: 100%;
  }

  // 适配不支持virtualHost的小程序
  ::v-deep press-tab {
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
  }
}

.press-schedule-tab {
  position: relative;
  box-sizing: border-box;
  min-width: 0; /* hack for flex ellipsis */
  padding: 0;
  text-align: center;
  cursor: pointer;
  color: #596297;
  font-size: tovmin(32);
  line-height: normal;
  z-index: 2;

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

  &--active {
    font-size: tovmin(40);
    font-weight: 600;
    color: #09134e;

    .press-schedule-tab__text {
      line-height: tovmin(48);
    }
  }

  &--disabled {
    color: $gray-5;
  }

  &__text {
    display: flex;
    line-height: tovmin(32);
    padding: 12px 0 0 0;
  }

  &__badge {
    position: absolute;
    top: 2px;
    right: 0;
    width: 32px;
    height: 16px;
    background: url(https://image-1251917893.file.myqcloud.com/Esports/new/user/stage-red-dot.png);
    background-size: 100%;
  }
}