/* BLACKBOX UFO Database - Global Styles */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --purple-primary: #8b5cf6;
    --purple-secondary: #a855f7;
    --purple-light: #c4b5fd;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #f59e0b;
    --border: #374151;
    --border-light: #4b5563;
}

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

body {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 50%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    line-height: 1.2;
    border-bottom: 2px solid var(--purple-primary);
    padding-bottom: 1rem;
}

h2 {
    color: var(--purple-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

ul, ol {
    color: var(--text-secondary);
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

a {
    color: var(--purple-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--purple-light);
    border-bottom-color: var(--purple-light);
}

/* Header and Navigation */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--purple-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    margin: -2rem -2rem 2rem -2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav li {
    margin: 0;
}

nav a {
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
}

nav a:hover, nav a:focus {
    color: var(--text-primary);
    border-color: var(--purple-primary);
    background: var(--purple-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    border-bottom: 1px solid var(--purple-primary);
}

/* FAQ Specific Styles */
.faq-question {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.faq-question::before {
    content: 'Q:';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-primary);
    color: var(--purple-primary);
    padding: 0 10px;
    font-weight: bold;
    font-size: 0.8rem;
}

.faq-answer {
    background: rgba(16, 16, 30, 0.5);
    border-left: 3px solid var(--purple-primary);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

/* Article content styling */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Code blocks */
code {
    background: rgba(26, 26, 46, 0.5);
    color: var(--purple-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

/* Navigation breadcrumbs */
.breadcrumb {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: var(--text-muted);
    border: none;
}

.breadcrumb a:hover {
    color: var(--purple-primary);
}

/* Footer */
.article-footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    header {
        margin: -1rem -1rem 2rem -1rem;
    }
    
    nav ul {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .faq-question, .faq-answer {
        padding: 1rem;
    }
}