
/* ai_diet_planner/frontend/css/style.css */
@import url('https://fonts.loli.net/css2?family=Inter:wght@400;500;700&display=swap');

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --gray-light: #F3F4F6;
  --gray-dark: #6B7280;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #1F2937;
}

/* Recipe Modal Styles */
.recipe-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.recipe-modal.active {
  opacity: 1;
  pointer-events: all;
}

.recipe-modal-content {
  background-color: white;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.recipe-modal.active .recipe-modal-content {
  transform: translateY(0);
}

.recipe-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.recipe-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6B7280;
}

.recipe-modal-body {
  padding: 1.5rem;
}

.recipe-modal-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.recipe-section {
  margin-bottom: 1.5rem;
}

.recipe-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.recipe-ingredients-list,
.recipe-instructions-list {
  padding-left: 1.5rem;
  margin: 0;
}

.recipe-ingredients-list li,
.recipe-instructions-list li {
  margin-bottom: 0.5rem;
  color: #4B5563;
}

.recipe-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.nutrition-item {
  text-align: center;
  padding: 0.5rem;
  background-color: #F3F4F6;
  border-radius: 0.25rem;
}

.nutrition-label {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
}

.nutrition-value {
  font-weight: 600;
  color: #111827;
}

/* Health Plan Display Styles */
.plan-display {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.plan-header {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.5rem;
}

.plan-content {
  padding: 1.5rem;
}

.nutrient-progress {
  height: 8px;
  border-radius: 4px;
  background-color: #E5E7EB;
  margin-top: 0.5rem;
  overflow: hidden;
}

.nutrient-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.protein-progress {
  background-color: #3B82F6;
}

.carbs-progress {
  background-color: #F59E0B;
}

.fat-progress {
  background-color: #EF4444;
}

.calories-progress {
  height: 12px;
  background-color: #10B981;
}

.nutrient-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
}

.nutrient-value {
  font-weight: 600;
  color: #111827;
}

.recommendation-card {
  background-color: #F9FAFB;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
}

.recommendation-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.warning-card {
  background-color: #FEF2F2;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #EF4444;
}

.warning-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: #EF4444;
}

/* Animation Effects */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .plan-content {
    padding: 1rem;
  }
  
  .nutrient-progress {
    height: 6px;
  }
}

/* Particle Effect Container */
.particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}

/* Disease Warning Styles */
.disease-warning {
  background-color: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 0 0.25rem 0.25rem 0;
}

.disease-warning-title {
  font-weight: 600;
  color: #92400E;
  margin-bottom: 0.25rem;
}

.disease-warning-text {
  font-size: 0.875rem;
  color: #92400E;
}

/* Progress Bar Animation */
.progress-bar {
  transition: width 1s ease-in-out;
}

/* Membership Badge Styles */
.membership-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.badge-basic {
  background-color: #E5E7EB;
  color: #374151;
}

.badge-silver {
  background-color: #E5E7EB;
  color: #6B7280;
}

.badge-gold {
  background-color: #FCD34D;
  color: #92400E;
}

.badge-platinum {
  background: linear-gradient(to right, #E5E7EB, #D1D5DB);
  color: #111827;
}

/* Meal Suggestion Card Styles */
.meal-suggestion-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  transition: all 0.2s ease;
}

.meal-suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.meal-breakfast {
  border-left-color: #F59E0B;
}

.meal-lunch {
  border-left-color: #10B981;
}

.meal-dinner {
  border-left-color: #3B82F6;
}

.meal-snack {
  border-left-color: #8B5CF6;
}

.meal-time {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.meal-time::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.meal-breakfast .meal-time::before {
  background-color: #F59E0B;
}

.meal-lunch .meal-time::before {
  background-color: #10B981;
}

.meal-dinner .meal-time::before {
  background-color: #3B82F6;
}

.meal-snack .meal-time::before {
  background-color: #8B5CF6;
}

.meal-foods {
  font-size: 0.875rem;
  color: #4B5563;
  margin-bottom: 0.5rem;
}

.meal-nutrition {
  font-size: 0.75rem;
  color: #6B7280;
  display: flex;
  justify-content: space-between;
}

/* Membership Progress Styles */
.membership-progress-container {
  background-color: #F3F4F6;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.membership-level {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.membership-current {
  font-weight: 600;
}

.membership-next {
  color: #6B7280;
}

.membership-progress-bar {
  height: 0.5rem;
  background-color: #E5E7EB;
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.membership-progress-fill {
  height: 100%;
  background-color: #F59E0B;
  border-radius: 0.25rem;
  transition: width 0.6s ease;
}

.membership-benefits {
  font-size: 0.875rem;
  color: #6B7280;
}
