.yc-tabs {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  .yc-tabs-nav {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    .yc-tabs-nav-tab {
      &.yc-tabs-nav-tab-scroll {
        flex: 1;
        overflow: hidden;
      }
      .yc-tabs-nav-tab-list {
        position: relative;
        transition: transform 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
        display: flex;
        align-items: center;
        &::-webkit-scrollbar {
          display: none;
        }
        .yc-tabs-nav-ink {
          position: absolute;
          background-color: rgb(var(--primary-6));
          border-radius: var(--border-radius-small);
        }
      }
    }
    .yc-tabs-nav-extra {
      height: 100%;
      display: flex;
      align-items: center;
    }
  }
  .yc-tabs-content {
    overflow: hidden;

    .yc-tabs-content-list {
      display: flex;

      .yc-tabs-content-item {
        flex-shrink: 0;
      }
    }
  }
}
// justify
.yc-tabs-justify {
  height: 100%;
}
.yc-tabs-animation {
  .yc-tabs-content-list {
    transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
  }
}
// direction
.yc-tabs-horizontal {
  flex-direction: column;
  .yc-tabs-nav {
    width: 100%;
    .yc-tabs-nav-tab {
      .yc-tabs-nav-tab-list {
        .yc-tabs-nav-ink {
          bottom: 0;
          height: 2px;
          transition:
            left 0.2s cubic-bezier(0.34, 0.69, 0.1, 1),
            width 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
        }
      }
    }
  }
  .yc-tabs-content {
    width: 100%;
    padding-top: 16px;

    .yc-tabs-content-list {
      width: 100%;

      .yc-tabs-content-item {
        width: 100%;
      }
    }
  }
}
.yc-tabs-vertical {
  &:not(.yc-tabs-type-card):not(.yc-tabs-type-card-gutter) {
    .yc-tabs-nav {
      .yc-tabs-nav-tab {
        .yc-tabs-nav-tab-list {
          gap: 12px;
        }
      }
    }
  }
  .yc-tabs-nav {
    height: 100%;
    flex-direction: column;
    .yc-tabs-nav-tab {
      height: 100%;
      .yc-tabs-nav-tab-list {
        flex-direction: column;
        .yc-tabs-tab {
          width: 100%;
          .yc-tabs-tab-title {
            width: 100%;
          }
        }
        .yc-tabs-nav-ink {
          right: 0;
          width: 2px;
          transition:
            top 0.2s cubic-bezier(0.34, 0.69, 0.1, 1),
            height 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
        }
      }
    }
  }
  .yc-tabs-content {
    flex: 1;
    height: 100%;
    padding-left: 16px;
    .yc-tabs-content-list {
      height: 100%;
      flex-direction: column;
      .yc-tabs-content-item {
        height: 100%;
      }
    }
  }
}
// position
.yc-tabs-right {
  flex-direction: row-reverse;
  .yc-tabs-nav {
    &::before {
      left: 0;
      right: unset;
    }
    .yc-tabs-nav-tab {
      .yc-tabs-nav-tab-list {
        .yc-tabs-nav-ink {
          left: 0;
          right: unset;
        }
      }
    }
  }
  .yc-tabs-content {
    padding-left: 0;
    padding-right: 16px;
  }
}
.yc-tabs-bottom {
  flex-direction: column-reverse;
  .yc-tabs-nav {
    &::before {
      top: 0;
    }
    .yc-tabs-nav-tab {
      .yc-tabs-nav-tab-list {
        .yc-tabs-nav-ink {
          top: 0;
          bottom: unset;
        }
      }
    }
  }
  .yc-tabs-content {
    padding-right: 0;
    padding-bottom: 16px;
  }
}
// type
.yc-tabs-type-card,
.yc-tabs-type-card-gutter,
.yc-tabs-type-line {
  &.yc-tabs-horizontal {
    .yc-tabs-nav {
      &::before {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        height: 1px;
        background-color: var(--color-neutral-3);
      }
    }
  }
  &.yc-tabs-vertical {
    .yc-tabs-nav {
      &::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 1px;
        background-color: var(--color-neutral-3);
      }
    }
  }
  &:not(.yc-tabs-type-line) {
    &.yc-tabs-horizontal {
      .yc-tabs-content {
        border: 1px solid var(--color-neutral-3);
        border-top: none;
      }
      &.yc-tabs-bottom {
        .yc-tabs-content {
          border-top: 1px solid var(--color-neutral-3);
          border-bottom: none;
        }
      }
    }
    &.yc-tabs-vertical {
      &.yc-tabs-right {
        border-right: none;
      }
      .yc-tabs-content {
        border: 1px solid var(--color-neutral-3);
        border-left: none;
        &.yc-tabs-right {
          border-right: none;
        }
      }
    }
  }
}
.yc-tabs-type-card-gutter {
  .yc-tabs-nav {
    .yc-tabs-nav-tab {
      .yc-tabs-nav-tab-list {
        gap: 4px;
      }
    }
  }
}
.yc-tabs-type-capsule {
  .yc-tabs-nav {
    justify-content: flex-end;
    .yc-tabs-nav-tab {
      .yc-tabs-nav-tab-list {
        flex: unset;
        padding: 3px;
        background-color: var(--color-fill-2);
        border-radius: var(--border-radius-small);
        line-height: 1;
        gap: 3px;
      }
    }
  }
}
