/* ================================================================
   Wishlist Styles — Dark Theme
   ================================================================ */

/* Heart icon button */
.wishlist-heart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #888;
  transition: color 0.25s ease, transform 0.2s ease;
  z-index: 5;
}

.wishlist-heart:hover {
  color: #e74c6f;
  transform: scale(1.15);
}

.wishlist-heart:active {
  transform: scale(0.9);
}

/* Heart SVG paths */
.wishlist-heart .heart-outline {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.wishlist-heart .heart-fill {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Wishlisted state — filled heart */
.wishlist-heart.wishlisted {
  color: #e74c6f;
}

.wishlist-heart.wishlisted .heart-outline {
  opacity: 0;
}

.wishlist-heart.wishlisted .heart-fill {
  opacity: 1;
  animation: wishlist-pop 0.4s ease;
}

/* Pop animation on add */
@keyframes wishlist-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  50%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

/* Nav badge */
#wishlist-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e74c6f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  top: -4px;
  right: -6px;
}

/* ================================================================
   Wishlist Page Layout
   ================================================================ */
.wishlist-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.wishlist-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #888;
}

.wishlist-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.wishlist-card {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-card:hover {
  border-color: #e74c6f44;
  box-shadow: 0 4px 20px rgba(231, 76, 111, 0.08);
}

.wishlist-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wishlist-card-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.wishlist-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #eee;
}

.wishlist-card-header .wishlist-tier {
  font-size: 0.8rem;
  color: #888;
  margin-left: auto;
}

/* Priority badges */
.wishlist-priority {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wishlist-priority--normal {
  background: #2a2a4a;
  color: #888;
}

.wishlist-priority--high {
  background: #f59e0b22;
  color: #f59e0b;
}

.wishlist-priority--must-have {
  background: #e74c6f22;
  color: #e74c6f;
}

/* Notes */
.wishlist-notes {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
  line-height: 1.4;
}

/* Actions */
.wishlist-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.wishlist-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.wishlist-btn:active {
  transform: scale(0.97);
}

.wishlist-btn--cart {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.wishlist-btn--cart:hover {
  background: linear-gradient(135deg, #5558e6, #7c4fe0);
}

.wishlist-btn--remove {
  background: #2a2a4a;
  color: #e74c6f;
}

.wishlist-btn--remove:hover {
  background: #3a2a3a;
}

/* Price display */
.wishlist-price {
  font-size: 1rem;
  font-weight: 700;
  color: #6366f1;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 600px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
  }

  .wishlist-heart {
    width: 32px;
    height: 32px;
  }
}

/* ================================================================
   Reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .wishlist-heart.wishlisted .heart-fill {
    animation: none;
  }

  .wishlist-heart {
    transition: none;
  }
}
