/* Shared profile action chips (shortlist, not interested, report) */
.profile-action-chip,
.profile-like-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.profile-action-chip:hover:not(:disabled),
.profile-like-chip:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);
}

.profile-action-chip:focus,
.profile-like-chip:focus {
  outline: none;
}

.profile-action-chip:active:not(:disabled),
.profile-like-chip:active:not(:disabled) {
  transform: scale(0.97);
}

.profile-action-chip:disabled,
.profile-action-chip.is-placeholder {
  cursor: not-allowed;
  opacity: 0.72;
}

.profile-action-text,
.profile-like-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.profile-action-label-main,
.profile-like-label-main {
  font-size: 0.78rem;
  font-weight: 600;
  color: #343a40;
  white-space: nowrap;
}

.profile-action-label-sub,
.profile-like-label-sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: #868e96;
  white-space: nowrap;
}

.profile-action-icon,
.profile-like-icon-stack {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-action-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

/* —— Shortlist / heart —— */
.profile-like-chip:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25), 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-like-chip.is-liked {
  background: linear-gradient(135deg, #fff8f8 0%, #fff0f0 100%);
  border-color: rgba(220, 53, 69, 0.22);
  box-shadow: 0 2px 12px rgba(220, 53, 69, 0.18);
}

.profile-like-chip.is-animating .profile-like-icon-stack {
  animation: profile-action-pulse 0.45s ease;
}

.profile-like-icon-stack {
  position: relative;
}

.profile-like-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-like-icon--outline {
  fill: none;
  stroke: #868e96;
  stroke-width: 1.75;
  stroke-linejoin: round;
  opacity: 1;
}

.profile-like-icon--filled {
  fill: #dc3545;
  stroke: none;
  opacity: 0;
  transform: scale(0.55);
}

.profile-like-chip:hover .profile-like-icon--outline {
  stroke: #e03131;
}

.profile-like-chip.is-liked .profile-like-icon--outline {
  opacity: 0;
  transform: scale(0.6);
}

.profile-like-chip.is-liked .profile-like-icon--filled {
  opacity: 1;
  transform: scale(1);
}

.profile-like-chip.is-liked .profile-like-label-main {
  color: #c92a2a;
}

.profile-like-chip.is-liked .profile-like-label-sub {
  color: #e03131;
  opacity: 0.85;
}

/* —— Not interested (decline) —— */
.profile-action-chip--decline:focus {
  box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.28), 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-action-chip--decline .profile-action-icon {
  color: #868e96;
}

.profile-action-chip--decline:hover .profile-action-icon {
  color: #e8590c;
}

.profile-action-chip--decline:hover .profile-action-label-main {
  color: #d9480f;
}

.profile-action-chip--decline.is-active,
.profile-action-chip--decline:active {
  background: linear-gradient(135deg, #fff9f3 0%, #fff4e6 100%);
  border-color: rgba(253, 126, 20, 0.28);
}

.profile-action-chip--decline.is-animating .profile-action-icon {
  animation: profile-action-pulse 0.45s ease;
}

/* —— Undo not interested (restore) —— */
.profile-action-chip--restore:focus {
  box-shadow: 0 0 0 3px rgba(43, 138, 62, 0.28), 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-action-chip--restore .profile-action-icon {
  color: #2b8a3e;
}

.profile-action-chip--restore:hover {
  background: linear-gradient(135deg, #f4fcf5 0%, #ebfbee 100%);
  border-color: rgba(43, 138, 62, 0.22);
}

.profile-action-chip--restore:hover .profile-action-label-main {
  color: #2b8a3e;
}

.profile-action-chip--restore.is-animating .profile-action-icon {
  animation: profile-action-pulse 0.45s ease;
}

/* —— Report (placeholder) —— */
.profile-action-chip--report:focus {
  box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.2), 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-action-chip--report .profile-action-icon {
  color: #868e96;
}

.profile-action-chip--report .profile-action-label-sub {
  font-style: italic;
}

/* Chip groups on cards / detail pages */
.profile-action-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-action-chips--card {
  margin-top: 0.65rem;
}

.profile-card-like-overlay {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  max-width: calc(100% - 1.2rem);
}

.profile-card-like-overlay .profile-like-chip,
.profile-card-like-overlay .profile-action-chip {
  max-width: 100%;
}

.member-card-photo-wrap {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .profile-like-chip.is-animating .profile-like-icon-stack,
  .profile-action-chip.is-animating .profile-action-icon {
    animation: none;
  }
  .profile-action-chip,
  .profile-like-chip,
  .profile-like-icon {
    transition: none;
  }
}

@keyframes profile-action-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
