/* Tactical Enhancements - Additional Effects */

/* Enhanced Loading Screen */
.loading-overlay.enhanced {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    backdrop-filter: blur(10px);
}

.loading-content.enhanced {
    position: relative;
    z-index: 10;
}

.loading-spinner.enhanced {
    position: relative;
    width: 80px;
    height: 80px;
    border: 4px solid #333;
    border-top: 4px solid #00aa00;
    border-radius: 50%;
    animation: enhancedSpin 1.5s linear infinite;
}

.loading-spinner.enhanced::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #00aa00;
    border-radius: 50%;
    animation: enhancedPulse 2s ease-in-out infinite;
}

.loading-spinner.enhanced::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #00aa00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: centerPulse 1s ease-in-out infinite alternate;
}

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

@keyframes enhancedPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes centerPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Enhanced Tactical Text */
.tactical-text.enhanced {
    position: relative;
    background: linear-gradient(45deg, #00aa00, #00ff00, #00aa00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s ease-in-out infinite;
}

@keyframes textGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Holographic Effects */
.holographic-effect.enhanced {
    position: relative;
    overflow: hidden;
}

.holographic-effect.enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 170, 0, 0.1) 50%,
        transparent 70%
    );
    animation: enhancedHolographicScan 4s linear infinite;
    pointer-events: none;
}

.holographic-effect.enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 170, 0, 0.05),
        transparent
    );
    animation: holographicGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes enhancedHolographicScan {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes holographicGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Enhanced Particle System */
.particle.enhanced {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #00ff00, #00aa00);
    border-radius: 50%;
    animation: enhancedParticleFloat 8s linear infinite;
    box-shadow: 0 0 6px rgba(0, 170, 0, 0.6);
    /* Устанавливаем z-index ниже хедера */
    z-index: 1;
}

.particle.enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translate(-50%, -50%) scale(0);
    animation: particlePulse 2s ease-in-out infinite;
}

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

@keyframes particlePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.5;
    }
}

/* Enhanced Button Animations */
.action-btn.enhanced.animated {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #2a2a2a, #333);
    border: 1px solid #00aa00;
    transition: all 0.3s ease;
}

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

.action-btn.enhanced.animated:hover::before {
    left: 100%;
}

.action-btn.enhanced.animated:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 170, 0, 0.4);
    border-color: #00ff00;
}

.action-btn.enhanced.animated:active {
    transform: translateY(-1px) scale(1.02);
}

/* Enhanced Grid Lines */
.grid-line.enhanced {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 170, 0, 0.2), transparent);
    animation: enhancedGridPulse 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 170, 0, 0.3);
}

.grid-line.enhanced.horizontal {
    height: 2px;
    width: 100%;
}

.grid-line.enhanced.vertical {
    width: 2px;
    height: 100%;
}

@keyframes enhancedGridPulse {
    0%, 100% {
        opacity: 0.2;
        box-shadow: 0 0 5px rgba(0, 170, 0, 0.2);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(0, 170, 0, 0.5);
    }
}

/* Enhanced Status Indicators */
.status-indicator.enhanced.animated {
    position: relative;
    width: 15px;
    height: 15px;
    background: #00aa00;
    border-radius: 50%;
    animation: enhancedStatusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 170, 0, 0.5);
}

.status-indicator.enhanced.animated::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #00aa00;
    border-radius: 50%;
    animation: enhancedStatusPulse 2s ease-in-out infinite reverse;
}

.status-indicator.enhanced.animated::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: statusCenterPulse 1s ease-in-out infinite alternate;
}

@keyframes enhancedStatusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 170, 0, 0.5);
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
        box-shadow: 0 0 25px rgba(0, 170, 0, 0.8);
    }
}

@keyframes statusCenterPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Enhanced Notifications */
.tactical-notification.enhanced {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: none;
    background: linear-gradient(135deg, #2a2a2a, #333);
    border: 1px solid #00aa00;
    padding: 20px 25px;
    color: #fff;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10000;
    animation: enhancedNotificationSlideRight 0.6s ease-out;
    box-shadow: 0 10px 30px rgba(0, 170, 0, 0.4);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    max-width: 300px;
}

.tactical-notification.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00aa00, #00ff00, #00aa00);
    animation: notificationProgress 3s linear;
}

