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

/* =========================================
   COLORS
========================================= */

$primary: #5e3817;
$primary-2: #7a4b20;

$primary-soft: rgba(122, 75, 32, 0.08);
$primary-border: rgba(122, 75, 32, 0.18);

$text-dark: #1a1a1a;
$text-light: #6b6b6b;

$success: #16a34a;
$danger: #dc2626;

$border: rgba(0, 0, 0, 0.06);

/* =========================================
   CARD
========================================= */

.card {
  background: #ffffff;
  border: 1px solid $border;
  border-radius: 16px;

  padding: 1rem 1.4rem;
  flex: 0 0 300px;

  display: flex;
  flex-direction: column;

  transition: all 0.2s ease;

  /* fintech depth */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

  &:hover {
    border-color: $primary-border;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  }
}

/* =========================================
   TOP
========================================= */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label {
  font-size: 0.78rem;
  font-weight: 500;
  color: $text-light;
}

/* =========================================
   ICON
========================================= */

.icon {
  width: 32px;
  height: 32px;

  border-radius: 10px;

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

  background: $primary-soft;
  color: $primary;

  font-size: 0.9rem;
}

/* =========================================
   VALUE ROW
========================================= */

.valueRow {
  display: flex;
  align-items: center;
  justify-content: space-between;

  // margin-top: 0.6rem;

  h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: $text-dark;
  }
}


/* =========================================
   DESCRIPTION
========================================= */

.description {
  font-size: 0.8rem;
  color: $text-light;
}

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

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  .skeletonTop,
  .skeletonValue,
  .skeletonBottom {
    height: 14px;
    border-radius: 6px;

    background: linear-gradient(
      90deg,
      #f4f4f4 25%,
      #eaeaea 50%,
      #f4f4f4 75%
    );

    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
    margin-bottom: 0.6rem;
  }

  .skeletonValue {
    height: 20px;
    width: 60%;
  }

  .skeletonBottom {
    width: 80%;
  }
}