/* =========================================================
   ONZE KEUKEN — NIEUW RECEPT V1
   Cooking UI bewust onaangeraakt.
   ========================================================= */

.recipe-new {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.recipe-new-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.recipe-new-header h2 {
  margin: 0;
}

.recipe-new-intro {
  margin: -10px 0 24px;
  color: var(--muted, #6e6258);
  line-height: 1.55;
}

.recipe-new-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.recipe-new-choice {
  appearance: none;
  border: 2px solid rgba(154, 100, 61, 0.18);
  background: #fffaf4;
  border-radius: 22px;
  padding: 26px 22px;
  text-align: left;
  cursor: pointer;
  min-height: 150px;
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.recipe-new-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(188, 103, 45, 0.45);
  box-shadow: 0 10px 28px rgba(90, 60, 35, 0.08);
}

.recipe-new-choice.active {
  border-color: #c8753b;
  background: #fff4e8;
}

.recipe-new-choice-icon {
  display: block;
  font-size: 34px;
  margin-bottom: 12px;
}

.recipe-new-choice-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 5px;
}

.recipe-new-choice-text {
  display: block;
  color: #75675d;
  line-height: 1.4;
}

.recipe-new-card {
  background: #fffaf4;
  border: 1px solid rgba(154, 100, 61, 0.15);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 20px;
}

.recipe-new-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.recipe-new-url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.recipe-new input,
.recipe-new textarea,
.recipe-new select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8cec5;
  border-radius: 13px;
  background: white;
  color: inherit;
  font: inherit;
  padding: 13px 14px;
}

.recipe-new textarea {
  min-height: 110px;
  resize: vertical;
}

.recipe-new input:focus,
.recipe-new textarea:focus,
.recipe-new select:focus {
  outline: 3px solid rgba(209, 126, 63, 0.16);
  border-color: #c8753b;
}

.recipe-new-label {
  display: block;
  font-weight: 750;
  margin-bottom: 7px;
}

.recipe-new-help {
  color: #7c7066;
  font-size: 14px;
  margin-top: 6px;
}

.recipe-new-field {
  margin-bottom: 18px;
}

.recipe-new-field:last-child {
  margin-bottom: 0;
}

.recipe-new-two {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, .7fr);
  gap: 16px;
}

.recipe-new-button {
  appearance: none;
  border: 0;
  border-radius: 13px;
  padding: 13px 18px;
  background: #ece3da;
  color: #44372e;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.recipe-new-button.primary {
  background: #c8753b;
  color: white;
}

.recipe-new-button.big {
  min-height: 54px;
  padding-inline: 24px;
  font-size: 17px;
}

.recipe-new-button:disabled {
  opacity: .55;
  cursor: wait;
}

.recipe-new-loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.recipe-new-warning {
  background: #fff2d7;
  border: 1px solid #ead09d;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.recipe-new-error {
  background: #fff0ee;
  border: 1px solid #e5b7af;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
}

.recipe-new-success {
  background: #eef8ec;
  border: 1px solid #bfd8b9;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
}

.recipe-new-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.recipe-new-section-head h3 {
  margin: 0;
}

.recipe-new-ingredient {
  display: grid;
  grid-template-columns: 110px 125px minmax(0, 1fr) 44px;
  gap: 9px;
  margin-bottom: 10px;
  align-items: center;
}

.recipe-new-remove {
  appearance: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f2e8df;
  color: #8c5941;
  font-size: 19px;
  cursor: pointer;
}

.recipe-new-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 44px;
  gap: 9px;
  margin-bottom: 12px;
  align-items: start;
}

.recipe-new-step-number {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 50%;
  background: #f1e3d6;
  font-weight: 800;
}

.recipe-new-step textarea {
  min-height: 82px;
}

.recipe-new-sharing-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  cursor: pointer;
}

.recipe-new-sharing-option input {
  width: auto;
  margin-top: 4px;
}

.recipe-new-family-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 4px 30px;
}

.recipe-new-family {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .65);
}

.recipe-new-family input {
  width: auto;
}