@keyframes enhancedNotificationSlideRight {
    from {
        transform: translateX(100%);
        opacity: 0;
        filter: blur(10px);
    }
    to {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes notificationProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Enhanced Form Controls */
.form-control.enhanced.animated {
    background: linear-gradient(135deg, #2a2a2a, #333);
    border: 1px solid #333;
    color: #fff;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-control.enhanced.animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 170, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.form-control.enhanced.animated:focus {
    border-color: #00aa00;
    box-shadow: 0 0 20px rgba(0, 170, 0, 0.3);
    background: linear-gradient(135deg, #333, #2a2a2a);
    transform: translateY(-2px);
}

.form-control.enhanced.animated:focus::before {
    left: 100%;
}

.form-control.enhanced.animated::placeholder {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.form-control.enhanced.animated:focus::placeholder {
    color: #00aa00;
}

/* Enhanced Cursor */
.tactical-cursor.enhanced {
    position: fixed;
    width: 25px;
    height: 25px;
    border: 2px solid #00aa00;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
    backdrop-filter: blur(5px);
    /* Скрываем enhanced тактический курсор */
    display: none;
}

.tactical-cursor.enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #00aa00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: enhancedCursorPulse 2s ease-in-out infinite;
}

.tactical-cursor.enhanced::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid #00aa00;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: cursorRipple 2s ease-in-out infinite;
}

@keyframes enhancedCursorPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

@keyframes cursorRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Enhanced Sound Indicator */
.sound-indicator.enhanced {
    position: relative;
    width: 35px;
    height: 35px;
    background: #333;
    border: 1px solid #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.sound-indicator.enhanced:hover {
    background: #00aa00;
    border-color: #00aa00;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,170,0,0.3);
}

.sound-indicator.enhanced i {
    color: #fff;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sound-indicator.enhanced:hover i {
    color: #fff;
}

.sound-indicator.enhanced.muted {
    background: #666;
    border-color: #666;
}

.sound-indicator.enhanced.muted i {
    color: #ccc;
}

/* Enhanced Section Transitions */
.content-section.enhanced.animated {
    position: relative;
    overflow: hidden;
}

.content-section.enhanced.animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 170, 0, 0.1), transparent);
    transition: left 1s ease;
}

.content-section.enhanced.animated.active::before {
    left: 100%;
}

.content-section.enhanced.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent, rgba(0, 170, 0, 0.02));
    pointer-events: none;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Разрешаем скролл для enhanced мобильных */
    body {
        overflow: auto;
    }
    
    .tactical-grid {
        overflow: visible;
    }
    
    .tactical-cursor.enhanced {
        display: none;
    }
    
    .sound-indicator.enhanced {
        width: 35px;
        height: 35px;
        margin: 0 auto 15px;
    }
    
    .sound-indicator.enhanced i {
        font-size: 14px;
    }
    
    .tactical-notification.enhanced {
        bottom: 10px;
        right: 10px;
        left: auto;
        transform: none;
        font-size: 12px;
        padding: 15px 20px;
        max-width: 250px;
    }
    
    .loading-spinner.enhanced {
        width: 60px;
        height: 60px;
    }
    
    .particle.enhanced {
        width: 2px;
        height: 2px;
    }
    
    /* Enhanced mobile adjustments */
    .holographic-effect.enhanced::before,
    .holographic-effect.enhanced::after {
        opacity: 0.3;
    }
    
    .action-btn.enhanced.animated {
        padding: 12px 20px;
        font-size: 12px;
        font-weight: 600;
    }
    
    .form-control.enhanced.animated {
        padding: 12px;
        font-size: 14px;
        border: 1px solid #ccc;
        background: #fff;
        color: #333;
    }
    
    .form-control.enhanced.animated:focus {
        border-color: #00aa00;
        box-shadow: 0 0 5px rgba(0, 170, 0, 0.2);
    }
    
    /* Improve readability on mobile */
    .tactical-text.enhanced {
        background: #00aa00;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
    }
    
    .status-indicator.enhanced.animated {
        width: 8px;
        height: 8px;
    }
    
    .status-indicator.enhanced.animated::before {
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }
}

