/* Anahata v2 — reward card. Figma: Me (Completed).png "Earn Rewards". */

.reward-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--a-space-3);
  min-height: 110px;
  padding: var(--a-space-4);
  background: var(--a-surface);
  border-radius: var(--a-radius);
  color: var(--a-ink);
  text-decoration: none;
  overflow: hidden;
}

.reward-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--a-space-1);
  z-index: 1;
}

.reward-card__title {
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-body-l);
  line-height: var(--a-lh-body-l);
}

.reward-card__subtitle,
.reward-card__note {
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
  line-height: var(--a-lh-label);
  color: var(--a-label-secondary);
}

.reward-card__tag {
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-body-s);
  line-height: var(--a-lh-body-s);
}

.reward-card__reward {
  display: flex;
  align-items: baseline;
  gap: var(--a-space-1);
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-l);
  line-height: normal;
}

.reward-card__amount {
  font-weight: 700;
  font-size: var(--a-fs-price);
  line-height: normal;
}

/* The photo bleeds to the card's right edge and fills its full height. It is
   positioned rather than laid out in the flex row so its intrinsic aspect
   ratio can't stretch the card — the copy decides the height, the photo
   crops to it. */
.reward-card__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 170px;
}

/* only when a photo follows — a card without one uses the full width. The
   fade lets the copy run over the photo's transparent edge. */
.reward-card__body:not(:last-child) {
  padding-right: calc(170px - var(--a-space-6) * 2);
}

.reward-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the photo fades in from the card's white ground instead of starting at a
     hard edge, so it can sit closer to the copy (designer review 2026-09-24).
     On the image, not its box, so the badge on top stays solid. */
  -webkit-mask-image: var(--a-mask-fade-left);
  mask-image: var(--a-mask-fade-left);
}

/* The badge sits on whatever photo the owner picks, so it carries its own
   ground — a white glyph alone disappears on a pale product shot. */
.reward-card__badge {
  position: absolute;
  left: calc(var(--a-space-6) * 2); /* clear of the faded edge */
  bottom: var(--a-space-3);
  display: flex;
  padding: var(--a-space-1);
  background: var(--a-ink-pure);
  border-radius: var(--a-radius-8);
  color: var(--a-on-dark);
}

/* Instagram reward: the colour app icon, tilted ~12° anticlockwise like the
   design (Me (Completed).png; designer review 2026-09-26 #10) */
.reward-card__logo {
  position: absolute;
  left: calc(var(--a-space-6) * 2);
  bottom: var(--a-space-3);
  width: 38px;
  height: 38px;
  transform: rotate(-12deg);
}
