.nearby-pet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(45, 34, 85, 0.4);
  border: 1px solid rgba(216, 180, 255, 0.06);
  transition: background 200ms, border-color 200ms;
}

.nearby-pet-card--active {
  background: rgba(216, 180, 255, 0.12);
  border-color: $accent;
}

.nearby-pet-card__photo {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
}

.nearby-pet-card__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.photo-gold {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 217, 168, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, #6b4f9a 0%, #2a1f4a 100%);
}

.photo-green {
  background:
    radial-gradient(circle at 50% 30%, rgba(143, 229, 181, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, #4a7a6a 0%, #1a3a2a 100%);
}

.photo-pink {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 179, 200, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, #7a4a6a 0%, #3a1a2a 100%);
}

.photo-blue {
  background:
    radial-gradient(circle at 50% 30%, rgba(216, 180, 255, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, #4a4a8a 0%, #1a1a3a 100%);
}

.nearby-pet-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
}

.nearby-pet-card__distance {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: $fg;
  font: 600 9px / 1.2 $font-body;
}

.nearby-pet-card__info {
  flex: 1;
  min-width: 0;
}

.nearby-pet-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nearby-pet-card__name {
  font: 700 14px / 1.2 $font-body;
}

.nearby-pet-card__online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: $success;
  box-shadow: 0 0 4px $success;
}

.nearby-pet-card__meta,
.nearby-pet-card__mood {
  display: block;
  margin-top: 4px;
  color: $fg-2;
  font: 400 11px / 1.3 $font-body;
}

.nearby-pet-card__tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.nearby-pet-card__tag {
  padding: 2px 8px;
  border-radius: $radius-pill;
  background: rgba(255, 217, 168, 0.14);
  color: $primary;
  font: 500 9px / 1.4 $font-body;
  border: 1px solid rgba(255, 217, 168, 0.18);
}

.nearby-pet-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  width: 78px;
}

.nearby-pet-card__friend {
  width: 76px;
  height: 30px;
  border-radius: $radius-pill;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  color: $primary-on;
  background: linear-gradient(135deg, $accent, $accent-2);
  box-shadow: 0 6px 16px rgba(216, 180, 255, 0.22);
  transition: transform 180ms, opacity 180ms, background 180ms;
}

.nearby-pet-card__friend:active {
  transform: scale(0.98);
}

.nearby-pet-card__friend--friend {
  background: rgba(143, 229, 181, 0.16);
  border: 1px solid rgba(143, 229, 181, 0.32);
  color: $success;
  box-shadow: none;
}

.nearby-pet-card__friend--pending,
.nearby-pet-card__friend--mine {
  background: rgba(216, 180, 255, 0.08);
  border: 1px solid rgba(216, 180, 255, 0.18);
  color: $muted;
  box-shadow: none;
}

.nearby-pet-card__friend-text {
  font: 600 10px / 1 $font-body;
  white-space: nowrap;
}

.nearby-pet-card__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 16, 43, 0.5);
  border: 1px solid rgba(216, 180, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: $fg-2;
}

.nearby-pet-card__btn--like {
  background: rgba(20, 16, 43, 0.5);
  border: 1px solid rgba(216, 180, 255, 0.08);
  color: $fg-2;
  box-shadow: none;
}

.nearby-pet-card__btn--liked {
  background: linear-gradient(135deg, $accent-2 0%, #ff8aab 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 138, 171, 0.35);
}
