/* Custom LEGO-inspired animations and effects */

@keyframes legoClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes domeRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes aiPulse {
    0%, 100% { 
        background: linear-gradient(45deg, #3B82F6, #8B5CF6);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% { 
        background: linear-gradient(45deg, #8B5CF6, #EC4899);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.lego-click {
    animation: legoClick 0.2s ease-in-out;
}

.dome-rotate {
    animation: domeRotate 10s linear infinite;
}

.ai-pulse {
    animation: aiPulse 3s ease-in-out infinite;
}

/* Enhanced dome shadow effects */
.dome-shadow {
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

/* LEGO brick texture effect */
.lego-texture {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.3) 2px, transparent 2px);
    background-size: 8px 8px;
}

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

.ai-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-border {
    border: 2px solid;
    border-image: linear-gradient(45deg, #3B82F6, #8B5CF6, #EC4899) 1;
    border-radius: 8px;
}

/* Enhanced hover effects for AI elements */
.ai-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Custom image loading states */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0, #e0e0e0, #f0f0f0);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Professional LEGO box styling */
.lego-box {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lego-logo {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 1px;
}

/* Gallery grid enhancements */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
}

/* Custom scrollbar for AI gallery */
.ai-gallery::-webkit-scrollbar {
    width: 8px;
}

.ai-gallery::-webkit-scrollbar-track {
    background: linear-gradient(45deg, #f1f1f1, #e1e1e1);
    border-radius: 4px;
}

.ai-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    border-radius: 4px;
}

.ai-gallery::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2563EB, #7C3AED);
}

/* NanoBanana branding colors */
.nano-banana {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Professional packaging appearance */
.package-shadow {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* AI generation status indicators */
.ai-status {
    position: relative;
    overflow: hidden;
}

.ai-status::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: sweep 2s infinite;
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}