/* =========================================
   FRESH'D — WHAT CAN I MAKE?
   Colors come from :root in style.css
========================================= */

.recipes-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ---------- HERO + FORM ---------- */

.recipes-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #393939;
}

.recipes-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--muted);
}

.recipes-hero h1 {
  margin: 18px 0;
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -5px;
  line-height: 0.85;
}

.recipes-hero h1 span {
  color: var(--green);
}

.recipes-intro {
  max-width: 480px;
  line-height: 1.7;
  color: #d8d2c6;
}

.recipes-receipt {
  background: var(--cream);
  color: #111;
  padding: 28px 24px;
  font-family: "Courier New", monospace;
  transform: rotate(1deg);
  box-shadow: 10px 10px 0 #1c1c1c;
}

.receipt-brand {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  margin: 0;
}

.recipes-receipt h2 {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -2px;
  line-height: 0.95;
  margin: 12px 0;
}

.receipt-rule {
  border-top: 1px dashed #111;
  margin: 16px 0;
}

.recipes-receipt label {
  display: block;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 8px;
}

.recipes-receipt select {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #8d8170;
  border-radius: 3px;
  background: #fffdf6;
  color: #111;
  font: inherit;
  font-size: 15px;
}

.receipt-help {
  font-size: 11px;
  line-height: 1.5;
  margin: 8px 0;
}

.recipes-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  background: #050505;
  color: white;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.recipes-submit:hover {
  background: var(--red);
}

.recipes-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.recipes-page select:focus-visible,
.recipes-page button:focus-visible,
.recipes-page a:focus-visible,
.recipes-page summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- STATUS MESSAGES ---------- */

.recipe-status {
  margin: 32px 0 20px;
}

.recipe-status:empty {
  display: none;
}

.status-box {
  border: 1px dashed #777;
  border-radius: 12px;
  padding: 22px;
  line-height: 1.6;
}

.status-box h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.status-box p {
  margin: 0;
  color: #d8d2c6;
}

.status-box a {
  display: inline-block;
  margin: 12px 14px 0 0;
  font-weight: bold;
}

.status-loading {
  border-style: solid;
  border-color: var(--green);
}

.status-error,
.status-invalid {
  border-style: solid;
  border-color: var(--red);
  background: rgba(198, 62, 49, 0.12);
}

/* ---------- RECIPE CARDS (Trial B) ---------- */

.results-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

.recipe-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #444;
  border-radius: 14px;
  overflow: hidden;
}

.recipe-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #222;
}

.match-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 86px;
  height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  border: 3px dashed var(--cream);
  font-weight: 900;
  transform: rotate(8deg);
}

.match-stamp strong {
  font-size: 26px;
  line-height: 1;
}

.match-stamp span {
  font-size: 9px;
  letter-spacing: 1px;
}

/* Full match gets the green stamp */
.match-stamp.full {
  background: var(--green);
  color: var(--black);
  border-color: var(--black);
}

.recipe-body {
  padding: 18px;
}

.recipe-meta {
  margin: 0;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.recipe-body h3 {
  margin: 6px 0 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.soon-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
}

.list-label {
  margin: 12px 0 6px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 13px;
}

.tags.have li {
  background: var(--green);
  color: var(--black);
}

.tags.need li {
  border: 1px dashed var(--red);
}

.tags .none {
  border: 0;
  padding-left: 0;
  color: var(--muted);
}

/* "Show recipe" fold-out */
.recipe-card details {
  margin-top: 16px;
  border-top: 1px dashed #444;
  padding-top: 12px;
}

.recipe-card summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
}

.recipe-card details ul {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.recipe-card details p {
  font-size: 14px;
  line-height: 1.7;
  color: #d8d2c6;
}

.recipes-footer {
  padding: 28px 24px;
  border-top: 1px solid #393939;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* ---------- PHONES ---------- */

@media (max-width: 800px) {
  .recipes-hero {
    grid-template-columns: 1fr;
  }

  .recipes-receipt {
    transform: none;
  }
}

@media (max-width: 600px) {
  .recipes-page {
    padding: 24px 16px 60px;
  }

  .recipes-hero h1 {
    letter-spacing: -3px;
  }

  .recipe-results {
    grid-template-columns: 1fr;
  }
}

/* Fallback when a recipe has no photo */
.recipe-card img.no-photo {
  object-fit: contain;
  padding: 30px;
}

/* ---------- KITCHEN TOOLS ---------- */

.tool-picker,
.pick-list {
  margin: 18px 0 14px;
  padding: 0;
  border: 0;
}

.pick-list {
  margin-top: 0;
}

.tool-picker legend,
.pick-list legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 13px;
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Each checkbox (ingredients and tools) looks like a pill you can tap */
.tool-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #8d8170;
  border-radius: 99px;
  font-size: 13px;
  cursor: pointer;
}

.tool-option:has(input:checked) {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

.tool-option input {
  accent-color: var(--green);
}

.recipes-receipt label[for="tool-select"] {
  margin-top: 6px;
}

/* Tool tags on recipe cards */
.tags.tools li {
  border: 1px solid #777;
}

.tags.tools li.no-tool {
  border: 1px dashed var(--yellow);
  color: var(--yellow);
}
