/**
 * Recipe Pages - Specific Styles
 * Supplements main.css with recipe-specific formatting
 */

/* Recipe Meta Info Grid */
.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
  padding: 0;
}

.ingredients-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
}

.ingredients-list li:before {
  content: "✓";
  color: #00776C;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
}

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

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

.instructions-list li {
  counter-increment: step-counter;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  position: relative;
  padding-left: 4rem;
}

.instructions-list li:before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  background: #00776C;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* Nutrition Facts Table */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #003a35;
  background: white;
  font-size: 14px;
}

.nutrition-table thead {
  background: #003a35;
  color: white;
}

.nutrition-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.nutrition-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}

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

.nutrition-table .nutrient-name {
  font-weight: 500;
  color: #003a35;
}

.nutrition-table .nutrient-value {
  text-align: right;
  font-weight: 600;
}

/* Content Sections */
.recipe-section {
  margin-bottom: 3rem;
}

.recipe-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #003a35;
  margin-bottom: 1rem;
}

.recipe-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #00776C;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.recipe-section p {
  font-size: 1rem;
  line-height: 1.5;
  color: #393938;
  margin-bottom: 1rem;
}

/* Recipe FAQs - Simplified (no backgrounds) */
.recipe-faq-item {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.recipe-faq-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #003a35;
  margin-bottom: 0.25rem;
}

.recipe-faq-item p {
  font-size: 1rem;
  line-height: 1.75;
  color: #393938;
  font-weight: 400;
}

/* Dietary Tags */
.dietary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dietary-tag {
  padding: 0.5rem 1rem;
  background: #e8f5f3;
  color: #00776C;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Related Recipe Cards */
.related-recipe-card {
  display: block;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  text-decoration: none;
}

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

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

.related-recipe-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #003a35;
  padding: 1rem;
  margin: 0;
}

/* Comments */
.comment {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.comment:last-child {
  border-bottom: none;
}

.comment-author {
  font-weight: 600;
  color: #003a35;
  margin-bottom: 0.5rem;
}

.comment-date {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.comment-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #393938;
}

.coach-reply {
  margin-top: 1rem;
  padding: 1rem;
  background: #e8f5f3;
  border-left: 4px solid #00776C;
  border-radius: 0.5rem;
}

.coach-reply-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #00776C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
