/**
 * Theme: Neon
 * Inspired by: Cyberpunk 2077, Synthwave, Gaming
 * Vibe: Futuristic, high-tech, electric
 */

[data-theme="neon"] {
    /* Brand Colors - Purple/Cyan/Pink */
    --theme-primary: #bf00ff;
    --theme-primary-light: #e040fb;
    --theme-secondary: #00f5ff;
    --theme-accent: #ff0080;
    --theme-gradient: linear-gradient(135deg, #bf00ff 0%, #00f5ff 50%, #ff0080 100%);
    
    /* Backgrounds - Deep dark with color */
    --theme-bg-dark: #0a0014;
    --theme-bg-medium: #150025;
    --theme-bg-glow-1: rgba(191, 0, 255, 0.15);
    --theme-bg-glow-2: rgba(0, 245, 255, 0.1);
    --theme-bg-glow-3: rgba(255, 0, 128, 0.08);
    
    /* Cards - Glassy with neon edges */
    --theme-card-bg: linear-gradient(135deg, rgba(15, 0, 30, 0.9) 0%, rgba(25, 0, 50, 0.9) 100%);
    --theme-card-border: rgba(191, 0, 255, 0.4);
    --theme-card-border-hover: rgba(0, 245, 255, 0.6);
    --theme-card-glow: rgba(191, 0, 255, 0.3);
    
    /* Buttons - Glowing neon */
    --theme-btn-bg: linear-gradient(135deg, rgba(191, 0, 255, 0.15) 0%, rgba(0, 245, 255, 0.15) 100%);
    --theme-btn-border: rgba(191, 0, 255, 0.5);
    --theme-btn-hover-bg: linear-gradient(135deg, rgba(191, 0, 255, 0.3) 0%, rgba(0, 245, 255, 0.3) 100%);
    --theme-btn-glow: 0 0 20px rgba(191, 0, 255, 0.4), 0 0 40px rgba(191, 0, 255, 0.2);
    --theme-btn-glow-hover: 0 0 30px rgba(0, 245, 255, 0.6), 0 0 60px rgba(0, 245, 255, 0.3);
    
    /* Connected state */
    --theme-connected-bg: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(0, 255, 128, 0.2) 100%);
    --theme-connected-border: rgba(0, 245, 255, 0.7);
    --theme-connected-glow: 0 0 25px rgba(0, 245, 255, 0.5), 0 0 50px rgba(0, 245, 255, 0.25);
    
    /* Text */
    --theme-text-accent: #e040fb;
    --theme-text-secondary-accent: #00f5ff;
    
    /* Shadows - Intense glow */
    --theme-shadow-glow: 0 0 50px rgba(191, 0, 255, 0.5), 0 0 100px rgba(191, 0, 255, 0.25);
    --theme-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 60px rgba(191, 0, 255, 0.15);
    
    /* Progress bar */
    --theme-progress-bg: linear-gradient(90deg, #bf00ff 0%, #00f5ff 50%, #ff0080 100%);
    --theme-progress-glow: 0 0 25px rgba(0, 245, 255, 0.8), 0 0 50px rgba(191, 0, 255, 0.4);
    
    /* Zone colors - Neon palette */
    --color-zone-1: #00d9ff;
    --color-zone-2: #00ff9f;
    --color-zone-3: #ffea00;
    --color-zone-4: #ff6b00;
    --color-zone-5: #ff0055;
}

/* Neon-specific overrides */
[data-theme="neon"] .header__title {
    background: linear-gradient(135deg, #bf00ff 0%, #00f5ff 50%, #ff0080 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 40px rgba(191, 0, 255, 0.8), 0 0 80px rgba(0, 245, 255, 0.4);
    animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1);
    }
    92% { 
        opacity: 1;
        filter: brightness(1);
    }
    93% { 
        opacity: 0.8;
        filter: brightness(0.8);
    }
    94% { 
        opacity: 1;
        filter: brightness(1.1);
    }
    96% { 
        opacity: 0.9;
        filter: brightness(0.9);
    }
    97% { 
        opacity: 1;
        filter: brightness(1);
    }
}

[data-theme="neon"] .metric-card {
    border-radius: 4px;
    position: relative;
}

[data-theme="neon"] .metric-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #bf00ff, #00f5ff, #ff0080);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

[data-theme="neon"] .workout-section {
    border-radius: 4px;
}

[data-theme="neon"] .btn {
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

[data-theme="neon"] .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: neonSweep 3s infinite;
}

@keyframes neonSweep {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

[data-theme="neon"] .phase-timer {
    background: linear-gradient(135deg, #00f5ff 0%, #bf00ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.8);
}

[data-theme="neon"] .zone-box {
    border-radius: 4px;
}

[data-theme="neon"] .hr-display__value {
    text-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
}

/* Scanline effect */
[data-theme="neon"] body::before {
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 2px),
        repeating-linear-gradient(90deg, rgba(191, 0, 255, 0.03) 0px, transparent 1px, transparent 3px);
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 2px; }
}

/* Glitch effect on hover for buttons */
[data-theme="neon"] .btn:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0% { transform: translateY(-3px); }
    20% { transform: translateY(-3px) translateX(-2px); }
    40% { transform: translateY(-3px) translateX(2px); }
    60% { transform: translateY(-3px) translateX(-1px); }
    80% { transform: translateY(-3px) translateX(1px); }
    100% { transform: translateY(-3px); }
}
