/* ------------------------------------------------------------
   ❤️ Bo-DONG — favorites.css
   Styles pour le swipe-to-delete iOS Mail premium style
------------------------------------------------------------- */

.favorite-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 1rem;
}

.favorite-swipe-bg {
  position: absolute;
  inset: 0;
  background: #CE6C54;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1.5rem;
  z-index: 1;
}

.favorite-delete-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #F7F4EF;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.favorite-delete-icon {
  font-size: 1.2rem;
}

.favorite-card {
  position: relative;
  background: #FFF9F2;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 1.4rem 1.6rem;
  transform: translateX(0);
  transition: transform 0.22s cubic-bezier(.25, .8, .25, 1),
              box-shadow 0.22s ease;
  will-change: transform;
  z-index: 2;
}

.favorite-card.swiping {
  transition: none; /* Pendant le drag, pas d'inertie automatique */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.favorite-card.removing {
  opacity: 0;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

/* Mode nuit */
body.theme-dark .favorite-card {
  background: rgba(40, 40, 45, 0.9);
  color: rgba(247, 244, 239, 0.85);
}

body.theme-dark .favorite-swipe-bg {
  background: #C86A55;
}

