/* vibeflow.cam - Vaporwave Lo-Fi Experience */
/* Color Palette: pink #ff71ce, cyan #01cdfe, purple #b967ff, orange gradient */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a0a2e;
}

body {
    font-family: 'Courier New', monospace;
    color: #ff71ce;
}

#visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#play-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    pointer-events: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#play-container.playing {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

#play-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #ff71ce;
    background: rgba(255, 113, 206, 0.1);
    color: #ff71ce;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow:
        0 0 30px rgba(255, 113, 206, 0.3),
        inset 0 0 30px rgba(255, 113, 206, 0.1);
}

#play-btn:hover {
    background: rgba(255, 113, 206, 0.2);
    transform: scale(1.05);
    box-shadow:
        0 0 50px rgba(255, 113, 206, 0.5),
        inset 0 0 30px rgba(255, 113, 206, 0.2);
}

#play-btn svg {
    width: 50px;
    height: 50px;
}

#play-text {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #01cdfe;
    text-shadow: 0 0 10px rgba(1, 205, 254, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

#controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 1rem 2rem;
    background: rgba(26, 10, 46, 0.6);
    border-radius: 50px;
    border: 1px solid rgba(255, 113, 206, 0.2);
    backdrop-filter: blur(10px);
}

#controls.visible {
    opacity: 1;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-group label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #b967ff;
    min-width: 30px;
}

.control-group span {
    font-size: 0.7rem;
    color: #01cdfe;
    min-width: 25px;
    text-align: right;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(185, 103, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ff71ce;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 113, 206, 0.5);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ff71ce;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 113, 206, 0.5);
}

#title {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    color: #ff71ce;
    text-shadow:
        0 0 10px rgba(255, 113, 206, 0.5),
        0 0 20px rgba(255, 113, 206, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#title.visible {
    opacity: 0.7;
}

/* Track Selector */
#track-selector {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#track-selector.visible {
    opacity: 1;
}

.track-btn {
    background: rgba(26, 10, 46, 0.7);
    border: 1px solid rgba(255, 113, 206, 0.3);
    color: rgba(255, 113, 206, 0.6);
    padding: 0.6rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: left;
}

.track-btn:hover {
    background: rgba(255, 113, 206, 0.15);
    border-color: rgba(255, 113, 206, 0.5);
    color: #ff71ce;
}

.track-btn.active {
    background: rgba(255, 113, 206, 0.2);
    border-color: #ff71ce;
    color: #ff71ce;
    box-shadow: 0 0 15px rgba(255, 113, 206, 0.3);
}

/* Track-specific theme colors */
body.theme-sunset {
    --primary: #ff71ce;
    --secondary: #01cdfe;
    --accent: #b967ff;
}

body.theme-midnight {
    --primary: #01cdfe;
    --secondary: #b967ff;
    --accent: #05ffa1;
}

body.theme-ocean {
    --primary: #05ffa1;
    --secondary: #01cdfe;
    --accent: #b967ff;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    #play-btn {
        width: 100px;
        height: 100px;
    }

    #play-btn svg {
        width: 40px;
        height: 40px;
    }

    #controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        bottom: 20px;
    }

    input[type="range"] {
        width: 80px;
    }

    #title {
        font-size: 1rem;
        letter-spacing: 0.3em;
    }

    #track-selector {
        top: 15px;
        left: 15px;
    }

    .track-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.65rem;
    }
}
