/* ===== Favorite button ===== */
.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
  
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: var(--white);
    color: var(--text-dark);
  
    cursor: pointer;
    line-height: 1;
    text-decoration: none; /* for <a> variant */
    user-select: none;
  
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
  }
  
  .favorite-btn__icon {
    font-size: 1.1rem;
    transform: translateY(-0.02rem);
  }
  
  /* hover = more apparent */
  .favorite-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    border-color: rgba(15, 23, 42, 0.22);
    background: #f8fafc; /* subtle */
  }
  
  /* pressed */
  .favorite-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  
  /* keyboard accessibility */
  .favorite-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45); /* blue ring */
    outline-offset: 2px;
  }
  
  /* ON state (favorited) */
  .favorite-btn.on {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444; /* heart color */
    font-size: 1.7rem;
  }
  
  /* make the heart feel “alive” on hover when ON */
  .favorite-btn.on:hover {
    background: rgba(239, 68, 68, 0.14);
  }
  
  /* logged-out link style */
  .favorite-btn.hint {
    opacity: 0.85;
  }
  .favorite-btn.hint:hover {
    opacity: 1;
  }
  