@use "../custom" as *;

.introCategory {
  padding-top: 8.25rem;
  background: no-repeat url("../images/bg-secondary.webp");
  background-position: bottom center;
  background-size: cover;
  min-height: 30.0625rem;
  display: flex;
  align-items: center;

  @include media-breakpoint-down(lg) {
    padding-top: 3.125rem;
      }

  .container {
    position: relative;
  }

  &__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &-wrapper {
      display: flex;
      align-items: center;
      gap: 1.5rem 2rem;

      @include media-breakpoint-down(lg) {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-bottom: 1rem;
      }
    }
  }

  &__icon {
    min-width: 6.25rem;
    width: 6.25rem;
    height: 6.25rem;
    position: relative;
    background-color: rgba($twitch, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100vh;

    i,
    img {
      color: $white;
      font-size: 1.3125rem;
      min-width: 1.3125rem;
      width: 1.3125rem;
      height: 1.3125rem;
      object-fit: contain;
      object-position: center;
      position: relative;
      z-index: 3;
    }

    &::after {
      content: "";
      min-width: 4.25rem;
      width: 4.25rem;
      height: 4.25rem;
      border-radius: 100vh;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: $twitch;
      border: 8px solid #1a1e32;
    }

    &.instagram {
      background-color: rgba($instagram, 0.1);

      &::after {
        background-color: $instagram;
      }
    }
    &.tiktok {
      background-color: rgba($tiktok, 0.1);
      &::after {
        background-color: $tiktok;
      }
    }
    &.twitter {
      background-color: rgba($twitter, 0.1);
      &::after {
        background-color: $twitter;
      }
    }
    &.youtube {
      background-color: rgba($youtube, 0.1);
      &::after {
        background-color: $youtube;
      }
    }
    &.facebook {
      background-color: rgba($facebook, 0.1);
      &::after {
        background-color: $facebook;
      }
    }
    &.spotify {
      background-color: rgba($spotify, 0.1);
      &::after {
        background-color: $spotify;
      }
    }
    &.telegram {
      background-color: rgba($telegram, 0.1);
      &::after {
        background-color: $telegram;
      }
    }
    &.linkedin {
      background-color: rgba($linkedin, 0.1);
      &::after {
        background-color: $linkedin;
      }
    }
    &.threads {
      background-color: rgba($threads, 0.1);
      &::after {
        background-color: $threads;
      }
    }
    &.google {
      background-color: rgba($google, 0.1);
      &::after {
        background-color: $google;
      }
    }
    &.appstore {
      background-color: rgba($appstore, 0.1);
      &::after {
        background-color: $appstore;
      }
    }
    &.seo {
      background-color: rgba($seo, 0.1);
      &::after {
        background-color: $seo;
      }
    }
    &.twitch {
      background-color: rgba($twitch, 0.1);
      &::after {
        background-color: $twitch;
      }
    }
    &.trovo {
      background-color: rgba($trovo, 0.1);
      &::after {
        background-color: $trovo;
      }
    }

    &.dlive {
      background-color: rgba($dlive, 0.1);
      &::after {
        background-color: $dlive;
      }
    }
    &.nonolive {
      background-color: rgba($nonolive, 0.1);
      &::after {
        background-color: $nonolive;
      }
    }
    &.clubhouse {
      background-color: rgba($clubhouse, 0.1);
      &::after {
        background-color: $clubhouse;
      }
    }
    &.tumblr {
      background-color: rgba($tumblr, 0.1);
      &::after {
        background-color: $tumblr;
      }
    }
    &.soundcloud {
      background-color: rgba($soundcloud, 0.1);
      &::after {
        background-color: $soundcloud;
      }
    }
    &.reddit {
      background-color: rgba($reddit, 0.1);
      &::after {
        background-color: $reddit;
      }
    }
    &.pinterest {
      background-color: rgba($pinterest, 0.1);
      &::after {
        background-color: $pinterest;
      }
    }
    &.likeapp {
      background-color: rgba($likeapp, 0.1);
      &::after {
        background-color: $likeapp;
      }
    }
    &.kwai {
      background-color: rgba($kwai, 0.1);
      &::after {
        background-color: $kwai;
      }
    }
    &.vimeo {
      background-color: rgba($vimeo, 0.1);
      &::after {
        background-color: $vimeo;
      }
    }
    &.onlyfans {
      background-color: rgba($onlyfans, 0.1);
      &::after {
        background-color: $onlyfans;
      }
    }
    &.quora {
      background-color: rgba($quora, 0.1);
      &::after {
        background-color: $quora;
      }
    }
    &.opensea {
      background-color: rgba($opensea, 0.1);
      &::after {
        background-color: $opensea;
      }
    }
    &.dailymotion {
      background-color: rgba($dailymotion, 0.1);
      &::after {
        background-color: $dailymotion;
      }
    }
    &.netflix {
      background-color: rgba($netflix, 0.1);
      &::after {
        background-color: $netflix;
      }
    }
    &.discord {
      background-color: rgba($discord, 0.1);
      &::after {
        background-color: $discord;
      }
    }
    &.snapchat {
      background-color: rgba($snapchat, 0.1);
      &::after {
        background-color: $snapchat;
      }
    }
    &.periscope {
      background-color: rgba($periscope, 0.1);
      &::after {
        background-color: $periscope;
      }
    }
    &.tinder {
      background-color: rgba($tinder, 0.1);
      &::after {
        background-color: $tinder;
      }
    }
    &.pubg {
      background-color: rgba($pubg, 0.1);
      &::after {
        background-color: $pubg;
      }
    }
    &.shazam {
      background-color: rgba($shazam, 0.1);
      &::after {
        background-color: $shazam;
      }
    }
  }

  &__headline {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.5;
    color: $white;
    font-family: $roobert;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
  }

  &__description {
    font-weight: 400;
    font-size: 1rem;
    color: rgba(#7c8499, 0.6);
    font-family: $roobert;
    margin: 0;
    max-width: 45.625rem;
    position: relative;
    z-index: 3;
    background-color: #1a1e32;
  }

  &__picture {
    position: absolute;
    height: 31.75rem;
    max-width: 37.75rem;
    width: 100%;
    top: -80px;
    right: 0;
    z-index: 1;

    .loading {
      position: absolute;
      z-index: 0;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      animation: loading-rotate 16s infinite linear reverse;
    }

    .character {
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    @include media-breakpoint-down(lg) {
      display: none;
    }
  }
}
