/* SpiderFoot OSINT Tools - Terminal Style */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #121212;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #00FF41;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc34;
}

/* Grid Pattern Background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.5);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00FF41;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-primary {
    background: #00FF41;
    color: #121212;
    padding: 12px 24px;
    border-radius: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid #00FF41;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-primary:hover {
    background: transparent;
    color: #00FF41;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Search Type Tabs */
.search-type-tab {
    cursor: pointer;
    user-select: none;
}

.search-type-tab:active {
    transform: scale(0.98);
}

/* Card Hover Effects */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Terminal Effect */
.terminal-effect {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 65, 0.2);
}

/* Input Focus Glow */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.3);
    border-color: #00FF41;
}

/* Smooth Transitions */
a,
button,
input,
textarea,
select {
    transition: all 0.2s ease;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(0, 255, 65, 0.1);
    border-top-color: #00FF41;
    border-radius: 0;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Text Selection */
::selection {
    background-color: rgba(0, 255, 65, 0.3);
    color: #121212;
}

::-moz-selection {
    background-color: rgba(0, 255, 65, 0.3);
    color: #121212;
}

/* Code Blocks */
code,
pre {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(18, 18, 18, 0.9);
    padding: 2px 6px;
    border-radius: 0;
    font-size: 0.9em;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

pre {
    padding: 16px;
    overflow-x: auto;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

/* Terminal Text */
.terminal-text {
    color: #00FF41;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(0, 255, 65, 0.1);
    color: #00FF41;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1e293b;
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 8px;
    border: 1px solid #334155;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Results Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    animation: slideInUp 0.3s ease forwards;
}

.result-item:nth-child(2) { animation-delay: 0.1s; }
.result-item:nth-child(3) { animation-delay: 0.2s; }
.result-item:nth-child(4) { animation-delay: 0.3s; }
.result-item:nth-child(5) { animation-delay: 0.4s; }

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible (for keyboard navigation) */
*:focus-visible {
    outline: 2px solid #00FF41;
    outline-offset: 2px;
}

/* Terminal Cursor Animation */
@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor-blink {
    animation: cursor-blink 1s infinite;
}

/* Scan Line Effect */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(transparent, rgba(0, 255, 65, 0.3), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
