/* Saved Page Styles */
.saved-page {
  background-color: #f8f9fa;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  color: #23272f;
}

/* Header */
.saved-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.saved-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.toggle-btn {
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.toggle-btn:hover {
  background-color: var(--color-hover);
}

.toggle-btn.active {
  background-color: var(--color-primary);
}

.toggle-btn.active svg {
  stroke: var(--color-white);
}

/* Saved Grid */
.saved-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.saved-card {
  background-color: var(--color-background);
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.saved-image {
  height: 160px;
  position: relative;
}

.saved-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.saved-info {
  padding: 12px;
}

.saved-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-info p {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 8px 0;
}

.saved-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  width: fit-content;
}

.stars {
  display: flex;
  align-items: center;
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: -1px;
}

.stars svg {
  fill: var(--color-gold) !important;
  stroke: var(--color-gold) !important;
}

.rating-value {
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 4px;
  color: #23272f;
}

/* Saved List View (to be toggled via JS) */
.saved-list {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 24px;
}

.saved-list-item {
  display: flex;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.saved-list-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.saved-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-list-info {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.saved-list-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.saved-list-info p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.saved-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* Responsive */
@media (min-width: 601px) {
  .saved-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .saved-image {
    height: 180px;
  }
}

@media (min-width: 1024px) {
  .saved-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
    max-width: 900px;
  }
  
  .saved-image {
    height: 200px;
  }
}

.saved-page .app-bar.saved-header {
  justify-content: space-between;
}

.saved-page .saved-header .app-title {
    flex-grow: 1;
    text-align: center;
}

.saved-page .saved-header .back-btn,
.saved-page .saved-header .add-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: all 0.2s;
  opacity: 0.8;
}

.saved-page .saved-header .back-btn:hover,
.saved-page .saved-header .add-btn:hover {
    opacity: 1;
    background: #f7fafd;
}

.saved-page .saved-header .back-btn svg,
.saved-page .saved-header .add-btn svg {
    width: 24px;
    height: 24px;
    stroke: #23272f;
    stroke-width: 2;
}

.saved-page .section-subtitle {
    margin-top: 16px;
    margin-bottom: 24px;
}

@media (min-width: 601px) {
    .saved-page .app-bar.saved-header {
        padding: 0 32px;
    }

    .saved-page .saved-header .back-btn,
    .saved-page .saved-header .add-btn {
        width: 44px;
        height: 44px;
    }

    .saved-page .saved-header .back-btn svg,
    .saved-page .saved-header .add-btn svg {
        width: 26px;
        height: 26px;
    }

    .saved-page .section-subtitle {
        margin-top: 24px;
        margin-bottom: 32px;
    }
}

@media (min-width: 1024px) {
    .saved-page .app-bar.saved-header {
        padding: 0 40px;
    }

    .saved-page .saved-header .back-btn,
    .saved-page .saved-header .add-btn {
        width: 48px;
        height: 48px;
    }

    .saved-page .saved-header .back-btn svg,
    .saved-page .saved-header .add-btn svg {
        width: 28px;
        height: 28px;
    }

     .saved-page .section-subtitle {
        font-size: 1.2rem;
        margin-top: 32px;
        margin-bottom: 40px;
    }
} 