/* Favorites Page Styles */

/* Shrink Animation Classes */
.shrink-move,
.shrink-enter-active,
.shrink-leave-active {
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
}

.shrink-enter-from,
.shrink-leave-to {
  opacity: 0;
  transform: scale(0.75) translateY(25%);
}

.shrink-leave-active {
  position: absolute;
}

/* Heart Animation */
@keyframes animateHeart {
  0% {
    transform: scale(0.9);
  }
  5% {
    transform: scale(1.1);
  }
  10% {
    transform: scale(0.9);
  }
  15% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(0.9);
  }
}

.pulse-heart {
  animation: animateHeart 1.2s infinite;
}

/* Favorites Grid */
.favorites-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.favorite-item {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  position: relative;
  user-select: none;
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
}

@media (min-width: 640px) {
  .favorite-item {
    padding: 8px;
  }
}

@media (min-width: 1024px) {
  .favorite-item {
    padding: 8px;
  }
}

.favorite-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 125%;
  border-radius: 32px;
}

.favorite-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #e5e5e5;
}

.dark .favorite-image {
  background-color: #404040;
}

.favorite-link {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.favorite-link:hover {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.favorite-content {
  display: grid;
  gap: 2px;
  color: white;
}

.favorite-price {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.favorite-sale-price {
  color: white;
}

.favorite-regular-price {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
}

.favorite-name {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.2;
}

.favorite-category {
  font-size: 14px;
  font-weight: 500;
}

/* Remove Button */
.remove-favorite-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-favorite-btn:hover {
  transform: scale(1.1);
}

.remove-favorite-btn .btn-bg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(69, 10, 10, 0.9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.remove-favorite-btn:hover .btn-bg {
  background-color: rgba(69, 10, 10, 1);
}

.remove-favorite-btn .heart-icon {
  width: 26px;
  height: 26px;
  color: #B91C1C;
  transition: color 0.3s ease;
}

.remove-favorite-btn:hover .heart-icon {
  color: white;
}

/* Empty State */
.empty-state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  min-height: calc(100vh - 152px);
  justify-content: center;
  background: radial-gradient(ellipse at center, var(--tw-gradient-stops));
  background-color: #f5f5f5;
  border-radius: 12px;
}

.dark .empty-state {
  background-color: #171717;
}

.empty-state-icon {
  background-color: #fef2f2;
  border-radius: 50%;
  padding: 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.25);
  justify-content: center;
}

.dark .empty-state-icon {
  background-color: #450a0a;
  box-shadow: 0 25px 50px -12px rgba(69, 10, 10, 0.5);
}

.empty-state-title {
  font-weight: 800;
  font-size: 30px;
  margin: 24px 0;
}

.empty-state-text {
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 640px) {
  .favorite-item {
    max-width: 100%;
  }
  
  .empty-state {
    padding: 16px;
  }
  
  .empty-state-title {
    font-size: 24px;
  }
}

/* Dark Mode Support */
.dark .favorite-card {
  background-color: #1f2937;
}

.dark .favorite-link {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.dark .favorite-link:hover {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
} 