/* Neon Effects and Animations */

/* Neon Text Effects */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px #00ffff,
        0 0 35px #00ffff,
        0 0 40px #00ffff;
    animation: neonFlicker 2s infinite alternate;
}

.neon-number {
    color: #ff00ff;
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px #ff00ff,
        0 0 35px #ff00ff,
        0 0 40px #ff00ff;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

/* Neon Buttons */
.btn-neon {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-neon:hover::before {
    left: 100%;
}

.btn-neon:hover {
    color: #fff;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 10px #00ffff;
    transform: translateY(-2px);
}

.btn-neon-outline {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 1px solid #ff00ff;
    color: #ff00ff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.btn-neon-outline:hover {
    color: #fff;
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    transform: translateY(-2px);
}

/* Neon Borders and Containers */
.neon-border {
    border: 1px solid #00ffff;
    box-shadow: 
        0 0 5px #00ffff,
        inset 0 0 5px rgba(0, 255, 255, 0.1);
    border-radius: 10px;
}

.neon-border:hover {
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.neon-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.neon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: shimmer 3s linear infinite;
}

/* Neon Card Effects */
.neon-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.neon-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, #00ffff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.neon-card:hover::before {
    opacity: 0.1;
}

.neon-card:hover {
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* Neon Loading Animation */
.neon-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.1);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Neon Progress Bar */
.neon-progress {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.neon-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    animation: progressGlow 2s ease-in-out infinite alternate;
}

/* Neon Input Fields */
.neon-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.neon-input:focus {
    border-color: #00ffff;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    background: rgba(0, 255, 255, 0.05);
}

.neon-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Neon Checkbox and Radio */
.neon-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #00ffff;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.neon-checkbox:checked {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.neon-checkbox:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ffff;
    font-size: 14px;
    text-shadow: 0 0 5px #00ffff;
}

/* Neon Hover Effects */
.neon-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.neon-hover:hover {
    text-shadow: 0 0 10px currentColor;
    transform: scale(1.05);
}

/* Neon Pulse Animation for Important Elements */
.neon-pulse {
    animation: neonPulse 2s ease-in-out infinite;
}

/* Neon Glow for Icons and Images */
.neon-glow {
    filter: drop-shadow(0 0 10px #00ffff);
    transition: filter 0.3s ease;
}

.neon-glow:hover {
    filter: drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 30px #00ffff);
}

/* Neon Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

/* Neon Selection */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #fff;
    text-shadow: 0 0 10px #00ffff;
}

::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: #fff;
    text-shadow: 0 0 10px #00ffff;
}

/* Neon Animations */
@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px #00ffff,
            0 0 35px #00ffff,
            0 0 40px #00ffff;
    }
    20%, 24%, 55% {
        text-shadow: 
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px #00ffff,
            0 0 18px #00ffff,
            0 0 20px #00ffff;
    }
}

@keyframes neonPulse {
    0% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor,
            0 0 25px currentColor;
    }
    100% {
        text-shadow: 
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progressGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 1), 0 0 30px rgba(255, 0, 255, 0.5);
    }
}

@keyframes slideNeon {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Neon Background Patterns */
.neon-bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.1) 0%, transparent 50%);
}

.neon-grid {
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* Neon Focus States */
.neon-focus:focus {
    outline: none;
    box-shadow: 
        0 0 0 2px rgba(0, 255, 255, 0.5),
        0 0 10px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

/* Neon Disabled States */
.neon-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.neon-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Neon Success/Error States */
.neon-success {
    border-color: #00ff00;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.neon-error {
    border-color: #ff0000;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.neon-warning {
    border-color: #ffff00;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

/* Neon Mobile Optimizations */
@media (max-width: 768px) {
    .neon-text {
        text-shadow: 
            0 0 3px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 10px #00ffff;
    }
    
    .btn-neon {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .neon-card:hover {
        transform: none;
    }
    
    .neon-hover:hover {
        transform: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .neon-text,
    .neon-number,
    .neon-pulse,
    .neon-progress-bar,
    .neon-loader,
    .neon-grid {
        animation: none;
    }
    
    .btn-neon::before {
        transition: none;
    }
    
    .neon-card::before {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .neon-text {
        text-shadow: none;
        color: #ffffff;
    }
    
    .btn-neon {
        background: #000000;
        border-color: #ffffff;
        color: #ffffff;
    }
    
    .neon-border {
        border-color: #ffffff;
        box-shadow: none;
    }
}

/* Print Styles */
@media print {
    .neon-text,
    .neon-number {
        text-shadow: none;
        color: #000000;
    }
    
    .btn-neon,
    .btn-neon-outline {
        border: 1px solid #000000;
        color: #000000;
        background: transparent;
        box-shadow: none;
    }
    
    .neon-card,
    .neon-container {
        border: 1px solid #000000;
        box-shadow: none;
        background: transparent;
    }
}