@media (max-width: 576px) {
    .sound-indicator.enhanced {
        width: 30px;
        height: 30px;
    }
    
    .sound-indicator.enhanced i {
        font-size: 12px;
    }
    
    .tactical-notification.enhanced {
        bottom: 5px;
        right: 5px;
        font-size: 10px;
        padding: 12px 15px;
        max-width: 200px;
    }
    
    .loading-spinner.enhanced {
        width: 50px;
        height: 50px;
    }
    
    .particle.enhanced {
        width: 1px;
        height: 1px;
    }
    
    .action-btn.enhanced.animated {
        padding: 10px 15px;
        font-size: 11px;
    }
    
    .form-control.enhanced.animated {
        padding: 10px;
        font-size: 13px;
    }
    
    /* Reduce enhanced effects on small screens */
    .holographic-effect.enhanced::before,
    .holographic-effect.enhanced::after {
        opacity: 0.2;
    }
    
    .status-indicator.enhanced.animated {
        width: 6px;
        height: 6px;
    }
    
    .status-indicator.enhanced.animated::before {
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
    }
    
    /* Improve text readability */
    .tactical-text.enhanced {
        background: #00aa00;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .sound-indicator.enhanced {
        width: 25px;
        height: 25px;
    }
    
    .sound-indicator.enhanced i {
        font-size: 10px;
    }
    
    .tactical-notification.enhanced {
        bottom: 3px;
        right: 3px;
        font-size: 9px;
        padding: 10px 12px;
        max-width: 180px;
    }
    
    .loading-spinner.enhanced {
        width: 40px;
        height: 40px;
    }
    
    .action-btn.enhanced.animated {
        padding: 8px 12px;
        font-size: 10px;
    }
    
    .form-control.enhanced.animated {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Minimal enhanced effects on very small screens */
    .holographic-effect.enhanced::before,
    .holographic-effect.enhanced::after {
        opacity: 0.1;
    }
    
    .status-indicator.enhanced.animated {
        width: 5px;
        height: 5px;
    }
    
    .status-indicator.enhanced.animated::before {
        display: none;
    }
    
    /* Ensure text is readable */
    .tactical-text.enhanced {
        background: #00aa00;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
    }
}

/* Landscape orientation for enhanced styles */
@media (max-width: 768px) and (orientation: landscape) {
    .tactical-notification.enhanced {
        bottom: 5px;
        right: 5px;
        max-width: 200px;
    }
    
    .loading-spinner.enhanced {
        width: 50px;
        height: 50px;
    }
    
    /* Reduce effects in landscape */
    .holographic-effect.enhanced::before,
    .holographic-effect.enhanced::after {
        opacity: 0.2;
    }
}

/* High DPI displays for enhanced styles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tactical-cursor.enhanced {
        border-width: 1px;
    }
    
    .sound-indicator.enhanced {
        border-width: 0.5px;
    }
    
    .status-indicator.enhanced.animated {
        border-width: 0.5px;
    }
}

/* Print styles for enhanced elements */
@media print {
    .tactical-cursor.enhanced,
    .sound-indicator.enhanced,
    .particle.enhanced,
    .holographic-effect.enhanced::before,
    .holographic-effect.enhanced::after,
    .status-indicator.enhanced.animated {
        display: none !important;
    }
    
    .action-btn.enhanced.animated,
    .form-control.enhanced.animated {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .tactical-text.enhanced {
        background: #000 !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .tactical-text.enhanced {
        background: #00ff00;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .holographic-effect.enhanced::before,
    .holographic-effect.enhanced::after {
        opacity: 0.8;
    }
    
    .particle.enhanced {
        background: #00ff00;
        box-shadow: 0 0 10px #00ff00;
    }
} 

/* Enhanced Navigation */
.category-item.enhanced {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a, #333);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    /* Улучшаем читаемость */
    color: #fff;
}

.category-item.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 170, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item.enhanced:hover::before {
    opacity: 1;
}

.category-item.enhanced:hover {
    border-color: #00aa00;
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 170, 0, 0.3);
    /* Улучшаем читаемость при hover */
    color: #fff;
}

.category-item.enhanced .category-name {
    color: #fff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.category-item.enhanced:hover .category-name {
    color: #00ff00;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.category-item.enhanced.active .category-name {
    color: #00ff00;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
} 