/* ============================================
   Recipe Page Styles
   ============================================ */

/* ---------- Recipe Hero ---------- */
.recipe-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.recipe-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,41,20,0.85) 0%, rgba(61,41,20,0.2) 60%);
  display: flex;
  align-items: flex-end;
}

.recipe-hero-content {
  padding: 3rem 5%;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.recipe-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.recipe-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.recipe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.recipe-meta-bar span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Recipe Body ---------- */
.recipe-body {
  max-width: 1920px;
  margin: 0 auto;
  padding: 4rem 5%;
}

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

.recipe-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.recipe-note {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ---------- Ingredients Table ---------- */
.ingredients-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.ingredients-table th,
.ingredients-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--primary);
}

.ingredients-table th {
  background: var(--primary);
  color: var(--secondary);
  font-weight: 600;
  width: 40%;
}

.ingredients-table tr:last-child td {
  border-bottom: none;
}

.ingredients-table tr:hover {
  background: rgba(245,230,211,0.3);
}

/* ---------- Tips Box ---------- */
.tips-box {
  background: rgba(212,165,116,0.15);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
}

.tips-box h4 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.tips-box p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Steps ---------- */
.steps-list {
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 2.5rem;
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.steps-list li h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.steps-list li p {
  color: var(--text);
  line-height: 1.8;
}

/* ---------- Nutrition ---------- */
.nutrition-note {
  background: var(--primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- Related ---------- */
.recipe-related {
  background: var(--primary);
  padding: 4rem 5%;
}

.recipe-related h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  gap: 0.8rem;
}

.related-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.related-card:hover img {
  transform: scale(1.03);
}

.related-card span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--secondary);
}

/* ---------- Recipe Card Grid (Homepage) ---------- */
.recipe-category {
  margin-bottom: 4rem;
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

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

.recipe-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(139,90,43,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(139,90,43,0.15);
}

.recipe-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.recipe-card-info {
  padding: 1.5rem;
}

.recipe-card-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.recipe-card-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .recipe-hero {
    height: 50vh;
    min-height: 300px;
  }

  .recipe-meta-bar {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .recipe-body {
    padding: 2.5rem 5%;
  }
}
