/* Recipe header styles */
.recipe-header { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 0;
}

/* Meta info */
.recipe-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Layout */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

/* Ingredients */
.ingredients-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.ingredient-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ingredient-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ingredient-item.selected {
  background: #e8f5e9;
  border-color: #4caf50;
}
.ingredient-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
}

/* Shopping list actions */
.shopping-list-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e0e0e0;
}
.btn-shopping {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  width: 100%;
}
.btn-shopping:hover {
  background: #5a67d8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn-print {
  background: #f5f5f5;
  color: #333;
}
.btn-print:hover {
  background: #e8e8e8;
}

/* Instructions */
.instruction-step {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

/* Nutrition table */
.nutrition-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
}
.nutrition-table table {
  width: 100%;
  border-collapse: collapse;
}
.nutrition-table th {
  background: #f5f5f5;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}
.nutrition-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Modal styles */
.shopping-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.shopping-modal.active {
  display: flex;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.shopping-list-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

/* Print styles */
@media print {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .ingredients-card {
    position: static;
  }
  .shopping-list-actions,
  .btn-shopping,
  .btn-print,
  header.header,
  footer.footer,
  .back-to-blog {
    display: none !important;
  }
  .ingredient-checkbox {
    display: none;
  }
  .recipe-header {
    background: white !important;
    color: black !important;
    border: 2px solid #ddd;
  }
  .recipe-header h1,
  .recipe-header p {
    color: black !important;
  }
}

/* Recipe tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 20px;
  font-size: 0.85em;
  margin-right: 0.5rem;
}
.tag.vegan {
  background: #e8f5e9;
  color: #2e7d32;
}
.tag.gluten-free {
  background: #fff3e0;
  color: #f57c00;
}

/* Servings selector */
.servings-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #e8f5e9;
  border-radius: 8px;
}
.servings-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: #4caf50;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}
.servings-btn:hover {
  background: #45a049;
}
#servings-count {
  font-size: 1.2em;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* Recipe header variations */
.recipe-header--quinoa {
  background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
}
.recipe-header--oats {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Button variations for different recipes */
.btn-shopping--quinoa {
  background: #43cea2;
}
.btn-shopping--quinoa:hover {
  background: #3ab892;
  box-shadow: 0 4px 12px rgba(67, 206, 162, 0.3);
}

.step-number--quinoa {
  background: #667eea;
}

.modal-btn-primary--quinoa {
  background: #43cea2;
}
.modal-btn-primary--quinoa:hover {
  background: #3ab892;
}
