// Primary Button
.vs-btn {
  position: relative;
  display: inline-block;
  border: none;
  text-transform: uppercase;
  text-align: center;
  background-color: $theme-color;
  color: $white-color;
  font-family: $body-font;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 19px 30.5px;
  border-radius: 5px;
  z-index: 1;
  overflow: hidden;

  &::after,
  &::before {
    content: "";
    margin: auto;
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: $title-color;
    transition: all ease 0.5s;
    z-index: -1;
    border-radius: inherit;
  }

  &:before {
    transform: rotateX(90deg);
  }

  &:after {
    transform: rotateY(90deg);
  }

  > i {
    margin-left: 8px;
  }

  &.style2 {
    background-color: $white-color;
    color: $theme-color;
  }

  &.style4,
  &.style3 {
    background-color: $secondary-color;
    color: $theme-color;
  }

  &.style3 {
    padding: 14px 23.5px;
  }

  &.style5 {
    background-color: #0844bc;
    color: $white-color;
  }

  &.style6 {
    background-color: $title-color;
    color: $white-color;

    &:after,
    &::before {
      background-color: $theme-color;
    }
  }

  &.style7 {
    border-radius: 9999px;
    text-transform: capitalize;
  }

  &.style8 {
    border: 2px solid $theme-color;
    color: $theme-color;
    background-color: transparent;
    border-radius: 9999px;
    padding: 17px 28px;
    text-transform: capitalize;

    &:after,
    &:before {
      display: none;
    }

    &:hover {
      background-color: $theme-color;
      color: $white-color;
    }
  }

  &.style9 {
    background-color: $white-color;
    color: $theme-color;
    border-radius: 9999px;
    text-transform: capitalize;
  }

  &.style10 {
    border: 2px solid $white-color;
    color: $white-color;
    background-color: transparent;
    border-radius: 9999px;
    padding: 17px 28px;
    text-transform: capitalize;

    i {
      margin-right: 10px;
      margin-left: 0;
    }

    &:hover {
      border-color: transparent;
    }
  }

  &.style11 {
    border-radius: 9999px;
    text-transform: capitalize;
  }

  &.style12 {
    text-transform: capitalize;
    border-radius: 9999px;
    background-color: transparent;
    border: 2px solid $white-color;
    color: $white-color;

    &:after,
    &:before {
      display: none;
    }

    &:hover {
      background-color: $title-color;
      color: $white-color;
      border-color: transparent;
    }
  }

  &:hover {
    color: $white-color;

    &:before {
      transform: rotateX(0);
    }

    &:after {
      transform: rotateY(0);
    }
  }
}

// Icon Btn
.icon-btn {
  display: inline-block;
  width: var(--btn-size, 67px);
  height: var(--btn-size, 67px);
  line-height: var(--btn-size, 67px);
  font-size: var(--btn-font-size, 20px);
  background-color: $theme-color;
  color: $white-color;
  border: none;
  text-align: center;
  border-radius: 50%;
  padding: 0;

  &.style2 {
    border: 2px solid $white-color;
    color: $white-color;
    background-color: transparent;
    line-height: calc(var(--btn-size, 67px) - 2px);

    &:hover {
      background-color: $theme-color;
      color: $white-color;
    }
  }

  &.style4,
  &.style3 {
    --btn-size: 55px;
    background-color: #f2f6ff;
    color: $theme-color;
    border-radius: 5px;
  }

  &.style4 {
    background-color: $white-color;
  }

  &.style5 {
    background-color: $white-color;
    color: $title-color;
    box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.08);

    &:hover {
      background-color: $theme-color;
      color: $white-color;
      box-shadow: none;
    }
  }

  &.style6 {
    background-color: $theme-color;
    color: $white-color;
    --btn-size: 55px;
    --btn-font-size: 17px;
  }

  &.style7 {
    --btn-size: 50px;
    border: 1px solid #e0e0e0;
    background-color: transparent;
    color: $title-color;

    &:hover {
      background-color: $theme-color;
      color: $white-color;
    }
  }
  &.style13 {
    background-color: transparent;
    color: #ffffff;
    border-radius: 0;
    --btn-size: 55px;
    &:hover,
    &:focus {
      background-color: transparent;
    }
    &.searchBoxTggler {
      &::after {
        content: "";
        width: 1px;
        height: 20px;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        background-color: rgb(217, 217, 217);
        right: -0.5px;
        left: auto;
        @include md {
          display: none;
        }
      }
    }
  }

  &:hover {
    background-color: $title-color;
    color: $white-color;
    border-color: transparent;
  }
}

