/* Recipes page */
.recipes-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
}
.recipes-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.recipes-header-top h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.recipes-header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Toolbar */
.recipes-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
}
.recipes-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
}
.recipes-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(196, 125, 138, 0.15);
}
.recipes-search::placeholder {
  color: var(--text2);
  opacity: 0.7;
}
.recipes-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.recipes-chips .chip-group {
  display: flex;
  gap: 4px;
  align-items: center;
}
.recipes-chips .chip-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 4px;
}
.recipes-stats {
  font-size: 0.75rem;
  color: var(--text2);
  margin-left: auto;
  white-space: nowrap;
}

/* Recipe list */
.recipes-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Recipe card */
.recipe-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: opacity 0.2s, background 0.15s;
}
.recipe-card.disliked {
  opacity: 0.45;
}
.recipe-card-info {
  flex: 1;
  min-width: 0;
}
.recipe-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recipe-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 3px;
  flex-wrap: wrap;
}
.recipe-card-cal {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8864e;
}
.recipe-card-diff {
  font-size: 0.7rem;
  color: var(--text2);
}
.recipe-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.recipe-card-tags .tag {
  font-size: 0.6rem;
  padding: 1px 6px;
}

/* Like/Dislike buttons */
.recipe-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.pref-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s;
  color: var(--text2);
}
.pref-btn:active {
  transform: scale(0.9);
}
.pref-btn.like-active {
  background: rgba(106, 178, 155, 0.15);
  border-color: var(--green);
  color: var(--green);
}
.pref-btn.dislike-active {
  background: rgba(212, 114, 114, 0.15);
  border-color: var(--red);
  color: var(--red);
}

/* Empty */
.recipes-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text2);
  font-size: 0.88rem;
}

/* Custom recipe badge */
.badge-custom {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

@media (min-width: 500px) {
  .recipes-header { padding: 16px 24px 0; }
  .recipes-list { padding: 16px 24px; }
}
