/* FINDERR Distinctive Background - Security Grid Theme */
/* Different from neural-network.css used on other pages */

/* Base Container for Security Background */
.finderr-security-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0f1a 0%, #0f172a 40%, #1a1f35 70%, #0f172a 100%);
    overflow: hidden;
}

/* Hexagonal Grid Pattern - Security Honeycomb */
.security-hex-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, rgba(59, 130, 246, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(59, 130, 246, 0.03) 87.5%, rgba(59, 130, 246, 0.03)),
        linear-gradient(150deg, rgba(59, 130, 246, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(59, 130, 246, 0.03) 87.5%, rgba(59, 130, 246, 0.03)),
        linear-gradient(30deg, rgba(59, 130, 246, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(59, 130, 246, 0.03) 87.5%, rgba(59, 130, 246, 0.03)),
        linear-gradient(150deg, rgba(59, 130, 246, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(59, 130, 246, 0.03) 87.5%, rgba(59, 130, 246, 0.03)),
        linear-gradient(60deg, rgba(6, 182, 212, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(6, 182, 212, 0.02) 75%, rgba(6, 182, 212, 0.02)),
        linear-gradient(60deg, rgba(6, 182, 212, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(6, 182, 212, 0.02) 75%, rgba(6, 182, 212, 0.02));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.8;
}

/* Animated Scanner Line */
.security-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0) 10%,
        rgba(59, 130, 246, 0.6) 50%,
        rgba(59, 130, 246, 0) 90%,
        transparent 100%
    );
    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(59, 130, 246, 0.3),
        0 0 60px rgba(59, 130, 246, 0.1);
    animation: securityScan 8s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes securityScan {
    0%, 100% {
        top: -3px;
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
    }
    50% {
        top: 100%;
    }
}

/* Secondary Scanner (Reverse) */
.security-scanner-reverse {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(6, 182, 212, 0) 20%,
        rgba(6, 182, 212, 0.4) 50%,
        rgba(6, 182, 212, 0) 80%,
        transparent 100%
    );
    box-shadow:
        0 0 15px rgba(6, 182, 212, 0.4),
        0 0 30px rgba(6, 182, 212, 0.2);
    animation: securityScanReverse 12s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes securityScanReverse {
    0%, 100% {
        bottom: -2px;
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    50% {
        bottom: 100%;
    }
}

/* Floating Shield Particles */
.shield-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shield-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0) 70%);
    animation: floatParticle 20s infinite ease-in-out;
    opacity: 0;
}

.shield-particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.shield-particle:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.shield-particle:nth-child(3) {
    left: 45%;
    top: 30%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.shield-particle:nth-child(4) {
    left: 65%;
    top: 70%;
    animation-delay: 6s;
    animation-duration: 24s;
}

.shield-particle:nth-child(5) {
    left: 80%;
    top: 40%;
    animation-delay: 8s;
    animation-duration: 20s;
}

.shield-particle:nth-child(6) {
    left: 90%;
    top: 15%;
    animation-delay: 10s;
    animation-duration: 19s;
}

.shield-particle:nth-child(7) {
    left: 15%;
    top: 85%;
    animation-delay: 12s;
    animation-duration: 21s;
}

.shield-particle:nth-child(8) {
    left: 55%;
    top: 10%;
    animation-delay: 14s;
    animation-duration: 17s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(-10px) scale(1);
    }
    50% {
        transform: translateY(-50px) scale(1.2);
        opacity: 0.4;
    }
    90% {
        opacity: 0.6;
        transform: translateY(-90px) scale(1);
    }
}

/* Corner Security Brackets */
.security-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    pointer-events: none;
}

.security-corner::before,
.security-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.security-corner.top-left {
    top: 40px;
    left: 40px;
}

.security-corner.top-left::before {
    width: 40px;
    height: 3px;
    top: 0;
    left: 0;
}

.security-corner.top-left::after {
    width: 3px;
    height: 40px;
    top: 0;
    left: 0;
}

.security-corner.top-right {
    top: 40px;
    right: 40px;
}

.security-corner.top-right::before {
    width: 40px;
    height: 3px;
    top: 0;
    right: 0;
}

.security-corner.top-right::after {
    width: 3px;
    height: 40px;
    top: 0;
    right: 0;
}

.security-corner.bottom-left {
    bottom: 40px;
    left: 40px;
}

.security-corner.bottom-left::before {
    width: 40px;
    height: 3px;
    bottom: 0;
    left: 0;
}

.security-corner.bottom-left::after {
    width: 3px;
    height: 40px;
    bottom: 0;
    left: 0;
}

.security-corner.bottom-right {
    bottom: 40px;
    right: 40px;
}

.security-corner.bottom-right::before {
    width: 40px;
    height: 3px;
    bottom: 0;
    right: 0;
}

.security-corner.bottom-right::after {
    width: 3px;
    height: 40px;
    bottom: 0;
    right: 0;
}

/* Pulsing Center Glow - Shield Effect */
.security-shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(59, 130, 246, 0.04) 30%,
        rgba(6, 182, 212, 0.02) 50%,
        transparent 70%
    );
    animation: shieldPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shieldPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Grid Node Points */
.grid-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    animation: nodeFlicker 3s ease-in-out infinite;
}

@keyframes nodeFlicker {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Data Stream Lines - Vertical */
.data-stream {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(59, 130, 246, 0.3) 20%,
        rgba(59, 130, 246, 0.1) 40%,
        transparent 60%,
        rgba(6, 182, 212, 0.2) 80%,
        transparent 100%
    );
    opacity: 0.4;
    animation: dataFlow 15s linear infinite;
}

.data-stream:nth-child(1) { left: 15%; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 35%; animation-delay: 3s; }
.data-stream:nth-child(3) { left: 55%; animation-delay: 6s; }
.data-stream:nth-child(4) { left: 75%; animation-delay: 9s; }
.data-stream:nth-child(5) { left: 92%; animation-delay: 12s; }

@keyframes dataFlow {
    0% {
        background-position: 0 -100%;
    }
    100% {
        background-position: 0 200%;
    }
}

/* Binary Code Rain (subtle) */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 20px,
            rgba(59, 130, 246, 0.3) 20px,
            rgba(59, 130, 246, 0.3) 21px
        );
    background-size: 30px 100%;
    animation: binaryScroll 60s linear infinite;
}

@keyframes binaryScroll {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 1000px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .security-corner {
        width: 50px;
        height: 50px;
    }

    .security-corner::before {
        width: 25px !important;
    }

    .security-corner::after {
        height: 25px !important;
    }

    .security-corner.top-left,
    .security-corner.top-right {
        top: 20px;
    }

    .security-corner.top-left,
    .security-corner.bottom-left {
        left: 20px;
    }

    .security-corner.top-right,
    .security-corner.bottom-right {
        right: 20px;
    }

    .security-corner.bottom-left,
    .security-corner.bottom-right {
        bottom: 20px;
    }

    .security-shield-glow {
        width: 300px;
        height: 300px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .security-scanner,
    .security-scanner-reverse,
    .shield-particle,
    .security-shield-glow,
    .grid-nodes,
    .data-stream,
    .binary-rain {
        animation: none;
        opacity: 0.3;
    }
}
