* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background: #0a0a0f;
    overflow-x: hidden;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1); }
    50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.2); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
}

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

.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #3b82f6, #8b5cf6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.glass {
    background: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.glass-card {
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.style-card-selected {
    border-color: rgba(139, 92, 246, 0.8) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.generate-btn {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(236, 72, 153, 0.2);
}

.generate-btn:active {
    transform: scale(0.98);
}

.shimmer-loading {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 25%, rgba(139, 92, 246, 0.3) 50%, rgba(139, 92, 246, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.masonry-grid {
    columns: 1;
    column-gap: 16px;
}

@media (min-width: 640px) {
    .masonry-grid { columns: 2; }
}

@media (min-width: 1024px) {
    .masonry-grid { columns: 3; }
}

@media (min-width: 1280px) {
    .masonry-grid { columns: 4; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
}

.footer-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #ec4899, #3b82f6, transparent);
    background-size: 200% 100%;
    animation: gradient-shift 4s ease infinite;
}

textarea:focus {
    outline: none;
}

.prompt-textarea {
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.prompt-textarea:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}