/* ==========================================================================
   Matkongen.no – Core Recipe Styling System (recipe-core.css)
   Felles designsystem for både hovedsiden og testkjøkkenet
   ========================================================================== */

/* 1. Navigasjon & Tilbake-knapp */
.back-btn-kitchen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff6b35;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 16px;
  text-decoration: none;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  width: fit-content;
}
.back-btn-kitchen:hover {
  background: #ffedd5;
  color: #c2410c;
  transform: translateX(-2px);
  text-decoration: none;
}

/* 2. Tittel og header */
.entry-header-inside {
  margin-bottom: 20px;
}
.post-title.entry-title {
  font-size: 32px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 10px 0 12px 0 !important;
  font-family: 'Poppins', sans-serif !important;
}

.recipe-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: #64748b;
}
.recipe-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
}

/* Status-pille for testkjøkken */
.test-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.test-status-pill.tested {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

/* 3. Makro- og infopiller */
.macro-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 24px 0;
}
.macro-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.macro-pill.orange {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.macro-pill.green {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

/* 4. Hovedbilde */
.wp-block-image {
  margin: 20px 0 28px 0 !important;
}
.wp-block-image img {
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07) !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* 5. Ingredienser med interaktiv sjekkliste */
.recipe-section-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 30px 0 14px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.kitchen-subhead {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ea580c;
  margin-top: 18px;
  margin-bottom: 8px;
}

.kitchen-checklist {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 12px 0 20px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kitchen-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.kitchen-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.kitchen-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  transition: all 0.15s ease;
}
.kitchen-checkbox i {
  display: none;
  color: #ffffff;
  font-size: 11px;
}

.kitchen-item.checked {
  background: #f8fafc;
  opacity: 0.55;
}
.kitchen-item.checked .kitchen-text {
  text-decoration: line-through;
  color: #94a3b8;
}
.kitchen-item.checked .kitchen-checkbox {
  background: #ff6b35;
  border-color: #ff6b35;
}
.kitchen-item.checked .kitchen-checkbox i {
  display: block;
}

.kitchen-text {
  font-size: 15px;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.4;
}

.btn-reset-checks {
  font-size: 12px;
  padding: 6px 14px;
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 24px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-reset-checks:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* 6. Fremgangsmåte – nummererte steg */
.kitchen-step-list {
  list-style: none !important;
  counter-reset: step-counter;
  padding-left: 0 !important;
  margin: 16px 0 32px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kitchen-step-list > li {
  counter-increment: step-counter;
  position: relative;
  padding: 14px 16px 14px 54px !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 15.5px;
  color: #334155;
  margin: 0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.kitchen-step-list > li::before {
  content: counter(step-counter);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  background: #ff6b35;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 2px 5px rgba(255, 107, 53, 0.25);
}

/* 7. Tips og ekstra-bokser */
.recipe-tip-box {
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin: 22px 0;
}
.recipe-tip-box.orange {
  border-left-color: #ff6b35;
  background: #fff7ed;
}
.recipe-tip-box h3,
.recipe-tip-box h4 {
  margin: 0 0 6px 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}
.recipe-tip-box p {
  margin: 0 !important;
  font-size: 14.5px !important;
  color: #475569 !important;
  line-height: 1.55 !important;
}

/* 8. Notatfelt for testkjøkkenet */
.kitchen-notes-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 28px 0;
}
.kitchen-notes-area {
  width: 100%;
  box-sizing: border-box;
  min-height: 85px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #1e293b;
  resize: vertical;
  background: #ffffff;
}
.kitchen-notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 640px) {
  .post-title.entry-title {
    font-size: 26px !important;
  }
  .kitchen-step-list > li {
    padding: 12px 14px 12px 48px !important;
    font-size: 14.5px;
  }
  .kitchen-step-list > li::before {
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}
