@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@200;400;600;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --green-primary: #22c55e;
  --green-secondary: #16a34a;
  --lime-accent: #84cc16;
  --amber-accent: #f59e0b;
  --bg-cream: #fefce8;
}

* {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}

body {
  background: linear-gradient(180deg, #f0fdf4 0%, #fefce8 50%, #f0fdf4 100%);
  min-height: 100vh;
}

.header-gradient {
  background: linear-gradient(135deg, #22c55e 0%, #84cc16 50%, #16a34a 100%);
  position: relative;
  overflow: hidden;
}

.header-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: shimmer 15s linear infinite;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.leaf-hover {
  transition: transform 0.3s ease;
}

.leaf-hover:hover {
  transform: rotate(20deg) scale(1.2);
}

.animate-pop {
  animation: pop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.recipe-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-card:hover {
  transform: translateY(-4px);
}

.recipe-card.selected {
  border-left: 4px solid #22c55e;
}

.loading-bounce span {
  display: inline-block;
  animation: bounce 0.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

/* Line clamp */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Circular progress positioning */
.relative .absolute {
  position: absolute;
}

/* Smooth transitions for images */
img {
  transition: opacity 0.5s ease-in-out;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .header-gradient {
    padding: 1.25rem 1rem;
  }
  
  h1 {
    font-size: 1.75rem !important;
  }
  
  .recipe-card {
    margin-bottom: 0.5rem;
  }
}

/* Focus styles for accessibility */
button:focus-visible, input:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Pulse animation for loading */
.pulse-green {
  animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}