@use '../../utils' as *;

/*----------------------------------------*/
/* Footer primary style
/*----------------------------------------*/
.footer-primary {
  .footer-glows {
    .glow-one {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      z-index: -1;
    }
  }

  .footer-main-wrapper {
    padding: 75px 0 50px;

    @media #{$xs,$sm} {
      padding: 50px 0 50px;
    }

    [class*=col-] {
      position: relative;
      padding-left: 94px;

      @media #{$lg} {
        padding-left: 50px;
      }

      @media #{$sm,$md} {
        padding-left: 50px;
      }

      @media #{$xs} {
        padding-left: 15px;
      }

      &:before {
        position: absolute;
        content: "";
        height: calc(100% - 40px);
        width: 1px;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        background: linear-gradient(232deg, rgba(91, 252, 196, 0.3) 0%, rgba(245, 147, 228, 0.3) 50%, rgba(113, 164, 240, 0.3) 100%);

        @media #{$xs,$sm,$md} {
          display: none;
        }
      }

      &:first-child {
        &::after {
          position: absolute;
          content: "";
          height: calc(100% - 40px);
          width: 1px;
          top: 50%;
          transform: translateY(-50%);
          left: 15px;
          background: linear-gradient(232deg, rgba(91, 252, 196, 0.3) 0%, rgba(245, 147, 228, 0.3) 50%, rgba(113, 164, 240, 0.3) 100%);

          @media #{$xs,$sm,$md} {
            display: none;
          }
        }
      }

      &:last-child {
        padding-right: 94px;

        @media #{$lg} {
          padding-right: 50px;
        }

        @media #{$sm,$md} {
          padding-right: 0px;
        }

        @media #{$xs} {
          padding-right: 15px;
        }

        &::before {
          right: 15px;
        }
      }
    }
  }

  .footer-content {
    .footer-logo {
      margin-bottom: 20px;

      a {
        display: block;

        img {
          height: 30px;
        }
      }
    }

    .description {
      color: rgba($white, $alpha: 0.7);
    }
  }
}

.footer-wg-head {
  .title {
    margin-bottom: 20px;
    font-size: 20px;
  }
}

// Footer links
.footer-links {
  ul {
    li {
      list-style: none;

      &:not(:last-child) {
        margin-bottom: 8px;
      }

      a {
        font-size: 14px;
        color: rgba($white, $alpha: 0.7);
        font-family: var(--td-ff-heading);
        font-weight: 500;

        &:hover {
          color: var(--td-primary);
        }
      }
    }
  }
}

// Footer info
.footer-info-contents {
  ul {
    li {
      list-style: none;

      a {
        &:hover {
          color: var(--td-primary);
        }
      }

      &:not(:last-child) {
        margin-bottom: 6px;
      }
    }
  }
}

.footer-into {

  @media #{$x3l,$xxl,$xl} {
    bottom: -50px;
  }

  @media #{$xs,$sm,$md} {
    bottom: -25px;
  }

  @media #{$xxs} {
    bottom: -10px;
  }

  .text {
    font-size: 314px;
    color: #323232;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    z-index: -1;
    position: relative;

    @media #{$x3l} {
      font-size: 19rem;
    }

    @media #{$xxl} {
      font-size: 18rem;
    }

    @media #{$xl} {
      font-size: 16rem;
    }

    @media #{$lg} {
      font-size: 14rem;
    }

    @media #{$md} {
      font-size: 9rem;
    }

    @media #{$sm} {
      font-size: 7rem;
    }

    @media #{$xs} {
      font-size: 6rem;
    }

    @media #{$xxs} {
      font-size: 4rem;
    }
  }
}

.copyright-link {
  ul {
    @include flexbox();
    gap: 10px;
    flex-wrap: wrap;

    li {
      list-style: none;

      a {
        font-size: 14px;
        color: rgba($white, $alpha: 0.8);

        &:hover {
          color: var(--td-primary);
        }
      }
    }
  }
}

.footer-input {
  position: relative;

  input {
    background: rgba(114, 128, 255, 0.13);
    border: 1px solid rgba(114, 128, 255, 0.36);
    border-radius: 8px;
    height: 48px;
    color: rgba($white, $alpha: 0.7);
    padding-inline-end: 155px;

    @media #{$xxs} {
      padding-inline-end: 20px;
    }

    @include td-placeholder {
      color: rgba($white, $alpha: 0.46);
    }
  }

  .td-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 48px;
    border-radius: 8px;
    font-size: 14px;
    padding: 0 16px;
    &:hover {
      transform: none;
    }

    @media #{$xxs} {
      position: inherit;
      margin-top: 16px;
      width: 100%;
    }
  }
}

.footer-socials {
  margin-top: 35px;
  display: flex;
  align-self: center;
  gap: 8px;
  flex-wrap: wrap;

  a {
    width: 44px;
    height: 44px;
    @include inline-flex();
    align-items: center;
    justify-content: center;
    background: linear-gradient(95.42deg, rgba(108, 115, 255, 0.16) 0%, rgba(56, 64, 247, 0.16) 100%);
    @include backdrop-filter(4px);
    @include border-radius(50%);
    position: relative;

    img {
      height: 16px;
    }

    &::before {
      position: absolute;
      content: "";
      inset: 0;
      @include border-radius(50%);
      padding: 2px;
      background: linear-gradient(152.3deg, rgba($white, $alpha: 0) 29.907450079917908%, rgba($white, $alpha: 0.4) 100%);
      -webkit-mask: linear-gradient(var(--td-white) 0 0) content-box, linear-gradient(var(--td-white) 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      z-index: 0;
    }

    &:after {
      position: absolute;
      content: "";
      height: 100%;
      width: 100%;
      top: 0;
      left: 0;
      background: linear-gradient(95.42deg, $primary 0%, $primary-alt 100%);
      @include border-radius(50%);
      z-index: -1;
      opacity: 0;
      transition: .3s;
    }

    &:hover {
      transform: translateY(-5px);
      &::after {
        opacity: 1;
      }
    }
  }
}