/* Custom Styles for Flow App */

/* Navigation Styles */
.nav-link {
    color: rgb(209 213 219);
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Section Management */
.section {
    transition: opacity 0.3s ease;
}

.section.hidden {
    opacity: 0;
    pointer-events: none;
}

.section.active {
    opacity: 1;
}

/* Video Player Styles */
.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#lofi-player {
    border-radius: 12px;
    max-height: 400px;
    object-fit: cover;
}

.custom-controls {
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .custom-controls {
    opacity: 1;
}

/* Track Playlist Styles */
.track-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.track-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.track-item.active {
    background-color: rgba(37, 99, 235, 0.5);
    border: 1px solid rgb(96 165 250);
}

/* Focus Actions */
.focus-action {
    transition: all 0.3s ease;
    cursor: pointer;
}

.focus-action:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Timer Display */
.timer-display {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

/* Shop Items */
.shop-item {
    transition: all 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Focus Overlay Animation */
#focus-overlay {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

/* Volume Slider */
#volume-slider {
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    height: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-wrapper {
        margin: 0 -1rem;
    }
    
    #lofi-player {
        border-radius: 0;
    }
    
    .custom-controls {
        border-radius: 0;
        margin: 0;
    }
    
    .timer-display {
        font-size: 3rem;
    }
}

/* Loading Animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Particle Animation Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Progress Bar */
.progress-bar {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: #10b981;
    color: #10b981;
}

.notification.warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.notification.error {
    border-color: #ef4444;
    color: #ef4444;
}