/* === PHASE 3: THE EXPERIENCE (AUDIO + HUD) === */

/* --- 1. HUD NOTIFICATION SYSTEM (Top Right) --- */
.cyber-toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.cyber-toast {
    background: rgba(5, 5, 5, 0.9);
    border-left: 3px solid #00f3ff;
    border-right: 1px solid rgba(0, 243, 255, 0.3);
    padding: 12px 20px;
    font-family: 'Space Grotesk', sans-serif;
    /* Consolas fallback */
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    /* Animation Entrance */
    transform: translateX(100%);
    opacity: 0;
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;

    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.cyber-toast.success {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.cyber-toast.warning {
    border-color: #ff0055;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
}

.toast-icon {
    font-size: 16px;
}

@keyframes toastSlideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* --- 2. MUSIC PLAYER WIDGET (Bottom Left) --- */
.cyber-music-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 50px;
    /* Collapsed state */
    overflow: hidden;
    cursor: pointer;
}

.cyber-music-widget:hover,
.cyber-music-widget.active {
    width: 280px;
    /* Expanded */
    border-color: #bc13fe;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
}

/* Equalizer Bars */
.music-equalizer {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 15px;
    min-width: 20px;
}

.bar {
    width: 3px;
    background: #bc13fe;
    animation: equalizer 1s infinite ease-in-out;
}

.bar:nth-child(1) {
    animation-duration: 0.8s;
    height: 40%;
}

.bar:nth-child(2) {
    animation-duration: 1.1s;
    height: 80%;
}

.bar:nth-child(3) {
    animation-duration: 0.9s;
    height: 60%;
}

.bar:nth-child(4) {
    animation-duration: 1.2s;
    height: 50%;
}

.music-equalizer.paused .bar {
    animation-play-state: paused;
    height: 2px !important;
    background: #555;
}

/* Track Info */
.track-info {
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s 0.1s;
}

.cyber-music-widget:hover .track-info,
.cyber-music-widget.active .track-info {
    opacity: 1;
}

.track-title {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
}

.track-status {
    font-size: 10px;
    color: #bc13fe;
    text-transform: uppercase;
}

@keyframes equalizer {

    0%,
    100% {
        height: 20%;
    }

    50% {
        height: 100%;
    }
}