/* =========================================
   Favourites Page - Bookmarked Dogs
   ========================================= */

.page-wrapper {
  min-height: 100vh;
  background: var(--color-background-main);
}

.page-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #2a3640 100%);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
}

.title-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
  font-weight: 300;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.empty-icon {
  width: 5rem;
  height: 5rem;
  color: var(--color-light-grey);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.empty-state h2 {
  font-size: 1.75rem;
  color: var(--color-text-main);
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.empty-state p {
  font-size: 1rem;
  color: var(--color-dark-grey);
  margin: 0 0 2rem 0;
}

.empty-state .cta-btn {
  display: inline-flex;
  gap: 0.5rem;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.loading-state p {
  color: var(--color-dark-grey);
  font-size: 1rem;
}

/* Favourites Grid - uses dog-grid from dog-list.css */
#favourites-container .dog-grid {
  margin: 0 auto;
}

/* Remove Button in Card */
.dog-card .remove-from-favorites {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
}

.dog-card:hover .remove-from-favorites {
  opacity: 1;
}

.dog-card .remove-from-favorites:hover {
  background: #ff5a34;
  transform: scale(1.1);
}

.remove-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .toast {
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    transform: translateX(0);
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .title-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .dog-card .remove-from-favorites {
    opacity: 1;
  }
}
