/* Food Picker Specific Styles */

/* Food Theme Background */
.food-theme {
    background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 50%, #e17055 100%);
}

.food-theme .shape {
    background: linear-gradient(45deg, #fd79a8, #fdcb6e, #e17055);
}

/* Floating Food */
.floating-food {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-food .food-emoji {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: foodFloat 20s infinite ease-in-out;
}

.floating-food .food-emoji:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 22s;
}

.floating-food .food-emoji:nth-child(2) {
    top: 70%;
    right: 15%;
    animation-delay: -4s;
    animation-duration: 25s;
}

.floating-food .food-emoji:nth-child(3) {
    bottom: 40%;
    left: 20%;
    animation-delay: -8s;
    animation-duration: 18s;
}

.floating-food .food-emoji:nth-child(4) {
    top: 30%;
    right: 25%;
    animation-delay: -12s;
    animation-duration: 24s;
}

.floating-food .food-emoji:nth-child(5) {
    bottom: 15%;
    left: 60%;
    animation-delay: -16s;
    animation-duration: 21s;
}

.floating-food .food-emoji:nth-child(6) {
    top: 55%;
    right: 5%;
    animation-delay: -20s;
    animation-duration: 23s;
}

@keyframes foodFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -20px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 25px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(25px, -10px) rotate(270deg) scale(1.05);
    }
}

/* Food Spinner Styles */
.food-spinner {
    background: conic-gradient(
        from 0deg,
        #fd79a8 0deg 45deg,
        #fdcb6e 45deg 90deg,
        #e17055 90deg 135deg,
        #00b894 135deg 180deg,
        #0984e3 180deg 225deg,
        #6c5ce7 225deg 270deg,
        #a29bfe 270deg 315deg,
        #fd79a8 315deg 360deg
    );
    box-shadow: 
        0 0 40px rgba(253, 121, 168, 0.5),
        0 0 80px rgba(253, 203, 110, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.food-title {
    color: #fff;
    text-shadow: 
        0 0 10px #fdcb6e,
        0 0 20px #fdcb6e,
        0 0 30px #fd79a8,
        3px 3px 6px rgba(0, 0, 0, 0.3);
}

.food-title .title-text {
    background: linear-gradient(45deg, #fdcb6e, #fd79a8, #e17055);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.food-pointer .pointer-triangle {
    border-top-color: #fdcb6e;
    animation: foodPointerGlow 2s ease-in-out infinite alternate;
}

@keyframes foodPointerGlow {
    from {
        filter: drop-shadow(0 0 5px #fdcb6e);
    }
    to {
        filter: drop-shadow(0 0 20px #fdcb6e) drop-shadow(0 0 30px #fd79a8);
    }
}

.food-center .center-circle {
    background: linear-gradient(135deg, #fdcb6e, #fd79a8);
    box-shadow: 
        0 0 30px rgba(253, 203, 110, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.food-center .center-text {
    font-size: 1.5rem;
}

/* Food Input Styles */
.food-input {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    box-shadow: 
        0 10px 30px rgba(253, 203, 110, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.food-input:focus {
    box-shadow: 
        0 20px 40px rgba(253, 203, 110, 0.3),
        0 0 20px #fdcb6e,
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: #fdcb6e;
}

.food-decoration {
    background: linear-gradient(45deg, #fdcb6e, #fd79a8, #e17055, #00b894);
    background-size: 400% 400%;
    animation: gradientRotate 3s ease-in-out infinite;
}

/* Food Button */
.food-button {
    background: linear-gradient(135deg, #fdcb6e, #fd79a8);
    box-shadow: 
        0 10px 30px rgba(253, 203, 110, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.food-button:hover {
    box-shadow: 
        0 20px 40px rgba(253, 203, 110, 0.5),
        0 0 30px #fdcb6e;
}

.food-button .sparkle {
    color: #e17055;
}

/* Food Result Card */
.food-result {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(253, 203, 110, 0.3);
    box-shadow: 
        0 20px 60px rgba(253, 203, 110, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.food-result::before {
    background: linear-gradient(45deg, transparent, rgba(253, 203, 110, 0.1), transparent);
}

/* Food Categories Section */
.food-categories {
    margin: 4rem 1rem 2rem;
    animation: fadeInUp 1s ease-out 2s both;
}

.categories-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Fredoka One', cursive;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(253, 203, 110, 0.3);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: categoryIconBounce 2s ease-in-out infinite;
}

.category-card:nth-child(1) .category-icon { animation-delay: 0s; }
.category-card:nth-child(2) .category-icon { animation-delay: 0.3s; }
.category-card:nth-child(3) .category-icon { animation-delay: 0.6s; }
.category-card:nth-child(4) .category-icon { animation-delay: 0.9s; }

@keyframes categoryIconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

.category-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.category-items {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Food-specific animations */
@keyframes foodSizzle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(2deg);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: scale(0.95) rotate(-1deg);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: scale(1.02) rotate(1deg);
        filter: hue-rotate(270deg);
    }
}

.food-spinner.spinning {
    animation: spinWheel 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, foodSizzle 0.5s ease-in-out 3.5s;
}

/* Responsive Food Styles */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 1.2rem 0.8rem;
    }
}
