/* Favorites Page Styles */

.favorites-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  min-height: 80vh;
}

/* HEADER BLOCK */
.favorites-header-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.header-titles h1 {
  font-size: 2.5rem;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.header-titles p {
  color: #64748b;
  margin: 0;
  font-size: 1.1rem;
}

/* SUMMARY CARD (Top Right) */
.favorites-summary-card {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 250px;
}

.summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.summary-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.8rem;
}

.btn-action-header {
  background: #0f172a;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
  transition: background 0.2s;
}

.btn-action-header:hover {
  background: #1e293b;
}

/* TABS */
.favorites-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.fav-tab {
  background: transparent;
  border: none;
  padding: 0.8rem 0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.fav-tab:hover {
  color: #0f172a;
}

.fav-tab.active {
  color: #0ea5e9;
}

.fav-tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0ea5e9;
}

.tab-count {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 99px;
  font-weight: 700;
}

.fav-tab.active .tab-count {
  background: #e0f2fe;
  color: #0369a1;
}

/* GRID */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

/* SUGGESTIONS */
.favorites-suggestions {
  border-top: 1px solid #e2e8f0;
  padding-top: 4rem;
  margin-top: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.8rem;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.section-subtitle {
  color: #64748b;
  margin: 0;
  font-size: 1rem;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* EMPTY STATE */
.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  min-height: 60vh;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.favorites-empty h2 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  color: #0f172a;
}

.favorites-empty p {
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 400px;
  line-height: 1.5;
}

.btn-primary {
  background: #0f172a;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
  .favorites-header-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .favorites-summary-card {
    width: 100%;
    align-items: center;
  }

  .header-titles h1 {
    font-size: 2rem;
  }

  .favorites-grid,
  .suggestions-grid {
    grid-template-columns: 1fr;
  }
}
