@import "./variables";

.f-card {
  padding: $spacer;
  border-radius: $borderRadiusBase * 4;
  margin: 0 auto;
  border: 0 !important;
  width: 100%;
  // overflow: hidden;
  .f-card-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    &.jc-left {
      justify-content: left;
    }
    &.jc-center {
      justify-content: center;
    }
    &.jc-right {
      justify-content: right;
    }

    & * {
      margin: 0;
    }
    .dropdown-toggle {
      svg {
        font-size: 1.5rem;
      }
      &:after {
        display: none;
      }
    }
  }
  .f-card-body {
    position: relative;
    z-index: 1;
  }
  &.f-card-primary {
    background: $cardColor;
  }
  &.f-card-secondary {
    background: lighten($cardColor, 10);
  }

  &.f-card-futuristic-primary {
    position: relative;
    padding: 0;
    .f-card-body {
      border-radius: 50px;
      margin: 1.75rem 0.25rem;
      padding: 0rem 1.75rem 1rem;
      background: rgba(36, 43, 53, 1);
      // border-width: 0 1px 0 1px !important;
      // border-style: solid !important;
      // border-color: #efcd8f !important;
      &:before,
      &:after {
        content: "";
        height: 75%;
        width: 1px;
        background: #efcd8f;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
      }
      &:before {
        content: "";
        left: -0.2rem;
      }
      &:after {
        content: "";
        right: -0.2rem;
      }
    }
    &:before,
    &:after {
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      right: 0;
      z-index: 0;
    }
    &:before {
      content: "";
      background: url("../images/card-futuristic-primary.svg") center top no-repeat;
      background-size: contain;
      top: 0;
      z-index: 0;
    }
    &:after {
      content: "";
      background: url("../images/card-futuristic-primary.svg") center top no-repeat;
      background-size: contain;
      transform: rotate(-180deg);
      bottom: 0;
    }
  }
  &.f-card-futuristic-secondary {
    position: relative;
    padding: 3rem;
    &:before,
    &:after {
      width: 50.25%;
      height: 100%;
      position: absolute;
      top: 0;
      z-index: 0;
    }
    &.bg-cover {
      &:before {
        content: "";
        background: url("../images/card-futuristic-secondary.svg") left center no-repeat;
        background-size: cover;
        left: 0;
      }
      &:after {
        content: "";
        background: url("../images/card-futuristic-secondary.svg") left center no-repeat;
        background-size: cover;
        transform: rotate(-180deg) scaleY(-1);
        right: 0;
      }
    }
    &.bg-contain {
      .f-card-body {
        &::before {
          content: "";
          position: absolute;
          top: -2.2rem;
          left: 50%;
          transform: translateX(-50%);
          height: 2px;
          width: 50%;
          background: #efcd8f;
        }
        &::after {
          content: "";
          position: absolute;
          bottom: -2.525rem;
          left: 50%;
          transform: translateX(-50%);
          height: 1px;
          width: 20%;
          border-radius: 100%;
          background: rgb(218, 180, 110);
          background: linear-gradient(
            90deg,
            rgba(218, 180, 110, 1) 11%,
            rgba(36, 43, 53, 0) 41%,
            rgba(36, 43, 53, 0) 57%,
            rgba(218, 180, 110, 1) 90%
          );
          @media screen and (max-width: 1280px) {
            display: none;
          }
        }
      }
      &:before {
        content: "";
        background: url("../images/card-futuristic-secondary.svg") left center no-repeat;
        background-size: contain;
        left: 0;
      }
      &:after {
        content: "";
        background: url("../images/card-futuristic-secondary.svg") left center no-repeat;
        background-size: contain;
        transform: rotate(-180deg) scaleY(-1);
        right: 0;
      }
    }
  }
}
