/* ============================================================
   recipes.css — NaturoPro Recipes Section
   Styles for recipe index and individual recipe pages
   ============================================================ */

/* ---------- Recipe Index Page ---------- */

.recipe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 2.5rem;
}

.recipe-filter-pill {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.recipe-filter-pill:hover,
.recipe-filter-pill.active {
  background: var(--color-accent, #2D6A4F);
  color: #fff;
  border-color: var(--color-accent, #2D6A4F);
}

/* ---------- Recipe Grid ---------- */

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 0.5rem;
}

/* ---------- Recipe Card ---------- */

.recipe-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.recipe-card__top {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.recipe-card__emoji {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.recipe-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
}

/* Category colours */
.recipe-badge--breakfast  { background: #F59E0B; }
.recipe-badge--lunch      { background: #0D9488; }
.recipe-badge--dinner     { background: #6366F1; }
.recipe-badge--dessert    { background: #EC4899; }

.recipe-card__body {
  padding: 1rem 1.5rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0.5rem 0 0.4rem;
  line-height: 1.3;
}

.recipe-card__desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

.recipe-card__meta {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.recipe-card__link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent, #2D6A4F);
  text-decoration: none;
  transition: color 0.15s;
}

.recipe-card__link:hover {
  color: var(--color-accent-dark, #1e4d39);
  text-decoration: underline;
}

/* ---------- Individual Recipe Page ---------- */

.recipe-container {
  max-width: 48rem;
  margin: 0 auto;
}

.recipe-header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: 2.5rem;
}

.recipe-header .recipe-category-badge {
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
}

.recipe-emoji {
  font-size: 4rem;
  line-height: 1;
  margin: 1rem 0 0.75rem;
}

.recipe-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #111827;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.recipe-desc {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: #374151;
  background: #f9fafb;
  border-radius: 1rem;
  padding: 0.85rem 1.25rem;
  display: inline-flex;
}

.recipe-meta span {
  white-space: nowrap;
}

/* ---------- Recipe Body (2-col ingredients + steps) ---------- */

.recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (max-width: 640px) {
  .recipe-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.recipe-ingredients,
.recipe-steps {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.recipe-ingredients h2,
.recipe-steps h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.recipe-ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-ingredients ul li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
  line-height: 1.45;
}

.recipe-ingredients ul li:last-child {
  border-bottom: none;
}

.recipe-ingredients ul li::before {
  content: "· ";
  color: var(--color-accent, #2D6A4F);
  font-weight: 700;
}

.recipe-steps ol {
  padding-left: 1.4rem;
  margin: 0;
}

.recipe-steps ol li {
  padding: 0.4rem 0;
  font-size: 0.925rem;
  color: #374151;
  line-height: 1.6;
}

.recipe-steps ol li + li {
  margin-top: 0.25rem;
}

/* ---------- Benefits Section ---------- */

.recipe-benefits {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-left: 4px solid #22c55e;
  border-radius: 0 1rem 1rem 0;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
}

.recipe-benefits h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #166534;
  margin: 0 0 1rem;
}

.recipe-benefits p {
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.recipe-benefits p:last-child {
  margin-bottom: 0;
}

/* ---------- Naturopath Tip ---------- */

.recipe-tip {
  background: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.recipe-tip p {
  margin: 0;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.65;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 480px) {
  .recipe-filters {
    gap: 0.4rem;
  }
  .recipe-filter-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Recipe page shared wrapper ---------- */

/* rp-wrap: the single centered column used on recipe detail pages */
.rp-wrap {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Recipe Detail Hero ---------- */

.recipe-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.recipe-hero--breakfast { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
.recipe-hero--lunch     { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
.recipe-hero--dinner    { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }
.recipe-hero--dessert   { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); }

/* Large emoji above the title */
.recipe-emoji {
  font-size: 4.5rem;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent, #2D6A4F); }

.recipe-hero__title,
h1.recipe-hero__title {
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.2rem);
  font-weight: 800;
  color: #07170b;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.6rem 0 0.5rem;
}

.recipe-hero__desc {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 580px;
  margin-bottom: 1rem;
}

.recipe-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}

/* ---------- Recipe Body ---------- */

.recipe-body { padding: 0 0 3rem; }

/* The two-column grid inside rp-wrap */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2.5rem;
}

@media (max-width: 820px) {
  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.recipe-section {
  margin-bottom: 2rem;
}

.recipe-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #07170b;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.4rem;
}

.recipe-ingredients {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recipe-ingredients li::before {
  content: "·  ";
  color: #25a42a;
  font-weight: 700;
}

.recipe-steps {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recipe-steps li {
  color: #374151;
  line-height: 1.65;
}

/* ---------- Recipe Aside ---------- */

.recipe-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}

.recipe-benefits-box,
.recipe-tip-box,
.recipe-related-box {
  border-radius: 1rem;
  padding: 1.25rem;
}

.recipe-benefits-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
}

.recipe-tip-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
}

.recipe-related-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.recipe-benefits-box h3,
.recipe-tip-box h3,
.recipe-related-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #07170b;
}

.recipe-benefits-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #374151;
}

.recipe-benefits-box ul li::before {
  content: "✓  ";
  color: #25a42a;
  font-weight: 700;
}

.recipe-tip-box p,
.recipe-related-box p {
  font-size: 0.9rem;
  color: #374151;
  margin: 0;
}

.recipe-related-box a {
  color: #25a42a;
  font-weight: 600;
}
