/* ===== Custom Animations & Effects ===== */

/* Live pulse animation */
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}
.live-pulse {
    animation: livePulse 2s ease-in-out infinite;
}

/* Glow effect */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.3), 0 0 60px rgba(236, 72, 153, 0.1); }
    50% { box-shadow: 0 0 30px rgba(236, 72, 153, 0.5), 0 0 80px rgba(236, 72, 153, 0.2); }
}
.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

/* Audio wave animation */
@keyframes audioWave {
    0%, 100% { height: 8px; }
    50% { height: 28px; }
}
.audio-bar {
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(to top, #ec4899, #a855f7);
    animation: audioWave 1.2s ease-in-out infinite;
}
.audio-bar:nth-child(1) { animation-delay: 0s; }
.audio-bar:nth-child(2) { animation-delay: 0.15s; }
.audio-bar:nth-child(3) { animation-delay: 0.3s; }
.audio-bar:nth-child(4) { animation-delay: 0.45s; }
.audio-bar:nth-child(5) { animation-delay: 0.6s; }
.audio-bar:nth-child(6) { animation-delay: 0.3s; }
.audio-bar:nth-child(7) { animation-delay: 0.15s; }

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Smooth gradient background blobs */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.bg-blob-1 {
    width: 600px; height: 600px;
    background: #ec4899;
    top: -200px; right: -200px;
}
.bg-blob-2 {
    width: 400px; height: 400px;
    background: #8b5cf6;
    bottom: -100px; left: -100px;
}
.bg-blob-3 {
    width: 300px; height: 300px;
    background: #3b82f6;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Level meter */
.level-meter-fill {
    transition: width 0.08s ease-out;
    background: linear-gradient(90deg, #34d399, #fbbf24, #ef4444);
}

/* Button states */
.btn-live {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    transition: all 0.3s ease;
}
.btn-live:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.35);
}
.btn-live:active {
    transform: translateY(0);
}

.btn-stop {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}
.btn-stop:hover {
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.35);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.status-live {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-offline {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
