/**
 * CrownateStudio - Welcome Audio Styling (Luxury Experience)
 * Premium floating controller with interactive menu
 */

#welcome-audio-container {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-150%);
    opacity: 0;
}

#welcome-audio-container.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Main Trigger Bar */
.audio-main-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(15px);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 74, 23, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-main-trigger:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color, #ff4a17);
    box-shadow: 0 15px 45px rgba(255, 74, 23, 0.2);
}

.audio-icon-wrapper {
    width: 38px;
    height: 38px;
    background: var(--accent-color, #ff4a17);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.audio-text {
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Luxury Menu */
.audio-luxury-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom left;
}

#welcome-audio-container.menu-open .audio-luxury-menu {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.menu-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 180px;
}

.menu-item:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.menu-item i {
    font-size: 16px;
}

.menu-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Playing State Waves */
.sound-waves {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 18px;
}

.sound-waves span {
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    display: none;
    animation: wavePulse 1s infinite ease-in-out;
}

#welcome-audio-container.playing .sound-waves span {
    display: block;
}

.sound-waves span:nth-child(2) { animation-delay: 0.2s; }
.sound-waves span:nth-child(3) { animation-delay: 0.4s; }
.sound-waves span:nth-child(4) { animation-delay: 0.6s; }

@keyframes wavePulse {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

@media (max-width: 768px) {
    #welcome-audio-container {
        bottom: 80px;
        left: 20px;
    }
}
