/* Recipe Page Styles for PieForge */

.recipe {
  padding: var(--space-12) 0;
}

/* Recipe Header */
.recipe-header {
  max-width: 800px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.recipe-title {
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.recipe-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  background-color: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
}

.meta-item {
  text-align: center;
}

.meta-item strong {
  display: block;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-1);
}

/* Recipe Sections */
.recipe-section {
  max-width: 800px;
  margin: 0 auto var(--space-10);
}

.recipe-section h2 {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-6);
}

/* Equipment List */
.equipment-list {
  list-style: disc;
  margin-left: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.equipment-list li {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

/* Oven Settings */
.oven-settings {
  background-color: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}

.oven-settings p {
  margin-bottom: var(--space-3);
}

.oven-settings p:last-child {
  margin-bottom: 0;
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.ingredients-list li {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-gray-100);
  line-height: var(--line-height-relaxed);
}

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

/* Instructions List */
.instructions-list {
  list-style: none;
  counter-reset: step-counter;
}

.instruction-step {
  counter-increment: step-counter;
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  position: relative;
}

.instruction-step::before {
  content: counter(step-counter);
  position: absolute;
  left: calc(var(--space-6) * -1);
  top: var(--space-6);
  width: calc(var(--space-6) * 2);
  height: calc(var(--space-6) * 2);
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

.instruction-step h3 {
  color: var(--color-text);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.step-timing {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-accent);
  background-color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.instruction-step p {
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

/* Tips Section */
.recipe-tips {
  background-color: var(--color-surface);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
}

.tips-list {
  list-style: none;
}

.tips-list li {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-secondary);
}

.tips-list li:last-child {
  margin-bottom: 0;
}

.tips-list strong {
  color: var(--color-secondary);
}

/* Give extra separation between content blocks in notes/timer sections */
.recipe-tips h2 + .tips-list {
  margin-top: var(--space-6);
}

.recipe-tips + .recipe-tips {
  margin-top: var(--space-12);
}

/* Recipe CTA */
.recipe-cta {
  max-width: 800px;
  margin: var(--space-16) auto 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  color: var(--color-white);
}

.recipe-cta h2 {
  color: var(--color-white);
  border: none;
  margin-bottom: var(--space-4);
}

.recipe-cta p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Recipe Styles */
@media (max-width: 768px) {
  .recipe-meta {
    grid-template-columns: 1fr 1fr;
  }

  .instruction-step::before {
    position: static;
    margin-bottom: var(--space-3);
  }

  .instruction-step {
    padding-left: var(--space-6);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

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

  .equipment-list {
    margin-left: var(--space-6);
  }
}

