* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.header-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #f472b6 100%);
}

.glow-text {
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5),
                 0 0 40px rgba(219, 39, 119, 0.3);
}

.glass-card {
    background: rgba(30, 27, 45, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.generate-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #f472b6 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

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

.image-frame {
    border: 2px solid transparent;
    background: linear-gradient(#1e1b2d, #1e1b2d) padding-box,
                linear-gradient(135deg, #8b5cf6, #d946ef, #f472b6) border-box;
}

.shimmer {
    background: linear-gradient(
        -45deg,
        #1e1b2d 25%,
        #2d2a3e 50%,
        #1e1b2d 75%
    );
    background-size: 400% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

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

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.quick-prompt-chip {
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.quick-prompt-chip:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1b2d;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a78bfa, #e879f9);
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .header-gradient {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .glow-text {
        font-size: 1.75rem;
    }
}

/* Fade-in animation for images */
img {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Focus states for accessibility */
button:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* Hover lift effect */
.glass-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}