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

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

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.pasta-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-pasta {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.floating-pasta:nth-child(1) { left: 10%; top: 10%; }
.floating-pasta:nth-child(2) { left: 80%; top: 20%; }
.floating-pasta:nth-child(3) { left: 20%; top: 60%; }
.floating-pasta:nth-child(4) { left: 70%; top: 70%; }
.floating-pasta:nth-child(5) { left: 40%; top: 30%; }
.floating-pasta:nth-child(6) { left: 60%; top: 50%; }
.floating-pasta:nth-child(7) { left: 15%; top: 80%; }
.floating-pasta:nth-child(8) { left: 85%; top: 40%; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

#root {
    position: relative;
    z-index: 1;
}

.mood-button {
    @apply bg-white border-2 border-olive/20 rounded-2xl p-6 transition-all duration-300;
    @apply hover:border-pasta hover:shadow-lg hover:scale-105;
    @apply cursor-pointer text-center;
}

.mood-button.selected {
    @apply border-pasta bg-pasta/10 shadow-lg scale-105;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

.ingredient-checkbox {
    @apply flex items-center p-3 bg-cream/50 rounded-xl cursor-pointer;
    @apply transition-all duration-200 hover:bg-cream;
}

.ingredient-checkbox:has(input:checked) {
    @apply bg-basil/10 border-2 border-basil/30;
}

.generate-button {
    @apply bg-gradient-to-r from-tomato to-pasta text-white;
    @apply text-xl font-bold py-4 px-12 rounded-full;
    @apply shadow-xl hover:shadow-2xl transition-all duration-300;
    @apply transform hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed;
    @apply disabled:hover:scale-100;
}

.pasta-reveal {
    animation: revealPasta 0.6s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-pasta {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Fun loading animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover effects for ingredient checkboxes */
.ingredient-checkbox input[type="checkbox"] {
    @apply w-5 h-5 accent-basil cursor-pointer;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

button {
    @apply select-none;
}

/* Make images load smoothly */
img {
    @apply transition-opacity duration-300;
}

img[src] {
    @apply opacity-100;
}