.favorite-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out;
}

.favorite-toggle svg {
  transition: transform 200ms ease-out, fill 200ms ease-out, stroke 200ms ease-out;
  fill: transparent;
  stroke: currentColor;
}

.favorite-toggle.is-active {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

.favorite-toggle.is-active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.favorite-toggle.is-animating {
  transform: scale(1.15);
}

.favorite-nav-link {
  position: relative;
}

.favorite-badge {
  position: absolute;
  top: -0.25rem;
  inset-inline-end: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.favorite-toast {
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border-radius: 0.875rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  animation: toast-in 200ms ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-toggle,
  .favorite-toggle svg,
  .favorite-toggle.is-animating,
  .favorite-toast {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
