/**
 * Favorites System Styles
 */

/* Heart Icon Button */
.heart-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.heart-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(184, 132, 140, 0.3);
}

.heart-icon.favorited {
  background: rgba(184, 132, 140, 0.15);
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Favorites Count Badge - HIDDEN (moved to account dashboard) */
#favorites-count {
  display: none !important;
}

/* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--charcoal, #1F1F1F);
}

.modal-header p {
  font-size: 15px;
  color: var(--muted, #7A7A7A);
  line-height: 1.5;
}

/* Saved Dresses Preview */
.saved-dresses-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.saved-dress-thumb {
  width: 100px;
  text-align: center;
}

.saved-dress-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.saved-dress-info {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.saved-dress-info .brand {
  font-weight: 600;
  color: var(--charcoal, #1F1F1F);
}

.saved-dress-info .price {
  color: var(--rose, #B8848C);
  font-weight: 500;
}

/* Email Form */
#email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#email-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--soft-border, rgba(0,0,0,0.1));
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}

#email-input:focus {
  outline: none;
  border-color: var(--rose, #B8848C);
}

#email-form .btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: var(--rose, #B8848C);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

#email-form .btn-primary:hover {
  background: var(--rose-dark, #9A6B73);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184, 132, 140, 0.3);
}

#email-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted, #7A7A7A);
  line-height: 1.4;
}

/* Success Toast */
.success-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--rose, #B8848C);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transition: transform 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.success-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .modal-content {
    padding: 32px 24px;
  }
  
  .modal-header h2 {
    font-size: 24px;
  }
  
  .saved-dress-thumb {
    width: 80px;
  }
  
  .saved-dress-thumb img {
    height: 120px;
  }
  
  #favorites-count {
    top: 60px;
    right: 14px;
    min-width: 48px;
    height: 46px;
    font-size: 13px;
    padding: 0 14px;
    gap: 5px;
  }
  
  #favorites-count::before {
    font-size: 16px;
  }
}
