/* styles.css */

/* Core transitions and layout */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Audio wave animation for microphone */
.audio-wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 24px;
}

.audio-bar {
    width: 3px;
    height: 8px;
    background-color: #00B4D8;
    border-radius: 9999px;
    animation: bounce 1s ease-in-out infinite alternate;
}

.audio-bar:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.audio-bar:nth-child(3) { animation-delay: 0.3s; height: 22px; }
.audio-bar:nth-child(4) { animation-delay: 0.45s; height: 12px; }
.audio-bar:nth-child(5) { animation-delay: 0.6s; height: 18px; }

@keyframes bounce {
    from {
        transform: scaleY(0.4);
    }
    to {
        transform: scaleY(1.2);
    }
}

/* Glowing blur background effects */
.glow-spot {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Radial Progress Ring for Results */
.progress-ring__circle {
    transition: stroke-dashoffset 0.6s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Confetti effect for high score */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #00B4D8;
    animation: confetti-fall 2.5s linear infinite;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Custom shadow effects for premium feel */
.premium-shadow {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.premium-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
