/* Styles for asset-card.hbs — one asset tile, and the "more" tile beside it.
   Ported from the legacy `HomeAssetCard.vue`. */

/* The fixed height is the legacy value and is what keeps the grid even while the
   names underneath run to different lengths. */
.asset-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 180px;
  padding: 16px;
  border-radius: 16px;
  background-color: var(--gray-0);
}

.asset-coin {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.asset-name {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 600;
  line-height: 29px;
}

.asset-price {
  margin-top: 4px;
  color: var(--gray-600);
  font-size: 16px;
  font-weight: 400;
}

.asset-price-unit {
  font-size: 14px;
}

.asset-change {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* The arrow is the shared `#icon-trend`, which points down; `up` and an unchanged
   `flat` flip it, matching what the legacy card did with its two icon variants.
   Its fill is `currentColor`, so colouring the text colours the arrow. */
.asset-change[data-direction='up'] {
  color: var(--success);
}

.asset-change[data-direction='down'] {
  color: var(--danger);
}

.asset-change[data-direction='up'] .asset-change-arrow,
.asset-change[data-direction='flat'] .asset-change-arrow {
  transform: rotate(180deg);
}

/* At exactly 0.00% the legacy card drew its up-arrow variant, green, beside a
   number left in the default text colour — the green was on the icon, not on the
   row. Only the arrow is recoloured here for the same reason. */
.asset-change[data-direction='flat'] .asset-change-arrow {
  color: var(--success);
}

.asset-more-icon {
  width: 112px;
}

.asset-more-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 400;
}

.asset-more-arrow {
  color: var(--gray-500);
}

@media (min-width: 600px) {
  .asset-name {
    font-size: 18px;
    line-height: 32px;
  }

  .asset-change {
    font-size: 18px;
  }
}
