/* ===== THEME VARIABLES ===== */
:root {
    /* Colors */
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --neon-pink: #ff006e;
    --neon-cyan: #00d4ff;
    --neon-gold: #ffd700;
    --neon-green: #00ff88;
    --neon-red: #ff0055;
    --neon-purple: #b800ff;
    --neon-lime: #02ff00;
    --silver: #c0c0c0;
    --white: #ffffff;
    
    /* Secondary colors for trainers */
    --color-fuse: #ff006e;      /* Pink */
    --color-voltage: #ffd700;   /* Gold */
    --color-circuit: #00ff88;   /* Green */
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0ff;
    --text-dark: #666666;
    
    /* Shadows & Glow */
    --glow-sm: 0 0 10px;
    --glow-md: 0 0 20px;
    --glow-lg: 0 0 40px;
    --glow-xl: 0 0 60px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.6s ease-out;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    letter-spacing: 0.05em;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: var(--glow-lg) var(--neon-pink);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== NEON EFFECTS ===== */

/* Базовое свечение текста */
.neon-text {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 60px currentColor;
}

/* Neon рамка большая */
.neon-frame-large {
    border: 2px solid var(--neon-pink);
    border-radius: 15px;
    padding: 60px 40px;
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.05) 0%, 
        rgba(0, 212, 255, 0.05) 100%);
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 110, 0.2),
        0 0 40px var(--neon-pink),
        0 0 80px rgba(255, 0, 110, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.neon-frame-large::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--neon-cyan);
    border-radius: 15px;
    opacity: 0.3;
    pointer-events: none;
}

/* Neon кнопка */
.neon-button {
    position: relative;
    padding: 12px 30px;
    border: 2px solid currentColor;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(currentColor, 0.3);
}

.neon-button.primary {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 
        inset 0 0 20px rgba(255, 0, 110, 0.2),
        0 0 25px var(--neon-pink);
}

.neon-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 110, 0.4),
        0 0 40px var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.neon-button:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 0 10px rgba(255, 0, 110, 0.5),
        0 0 15px var(--neon-pink);
}

/* Input field */
.neon-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-normal);
    box-shadow: 
        inset 0 0 15px rgba(0, 212, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.neon-input:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 
        inset 0 0 20px rgba(255, 0, 110, 0.2),
        0 0 30px var(--neon-cyan),
        0 0 15px var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.neon-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Select field */
.neon-select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-cyan);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.neon-select:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.neon-select:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
}

/* ===== NEON TITLES ===== */
.neon-title {
    color: var(--neon-pink);
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink),
        0 0 60px rgba(255, 0, 110, 0.8),
        0 0 100px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
    animation: textGlitch 3s infinite;
}

.neon-subtitle {
    color: var(--neon-cyan);
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px rgba(0, 212, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 40px;
    letter-spacing: 0.15em;
}

/* ===== INPUT GROUP ===== */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

/* ===== CIRCUIT DECORATION ===== */
.circuit-decoration {
    position: absolute;
    opacity: 0.15;
}

.circuit-decoration.top {
    top: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
    border: 1px dashed var(--neon-cyan);
    border-radius: 10px;
}

.circuit-decoration.bottom {
    bottom: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    border: 1px dashed var(--neon-gold);
    border-radius: 10px;
}

/* ===== GLOW ANIMATIONS ===== */
@keyframes textGlitch {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 40px var(--neon-pink),
            0 0 60px rgba(255, 0, 110, 0.8);
    }
    50% {
        text-shadow: 
            0 0 10px var(--neon-cyan),
            0 0 20px var(--neon-cyan),
            0 0 40px var(--neon-cyan),
            0 0 60px rgba(0, 212, 255, 0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 5px currentColor);
    }
    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 15px currentColor);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 0, 110, 0.6);
    }
}

/* ===== DISABLED STATE ===== */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-pink);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-pink);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}
