/**
 * Random Peer Student Voice Calling Engine Styles
 * Made with heart ❤️ by Web Era Solutions
 */

.calling-container {
    max-width: 760px;
    margin: 0 auto;
}

/* Pulse Radar Search Container */
.radar-box {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radar-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(79, 70, 229, 0.4);
    animation: radarRipple 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.radar-circle:nth-child(2) {
    animation-delay: 0.8s;
}
.radar-circle:nth-child(3) {
    animation-delay: 1.6s;
}
.radar-center-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    z-index: 10;
    object-fit: cover;
    background: #4F46E5;
}

@keyframes radarRipple {
    0% {
        transform: scale(0.4);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Active Audio Call Screen */
.active-call-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
}

/* Sound Wave Animation */
.sound-wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 60px;
    margin: 2rem auto;
}
.sound-bar {
    width: 6px;
    background: linear-gradient(to top, #4F46E5, #06B6D4);
    border-radius: 4px;
    animation: soundWave 1.2s infinite ease-in-out alternate;
}
.sound-bar:nth-child(1) { height: 15px; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 35px; animation-delay: 0.2s; }
.sound-bar:nth-child(3) { height: 50px; animation-delay: 0.3s; }
.sound-bar:nth-child(4) { height: 25px; animation-delay: 0.4s; }
.sound-bar:nth-child(5) { height: 45px; animation-delay: 0.5s; }
.sound-bar:nth-child(6) { height: 60px; animation-delay: 0.6s; }
.sound-bar:nth-child(7) { height: 30px; animation-delay: 0.7s; }
.sound-bar:nth-child(8) { height: 18px; animation-delay: 0.8s; }

@keyframes soundWave {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1.3); }
}

/* Call Control Buttons */
.call-btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}
.call-btn-hangup {
    background: #EF4444;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.call-btn-hangup:hover {
    background: #DC2626;
    transform: scale(1.1);
}
.call-btn-mute {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.call-btn-mute:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}
.call-btn-mute.muted {
    background: #F59E0B;
}

/* Live Call Timer */
.call-timer-badge {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: #10B981;
    letter-spacing: 0.05em;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.35rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
