@keyframes pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.animate-pop {
    animation: pop 0.3s ease-in-out;
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(147, 51, 234, 0.5); }
    50% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.8), 0 0 30px rgba(147, 51, 234, 0.6); }
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

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

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #9333EA #1F1F1F;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #1F1F1F;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333EA 0%, #FFD93D 100%);
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #A855F7 0%, #FFED4E 100%);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Higgsfield-themed range slider */
input[type="range"].higgsfield-slider,
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #9333EA 0%, #9333EA 75%, #4a5568 75%, #4a5568 100%);
    outline: none;
    border-radius: 4px;
    height: 8px;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #9333EA 0%, #FFD93D 100%);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.7);
    border: 2px solid #FFD93D;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #9333EA 0%, #FFD93D 100%);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #FFD93D;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.7);
}

/* Higgsfield-inspired gradient backgrounds */
.bg-higgsfield-gradient {
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 50%, #9333EA 100%);
}

/* Custom animations for the Higgsfield tribute */
@keyframes higgsfield-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

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

/* Celebration confetti effect */
@keyframes confetti {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Enhanced button hover effects */
button {
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
}

button:active:not(:disabled) {
    transform: translateY(0px);
}

/* Smooth transitions for all interactive elements */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom gradient text */
.text-gradient {
    background: linear-gradient(135deg, #FFD93D 0%, #9333EA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced shadow effects for Higgsfield theme */
.shadow-higgsfield {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hover\:scale-105:hover {
        transform: scale(1.02);
    }
    
    .hover\:scale-110:hover {
        transform: scale(1.05);
    }
}