* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header, nav, ul, li, p, h1, h2, h3 {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #F3F4F6;
  color: #0A0A0A;
  min-height: 100vh;
}

/* ════════════════════════════
   NAVBAR
════════════════════════════ */
header {
  width: 100%;
  background: #FFF;
  border-bottom: 1px solid #E5E7EB;
}

.TopNavBar {
  width: 100%;
  height: 65px;
  padding: 0 40px;
  box-sizing: border-box;
}

.Navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  width: 100%;
}

.Logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.LogoText {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.Title {
  color: #101828;
  font-family: "Segoe UI Emoji";
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  margin: 0;
  white-space: nowrap;
}

.Subtitle {
  color: #4A5565;
  font-family: "Segoe UI Emoji";
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
}

.NavBtn {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.TopNav {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 400;
}

.TopNav li {
  display: flex;
  align-items: center;
}

.TopNav a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #364153;
  white-space: nowrap;
}

.TopNav a:visited {
  color: #364153;
}

.TopNav a:hover {
  color: #F54900;
}

.TopNav a.active {
  color: #F54900;
}

.Account {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.Email {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #0A0A0A;
  font-family: "Segoe UI Emoji";
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
}

/* ════════════════════════════
   PAGE LAYOUT
════════════════════════════ */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #4A5565;
  text-decoration: none;
  margin-bottom: 20px;
}

.back-link:hover {
  color: #F54900;
}

/* ── Recipe card wrapper ── */
.recipe-card {
  background: #FFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

/* ── Hero image ── */
.recipe-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ── Recipe body ── */
.recipe-body {
  padding: 24px 28px 32px;
}

/* ── Title row ── */
.recipe-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.recipe-title {
  font-size: 26px;
  font-weight: 700;
  color: #0A0A0A;
  line-height: 1.2;
}

.recipe-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.action-btn:hover {
  background: #F3F4F6;
}

.fav-btn.favorited {
  border-color: #FECACA;
  background: #FFF5F5;
}

.login-msg {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #C2410C;
  margin-bottom: 12px;
}

.login-msg a {
  color: #FF6900;
  font-weight: 600;
  text-decoration: none;
}

.login-msg a:hover {
  text-decoration: underline;
}

/* ── Meta row (prep/cook/servings/difficulty) ── */
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #4A5565;
}

.meta-item svg {
  flex-shrink: 0;
}

/* ── Tags ── */
.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
  font-size: 12px;
  font-weight: 500;
  color: #4A5565;
  background: #FFF;
}

.tag.green  { border-color: #BBF7D0; color: #166534; background: #F0FDF4; }
.tag.blue   { border-color: #BFDBFE; color: #1D4ED8; background: #EFF6FF; }
.tag.purple { border-color: #DDD6FE; color: #6D28D9; background: #F5F3FF; }
.tag.orange { border-color: #FED7AA; color: #C2410C; background: #FFF7ED; }

/* ── Section divider ── */
.section-divider {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 24px 0;
}

/* ── Ingredients ── */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0A0A0A;
  margin-bottom: 14px;
}

.ingredients-box {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #0A0A0A;
  cursor: pointer;
  user-select: none;
}

/* Hide the actual checkbox */
.ing-checkbox {
  display: none;
}

.ingredient-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #D1D5DC;
  flex-shrink: 0;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.ingredient-checkmark {
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  display: none;
}

/* Checked state */
.ingredient-item.checked .ingredient-check {
  background: #FF6900;
  border-color: #FF6900;
}

.ingredient-item.checked .ingredient-checkmark {
  display: block;
}

.ingredient-item.checked .ingredient-label {
  text-decoration: line-through;
  color: #9CA3AF;
}

.ingredient-section-header {
  font-size: 13px;
  font-weight: 600;
  color: #4A5565;
  margin-top: 6px;
  margin-bottom: 2px;
}

/* ── Instructions ── */
.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.instruction-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: #0A0A0A;
  line-height: 1.6;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FF6900;
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Description ── */
.recipe-description {
  font-size: 14px;
  color: #4A5565;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Back button ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #FFF;
  font-size: 14px;
  color: #4A5565;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.back-btn:hover {
  background: #F3F4F6;
  color: #0A0A0A;
}