// Play Button
.play-btn {
  display: inline-block;
  position: relative;
  z-index: 1;
  border: none;
  background-color: transparent;
  padding: 0;

  > i {
    display: inline-block;
    width: var(--icon-size, 124px);
    height: var(--icon-size, 124px);
    line-height: var(--icon-size, 124px);
    font-size: var(--icon-font-size, 1.5em);
    text-align: center;
    background-color: $theme-color;
    color: $white-color;
    border-radius: 50%;
    z-index: 1;
    transition: all ease 0.4s;
  }

  &:after,
  &:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: $theme-color;
    @extend .ripple-animation;
    z-index: -1;
    border-radius: 50%;
    transition: all ease 0.4s;
  }

  &:after {
    animation-delay: 2s;
  }

  &.style3,
  &.style2 {
    i {
      --icon-size: 60px;
      border-radius: 5px;
      --icon-font-size: 18px;
    }
  }

  &.style2 {
    &:after,
    &:before {
      border-radius: 5px;
    }
  }

  &.style3 {
    i {
      background-color: rgba(#0e59f2, 0.7);
    }

    &:after,
    &::before {
      display: none;
    }
  }

  &.style4 {
    --icon-size: 120px;
    --icon-font-size: 30px;

    &:after,
    &:before,
    i {
      background-color: $white-color;
      color: $theme-color;
    }
  }

  &.style5 {
    i {
      border-radius: 0;
      --icon-size: 120px;
      --icon-font-size: 30px;
    }

    &:after,
    &:before {
      border: 2px solid $theme-color;
      background-color: transparent;
      border-radius: 0;
    }
  }

  &.style7,
  &.style6 {
    --icon-size: 60px;
    --icon-font-size: 18px;
  }

  &.style7 {
    --icon-size: 60px;
    --icon-font-size: 18px;

    &:before,
    &:after {
      border: 1px solid $white-color;
      background-color: transparent;
      opacity: 0;
    }

    i {
      border: none;
      color: $white-color;
      background-color: transparent;
    }

    &:hover {
      i,
      &:before,
      &:after {
        border-color: transparent;
        background-color: $white-color;
        color: $theme-color;
      }
    }
  }

  &:hover {
    &:after,
    &::before,
    i {
      background-color: $title-color;
      color: $white-color;
    }
  }
}

// Link Button
.link-btn {
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
  line-height: 0.8;
  position: relative;
  padding-bottom: 2px;
  margin-bottom: -2px;
  text-transform: uppercase;

  i {
    margin-left: 7px;
    font-size: 0.9rem;
  }

  &:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: $theme-color;
    transition: all ease 0.4s;
  }

  &:hover {
    color: $theme-color;

    &::before {
      width: 100%;
    }
  }
}

// Scroll To Top
.scroll-btn {
  position: fixed;
  bottom: 300px;
  right: 30px;
  z-index: 94;
  opacity: 0;
  visibility: hidden;
  display: inline-block;
  border-radius: 50%;

  i {
    display: inline-block;
    background-color: $theme-color;
    color: $white-color;
    text-align: center;
    font-size: 16px;
    width: var(--btn-size, 50px);
    height: var(--btn-size, 50px);
    line-height: var(--btn-size, 50px);
    z-index: 2;
    border-radius: inherit;
    position: relative;
    transition: all ease 0.8s;
  }

  &:before {
    content: "";
    position: absolute;
    left: var(--extra-shape, -6px);
    top: var(--extra-shape, -6px);
    right: var(--extra-shape, -6px);
    bottom: var(--extra-shape, -6px);
    background-color: transparent;
    border-radius: inherit;
    z-index: 1;
    border: 2px dashed $theme-color;
    animation: spin 13s infinite linear;
  }

  &:focus,
  &:hover {
    i {
      background-color: $title-color;
      color: $white-color;
    }
  }

  &.show {
    bottom: 120px;
    opacity: 1;
    visibility: visible;
  }

  @include md {
    --btn-size: 40px;
    --extra-shape: -4px;
    right: 15px;
    bottom: 50px;

    &.show {
      bottom: 15px;
    }
  }
}

.scrollToTop {
  position: fixed;
  right: 60px;
  bottom: 500px;
  opacity: 0;
  visibility: hidden;
  transition: all ease 0.4s;
  z-index: 96;

  &.show {
    bottom: 60px;
    opacity: 1;
    visibility: visible;
  }
}

.view-big-btn {
  text-align: center;
  display: inline-block;

  i {
    display: inline-block;
    text-align: center;
    width: var(--icon-size, 130px);
    height: var(--icon-size, 130px);
    line-height: var(--icon-size, 130px);
    font-size: var(--icon-font-size, 36px);
    background-color: $theme-color;
    color: $white-color;
    border-radius: 50%;
    transition: all ease 0.4s;
  }

  .btn-text {
    display: block;
    color: $title-color;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    margin: 15px 0 0 0;
  }

  &:hover {
    i {
      background-color: $title-color;
    }
  }
}

@include lg {
  .play-btn.style4 {
    --icon-size: 80px;
    --icon-font-size: 20px;
  }

  .view-big-btn i {
    --icon-size: 80px;
    --icon-font-size: 24px;
  }
}

@include md {
  .play-btn {
    --icon-size: 60px;
  }

  .scrollToTop {
    right: 20px;

    &.show {
      bottom: 20px;
    }
  }
}
