/* Favorite Icon Styles */
.favorite-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  pointer-events: auto;
}

/* Utility class to forcefully hide the icon */
.hide-icon {
  display: none !important;
}

.favorite-icon:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.favorite-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.2s ease;
  pointer-events: none;
}

/* Favorited state */
.favorite-icon.favorited svg path {
  fill: #FF3B30;
  stroke: #FF3B30;
}

/* Hover states */
.favorite-icon:not(.favorited):hover svg path {
  stroke: #FF3B30;
}

/* Make the card container position relative for proper z-index stacking */
.card-container {
  position: relative;
}

/* Disable pointer events on the parent link for the favorite icon area */
a.profile-link {
  position: relative;
}

a.profile-link .favorite-icon {
  position: absolute;
  z-index: 100;
  pointer-events: all !important;
}

/* Toast notification for favorite actions */
.favorite-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.favorite-toast.show {
  opacity: 1;
}
