/* Custom styles for IdeaLens Studio */

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.animated-bg {
    background-size: 400% 400%;
}

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

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

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

/* Custom slider styling */
.slider::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Audio reactive glow effect */
.audio-glow {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    transition: filter 0.1s ease-out;
}

/* Typewriter effect for generated text */
.typewriter {
    border-right: 2px solid #8b5cf6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #8b5cf6; }
    51%, 100% { border-color: transparent; }
}

/* Pulse animation for audio indicator */
.pulse-ring {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Hover effects for cards */
.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

/* Scroll bar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7c3aed, #0891b2);
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .glass-card {
        padding: 1rem;
    }
    
    .grid.grid-cols-1.lg\\:grid-cols-5 {
        grid-template-columns: 1fr;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

/* Button hover animations */
button {
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

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

/* Loading animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Audio visualization bars */
.audio-bars {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 20px;
}

.audio-bar {
    width: 3px;
    background: linear-gradient(to top, #06b6d4, #8b5cf6);
    border-radius: 2px;
    animation: audioBar 0.5s ease-in-out infinite alternate;
}

@keyframes audioBar {
    from { height: 20%; }
    to { height: 100%; }
}

.audio-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.audio-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.audio-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.audio-bar:nth-child(5) {
    animation-delay: 0.4s;
}