/* Recipe viewer — mirrors PlatePilot app detail (hero → title → ingredients → steps) */

body.recipe-page {
  background: var(--cream);
}

.recipe-main {
  padding: 1.25rem 0 3rem;
  max-width: 640px;
}

.recipe-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 25, 23, 0.04);
}

.recipe-hero {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--olive-muted), var(--brass-soft));
  overflow: hidden;
}

.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero--empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-hero--empty::after {
  content: "🍽";
  font-size: 2.5rem;
  opacity: 0.45;
}

.recipe-body {
  padding: 1.5rem 1.35rem 2rem;
}

.recipe-body h1 {
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.recipe-meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.recipe-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--olive-dark);
  margin: 1.6rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.ing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ing-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  font-size: 0.98rem;
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}

.ing-list .qty {
  font-weight: 600;
  color: var(--olive-dark);
  min-width: 4.5rem;
  flex-shrink: 0;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  align-items: flex-start;
}

.step-list .n {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--olive-muted);
  color: var(--olive-dark);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list .step {
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}

.recipe-loading,
.recipe-error {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--muted);
}

.recipe-error h1 {
  color: var(--ink);
  font-size: 1.4rem;
}

.credit-line {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.credit-line a {
  color: var(--olive);
}
