/**
 * Tactical UI Enhancements for SchutzCarr Armored Vehicles
 * 
 * This stylesheet adds sophisticated security-themed visual effects
 * to enhance the premium, tactical feel of the site.
 */

/* Tactical Scan Line Effect */
.tactical-scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 1px,
        rgba(255, 255, 255, 0.02) 1px,
        rgba(255, 255, 255, 0.02) 2px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Tactical Noise Overlay */
.tactical-noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

/* Tactical Corner Accents */
.tactical-corners {
    position: relative;
}

.tactical-corners:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: 
        linear-gradient(135deg, transparent 50%, rgba(212, 169, 104, 0.1) 50%),
        linear-gradient(-135deg, transparent 14px, var(--color-bg-secondary) 15px);
    z-index: 1;
}

/* Tactical Scan Line Animation */
.tactical-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(212, 169, 104, 0) 0%, 
        rgba(212, 169, 104, 0.5) 50%, 
        rgba(212, 169, 104, 0) 100%);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.5);
    transition: opacity 0.3s ease;
}

.tactical-scan-line.active {
    opacity: 0.7;
    animation: scan-line-move 1.5s ease-out;
}

@keyframes scan-line-move {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Tactical Particles */
.tactical-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.tactical-particle {
    position: absolute;
    background-color: rgba(212, 169, 104, 0.3);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(10px);
    }
    50% {
        transform: translateY(-20px) translateX(0);
    }
    75% {
        transform: translateY(-10px) translateX(-10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Tactical Highlight Effect */
.tactical-highlight {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(212, 169, 104, 0) 0%, 
        rgba(212, 169, 104, 0.1) 50%, 
        rgba(212, 169, 104, 0) 100%);
    z-index: 1;
    pointer-events: none;
    animation: tactical-highlight 1s ease-out;
}

@keyframes tactical-highlight {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Tactical Ripple Effect */
.tactical-ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(212, 169, 104, 0.2);
    transform: scale(0);
    animation: tactical-ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes tactical-ripple {
    0% {
        transform: scale(0);
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Tactical Click Effect */
.tactical-click-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(212, 169, 104, 0.1);
    border-radius: inherit;
    pointer-events: none;
    animation: tactical-click 0.4s ease-out;
}

@keyframes tactical-click {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

/* Secure Connection Indicator */
.secure-connection-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.9) 0%, rgba(18, 24, 32, 0.95) 100%);
    color: var(--color-accent-1);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md), 0 0 15px rgba(212, 169, 104, 0.2);
    border: 1px solid rgba(212, 169, 104, 0.2);
    z-index: 9999;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.secure-connection-indicator.show {
    transform: translateY(0);
    opacity: 1;
}

.secure-connection-indicator i {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

/* Tactical Timestamp */
.tactical-timestamp {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    margin-top: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.tactical-timestamp i {
    margin-right: 5px;
    color: var(--color-accent-1);
    opacity: 0.7;
}

/* Verification Dot */
.verification-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent-1);
    box-shadow: 0 0 5px rgba(212, 169, 104, 0.5);
    animation: pulse 2s infinite;
}

/* Filter Indicator */
.filter-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent-1);
    margin-left: 8px;
    opacity: 0.7;
    vertical-align: middle;
}

/* Fade In Animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tactical-scan-line {
        display: none;
    }
    
    .secure-connection-indicator {
        top: 10px;
        right: 10px;
        font-size: var(--font-size-xs);
        padding: 8px 12px;
    }
}
