/* Shared styles for pages added after the first release (tools, glossary, updates, 404...). */
:root {
    --bg-deep: #05070a;
    --panel-bg: rgba(13, 17, 23, 0.7);
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
}
body {
    background-color: var(--bg-deep);
    color: #f1f5f9;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 40px 40px;
}
.mono { font-family: 'JetBrains Mono', monospace; }
.glass-panel, .bento-card {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.bento-card { padding: 2rem; position: relative; }
.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-blue);
    margin-bottom: 1.25rem;
    display: block;
    font-weight: 700;
}
.scanline {
    width: 100%; height: 100px; z-index: 10;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(59,130,246,0.05) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1; position: fixed; pointer-events: none; animation: scan 8s linear infinite;
}
@keyframes scan { from { top: -100px; } to { top: 100vh; } }
.btn-tactical {
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: all 0.2s ease; cursor: pointer; color: #fff;
}
.btn-tactical:hover { filter: brightness(1.2); transform: skewX(-2deg); }
.nav-dropdown {
    position: absolute; top: calc(100% + 1rem); right: 0; width: 260px; z-index: 50;
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; text-align: left;
}
.nav-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.dropdown-item {
    display: flex; align-items: center; gap: 12px; padding: 0.85rem 1rem; color: #94a3b8;
    transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.03); text-decoration: none;
    width: 100%; background: transparent; text-align: left; cursor: pointer;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(59, 130, 246, 0.05); color: white; padding-left: 1.25rem; }
.dropdown-item i { width: 16px; text-align: center; font-size: 0.9rem; color: var(--accent-blue); }

/* form controls */
.field {
    width: 100%; padding: 0.85rem 1rem; background: rgba(0, 0, 0, 0.4); color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; font-size: 1rem;
}
.field:focus { outline: none; border-color: var(--accent-blue); }
.choice {
    display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; cursor: pointer;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
}
.choice:hover { border-color: rgba(59, 130, 246, 0.5); }
.choice input { margin-top: 0.3rem; accent-color: #3b82f6; }
.meter { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; }
.meter > div { height: 100%; width: 0; background: var(--accent-blue); transition: width 0.4s ease; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.25rem; font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em;
    background: rgba(59, 130, 246, 0.1); color: #f1f5f9; border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px; cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.btn:hover { background: #2563eb; color: #fff; }
.prose-lsb a { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; }
.prose-lsb a:hover { color: #93c5fd; }
:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
