/**
 * Family Food - Recipe Hub Styles
 * Product: Village Family (familyFoodEnabled: true)
 */

/* Recipe Card */
.recipe-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recipe-card:hover .recipe-image img {
  transform: scale(1.05);
}

.recipe-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Time badges */
.recipe-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Category badges */
.recipe-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.category-appetizer { background: #dbeafe; color: #1e40af; }
.category-main { background: #dcfce7; color: #166534; }
.category-side { background: #fef3c7; color: #92400e; }
.category-dessert { background: #fce7f3; color: #9d174d; }
.category-breakfast { background: #ffedd5; color: #9a3412; }
.category-beverage { background: #e0e7ff; color: #3730a3; }
.category-snack { background: #f3e8ff; color: #6b21a8; }
.category-sauce { background: #fef2f2; color: #991b1b; }
.category-other { background: #f3f4f6; color: #374151; }

/* Difficulty indicators */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.difficulty-easy { color: #16a34a; }
.difficulty-medium { color: #ca8a04; }
.difficulty-hard { color: #dc2626; }

/* Dietary tags */
.dietary-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #f0fdf4;
  color: #15803d;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Collection card */
.collection-card {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.collection-card:hover {
  transform: translateY(-2px);
}

.collection-card.drag-over {
  ring: 2px solid #3b82f6;
  background: #eff6ff;
}

.collection-cover {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  overflow: hidden;
}

.collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.collection-card:hover .collection-cover img {
  transform: scale(1.05);
}

/* Recipe count badge */
.recipe-count-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.625rem;
  background: rgba(17, 24, 39, 0.9);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
}

/* Filter active state */
.filter-active {
  background-color: #10b981;
  color: white;
}

/* Loading skeleton */
.recipe-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.empty-state-icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
  color: #d1d5db;
}

/* Recipe detail page */
.recipe-hero {
  position: relative;
  height: 24rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

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

.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}

/* Ingredient list */
.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.ingredient-item:last-child {
  border-bottom: none;
}

.ingredient-checkbox {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  accent-color: #10b981;
}

.ingredient-text {
  flex: 1;
}

.ingredient-quantity {
  font-weight: 600;
  color: #111827;
}

.ingredient-name {
  color: #374151;
}

.ingredient-notes {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

/* Instruction steps */
.instruction-step {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.instruction-step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: white;
  font-weight: 600;
  border-radius: 9999px;
}

.step-content {
  flex: 1;
}

.step-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.step-tips {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #fef3c7;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #92400e;
}

/* Family story section */
.family-story-section {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border-radius: 0.75rem;
  border-left: 4px solid #f59e0b;
}

.family-story-quote {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: #f59e0b;
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* Linked event banner */
.linked-event-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border-radius: 0.5rem;
  border: 1px solid #bfdbfe;
}

.linked-event-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: #2563eb;
}

/* Print styles */
@media print {
  .recipe-hero {
    height: 12rem;
  }

  .no-print {
    display: none !important;
  }

  .instruction-step {
    page-break-inside: avoid;
  }
}
