@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --orange-primary: #fb923c;
  --rose-primary: #fb7185;
  --pink-primary: #f472b6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
}

.font-display {
  font-family: 'Fredoka', sans-serif;
}

.font-body {
  font-family: 'Nunito', sans-serif;
}

.food-pattern {
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(251, 113, 133, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.05) 0%, transparent 70%);
}

.steam-particle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: steam 3s ease-in-out infinite;
}

@keyframes steam {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  50% {
    transform: translateY(-40px) scale(1.5);
    opacity: 0.6;
  }
}

.ingredient-tag {
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.meal-card {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.history-card {
  transition: all 0.2s ease;
}

.history-card:hover {
  transform: translateX(5px);
}

.generating-btn {
  animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-2deg); }
  75% { transform: translateX(5px) rotate(2deg); }
}

button {
  cursor: pointer;
  border: none;
}

button:disabled {
  cursor: not-allowed;
}

input:focus {
  outline: none;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fef3c7;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #fb923c, #fb7185);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .meal-card h3 {
    font-size: 1.5rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
}

/* Smooth transitions for all interactive elements */
button, .history-card, input {
  transition: all 0.2s ease;
}

/* Fancy focus states */
button:focus-visible {
  outline: 3px solid var(--orange-primary);
  outline-offset: 2px;
}

/* Loading shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}