.recipe-new-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.recipe-new-dev-note {
  font-size: 13px;
  color: #807268;
  text-align: right;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .recipe-new {
    padding-bottom: 110px;
  }

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

  .recipe-new-choice {
    min-height: 0;
  }

  .recipe-new-url-row,
  .recipe-new-two {
    grid-template-columns: 1fr;
  }

  .recipe-new-ingredient {
    grid-template-columns: 82px 92px minmax(0, 1fr) 42px;
    gap: 6px;
  }

  .recipe-new-ingredient input {
    padding-left: 9px;
    padding-right: 9px;
  }

  .recipe-new-card {
    padding: 18px;
    border-radius: 18px;
  }

  .recipe-new-footer {
    flex-direction: column-reverse;
  }

  .recipe-new-footer button {
    width: 100%;
  }
}

.recipe-edit-detail-button {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .recipe-edit-detail-button {
    font-size: 14px;
    padding: 10px 13px;
  }
}

/* =========================================================
   RECIPE IMAGE EDITOR
   ========================================================= */

.recipe-image-editor {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.recipe-image-editor-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #f1e7dd;
}

.recipe-image-editor-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-image-editor-empty {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  font-size: 44px;
  opacity: .55;
}

.recipe-image-editor-controls {
  display: grid;
  gap: 12px;
}

.recipe-image-editor-controls input[type="file"] {
  padding: 10px;
  background: white;
}

@media (max-width: 700px) {
  .recipe-image-editor {
    grid-template-columns: 1fr;
  }

  .recipe-image-editor-preview {
    max-height: 240px;
  }
}

/* =========================================================
   RECIPE DELETE
   ========================================================= */

.recipe-delete-zone {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid #e8b8ae;
  border-radius: 18px;
  background: #fff4f1;

  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.recipe-new-button.danger {
  background: #a94635;
  color: white;
  white-space: nowrap;
}

.recipe-new-button.danger:hover {
  filter: brightness(.95);
}

@media (max-width: 700px) {
  .recipe-delete-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .recipe-new-button.danger {
    width: 100%;
  }
}


/* ==========================================
   RECIPE TAGS V1
   ========================================== */

.recipe-new-tags-card {
  display: grid;
  gap: 12px;
}


.recipe-new-tags-card h3 {
  margin-bottom: 0;
}


.recipe-new-tags-input {
  width: 100%;
  min-height: 52px;

  box-sizing: border-box;

  border:
    2px
    solid
    var(--border);

  border-radius: 15px;

  padding:
    0
    15px;

  background: #fff;
  color: var(--text);

  font: inherit;
  font-size: 15px;
}


.recipe-new-tags-input:focus {
  outline: none;

  border-color:
    var(--accent);
}


.recipe-new-tag-preview {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}


.recipe-new-tag-preview span {
  padding:
    6px
    10px;

  border-radius:
    999px;

  background:
    var(--surface-soft);

  color:
    var(--accent-dark);

  font-size: 12px;
  font-weight: 800;
}


/* ==========================================
   MANAGED TAG PICKER V2
   ========================================== */

.recipe-tag-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.recipe-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  border: 0;
  border-radius: 999px;

  padding: 8px 11px;

  background: var(--surface-soft);
  color: var(--accent-dark);

  font: inherit;
  font-size: 13px;
  font-weight: 850;

  cursor: pointer;
}


.recipe-tag-chip span {
  font-size: 18px;
  line-height: 12px;
}


.recipe-tag-none {
  color: var(--muted);
  font-size: 13px;
}


.recipe-tag-picker {
  display: grid;
  gap: 9px;
}


.recipe-tag-options {
  max-height: 220px;
  overflow-y: auto;

  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  padding: 10px;

  border:
    1px
    solid
    var(--border);

  border-radius: 15px;

  background: #fff;
}


.recipe-tag-option {
  border:
    1px
    solid
    var(--border);

  border-radius: 999px;

  padding:
    8px
    11px;

  background:
    var(--surface-soft);

  color:
    var(--text);

  font: inherit;
  font-size: 13px;
  font-weight: 750;

  cursor: pointer;
}


.recipe-tag-option:hover {
  border-color:
    var(--accent);

  color:
    var(--accent-dark);
}


.recipe-tag-no-results {
  width: 100%;

  padding: 8px;

  color: var(--muted);

  font-size: 13px;
  text-align: center;
}
