/* Flag styling */
.flag {
  display: inline-block;
}

.flag-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.flag-button:hover {
  transform: scale(1.1);
}

.flag-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
}

.heart-icon {
  width: 24px;
  height: 24px;
  transition: fill 0.2s ease;
}

/* Normal heart state (action-flag) */
.action-flag .heart-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Flagged heart state (action-unflag) */
.action-unflag .heart-icon {
  fill: #ff4081;
  stroke: none;
}

/* Animation for flagging/unflagging */
.flag-button:active .heart-icon {
  transform: scale(0.8);
}

/* Hide text but keep it accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Processing state */
.flag.is-processing .heart-icon {
  opacity: 0.5;
  pointer-events: none;
}

.flag.is-processing .flag-button {
  cursor: wait;
}

/* Hover effects */
.action-flag .flag-button:hover .heart-icon {
  fill: rgba(255, 64, 129, 0.2);
}

.action-unflag .flag-button:hover .heart-icon {
  fill: #ff6b99;
} 