
/* Recipe Attribution Styles - UPDATED */
.delice-recipe-attribution {
  max-width: 600px;
  margin: 16px 0 24px 0;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  position: relative;
  z-index: 1;
}

.delice-recipe-attribution-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  color: #64748b;
}

.delice-recipe-attribution-item:first-child {
  margin-top: 0;
}

.delice-recipe-attribution-item:last-child {
  margin-bottom: 0;
}

.delice-recipe-attribution-label {
  font-weight: 500;
  color: #374151;
}

.delice-recipe-attribution-value {
  color: #1f2937;
}

.delice-recipe-attribution-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.delice-recipe-attribution-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.delice-recipe-attribution-icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

/* Action buttons for rating */
.delice-recipe-action-buttons {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.delice-recipe-action-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.delice-recipe-action-button:hover {
  background: #ea580c;
}

.delice-recipe-action-button i {
  font-size: 16px;
}

/* Toast notifications */
.delice-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.delice-toast-success {
  background-color: #10b981;
}

.delice-toast-error {
  background-color: #ef4444;
}

/* Rating modal styles */
.delice-recipe-rating-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.delice-recipe-rating-modal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.delice-recipe-rating-modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.delice-recipe-rating-stars-large .fas.fa-star {
  font-size: 30px;
  color: #d1d5db;
  cursor: pointer;
  margin: 0 5px;
  transition: color 0.2s ease;
}

.delice-recipe-rating-stars-large .fas.fa-star.active {
  color: #f59e0b;
}

.delice-recipe-rating-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.delice-recipe-rating-submit,
.delice-recipe-rating-cancel {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.delice-recipe-rating-submit {
  background: #3b82f6;
  color: white;
}

.delice-recipe-rating-cancel {
  background: #6b7280;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .delice-recipe-attribution {
    margin: 12px 0 20px 0;
    padding: 12px 16px;
  }
  
  .delice-recipe-attribution-item {
    font-size: 13px;
  }
  
  .delice-toast {
    right: 10px;
    left: 10px;
    width: auto;
  }
  
  .delice-recipe-action-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .delice-recipe-attribution {
    padding: 10px 14px;
  }
}
