@use "../../../../styles/abstracts/variables" as *;

.card {
  position: relative;
  width: 100%;
  min-width: 0;

  padding: 1.2rem;

  border-radius: 14px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );

  border: 1px solid
    rgba(255, 255, 255, 0.06);

  overflow: hidden;

  transition: all 0.25s ease;

  &:hover {
    transform: translateY(-2px);

    border-color: rgba(
      247,
      147,
      26,
      0.18
    );

    background: linear-gradient(
      180deg,
      rgba(
          247,
          147,
          26,
          0.04
        )
        0%,
      rgba(
          255,
          255,
          255,
          0.015
        )
        100%
    );
  }

  // &::before {
  //   content: "";

  //   position: absolute;

  //   top: -100px;
  //   right: -100px;

  //   width: 220px;
  //   height: 220px;

  //   border-radius: 50%;

  //   background: radial-gradient(
  //     circle,
  //     rgba(
  //       247,
  //       147,
  //       26,
  //       0.08
  //     ),
  //     transparent
  //   );

  //   pointer-events: none;
  // }

  /* ==========================
     HEADER
  ========================== */

  &__header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 1rem;

    margin-bottom: .3rem;

    &__content {
      h4 {
        margin: 0;

        color: #ffffff;

        font-size: 0.82rem;

        font-weight: 500;
      }

      p {
        margin-top: 0.35rem;

        color: rgba(
          255,
          255,
          255,
          0.55
        );

        font-size: 0.72rem;

        line-height: 1.6;

        max-width: 220px;
      }
    }

    &__icon {
      width: 32px;
      height: 32px;

      flex-shrink: 0;

      display: flex;
      align-items: center;
      justify-content: center;

      border-radius: 6px;

      background: rgba(
        247,
        147,
        26,
        0.12
      );

      border: 1px solid
        rgba(
          247,
          147,
          26,
          0.2
        );

      svg {
        font-size: 1.15rem;

        color: #f7931a;
      }
    }
  }

  /* ==========================
     BODY
  ========================== */

  &__body {
    h2 {
      margin: 0;

      color: #ffffff;

      font-size: 1.2rem;

      font-weight: 600;

      line-height: 1.1;

      letter-spacing: -0.03em;

      @media only screen and (max-width: 1000px) {
        font-size: 1.4rem;
      }
    }
  }
}

/* ==================================
SKELETON
================================== */

.skeletonHeader {
  display: flex;

  justify-content: space-between;

  margin-bottom: 1rem;
}

.skeletonTitle {
  width: 120px;

  height: 12px;

  border-radius: 4px;

  animation: pulse 1.4s infinite;
}

.skeletonDescription {
  width: 70%;

  height: 10px;

  border-radius: 4px;

  margin-bottom: 1.4rem;

  animation: pulse 1.4s infinite;
}

.skeletonIcon {
  width: 42px;
  height: 42px;

  border-radius: 10px;

  animation: pulse 1.4s infinite;
}

.skeletonValue {
  width: 140px;

  height: 26px;

  border-radius: 6px;

  animation: pulse 1.4s infinite;
}

.skeletonTitle,
.skeletonDescription,
.skeletonIcon,
.skeletonValue {
  background: rgba(
    255,
    255,
    255,
    0.08
  );
}

@keyframes pulse {
  0% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.45;
  }
}