/* Recipe Card Styles */

.recipe-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 20px;
  gap: 20px;
}

.recipe-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.recipe-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-icon .icon {
  font-size: 1.8em;
}

.recipe-content {
  flex: 1;
  min-width: 0;
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.recipe-title {
  font-size: 1.2em;
  color: #1f2937;
  margin: 0;
  font-weight: 600;
  flex: 1;
  min-width: 200px;
}

.recipe-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  background: #f9fafb;
  padding: 4px 10px;
  border-radius: 20px;
}

.rating-stars {
  color: #fbbf24;
  font-size: 1em;
}

.rating-number {
  color: #374151;
  font-weight: 600;
}

.recipe-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
  font-size: 0.9em;
}

.meta-item.total-time {
  font-weight: 700;
  color: #667eea;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
}

.meta-icon {
  font-size: 1em;
}

.recipe-match-info {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 15px;
}

.match-bar-container {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.match-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  transition: width 0.3s;
}

.match-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  margin-bottom: 4px;
}

.match-count {
  font-weight: 600;
  color: #374151;
}

.match-percentage {
  color: #10b981;
  font-weight: 600;
}

.missing-count {
  color: #ef4444;
  font-size: 0.8em;
  font-weight: 500;
}

.perfect-match {
  color: #10b981;
  font-size: 0.85em;
  font-weight: 600;
}

.recipe-ingredients {
  margin-top: 10px;
}

.ingredients-title {
  font-size: 0.9em;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 600;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85em;
}

.ingredient-status {
  font-weight: bold;
  font-size: 1em;
}

.ingredient-item.matched .ingredient-status {
  color: #10b981;
}

.ingredient-item.missing .ingredient-status {
  color: #d1d5db;
}

.ingredient-item.matched .ingredient-name {
  color: #374151;
}

.ingredient-item.missing .ingredient-name {
  color: #9ca3af;
}

/* Simple bullet style (when no match info) */
.ingredient-bullet {
  font-weight: bold;
  color: #667eea;
}

.ingredient-name {
  flex: 1;
}

@media (max-width: 600px) {
  .recipe-card {
    flex-direction: column;
  }

  .recipe-icon {
    width: 50px;
    height: 50px;
  }

  .recipe-icon .icon {
    font-size: 1.5em;
  }
}
