/* shared.css — QWK Brand System v6.0 | Shared components only */
:root {
    --bg-deep: #0a0a0f;
    --bg-surface: #141420;
    --bg-card: rgba(26,26,46,0.8);
    --bg-card-hover: rgba(30,30,54,0.9);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(6,182,212,0.3);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #06b6d4;
    --accent-primary-dim: rgba(6,182,212,0.15);
    --accent-gold: #d4af37;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;
    --shadow-subtle: 0 4px 24px rgba(0,0,0,0.3);
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px;
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 200ms ease; --transition-slow: 400ms ease;
}

/* === Base Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--bg-deep); color: var(--text-primary); line-height: 1.6; padding-top: 48px; padding-bottom: 32px; }
a { color: var(--accent-primary); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Nav (fixed top) === */
.shared-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 48px; background: rgba(10,10,15,0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.shared-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; height: 100%; }
.shared-nav-logo { display: flex; align-items: center; gap: 8px; }
.shared-nav-logo img { height: 28px; }
.shared-nav-logo span { font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--accent-gold); }
.shared-nav-links { display: flex; gap: 24px; }
.shared-nav-links a { color: var(--text-muted); font-size: 13px; font-weight: 500; transition: var(--transition); }
.shared-nav-links a:hover { color: var(--text-primary); }
.shared-nav-links a.active { color: var(--accent-primary); }
.shared-nav-toggle { display: none; background: none; border: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; }

/* === Footer (4-column) === */
.shared-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: var(--bg-deep); }
.shared-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.shared-footer-tagline { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; font-style: italic; }
.shared-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.shared-footer-col h4 { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.shared-footer-col a { display: block; color: var(--text-muted); font-size: 13px; padding: 4px 0; transition: var(--transition); }
.shared-footer-col a:hover { color: var(--accent-primary); }
.shared-footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; text-align: center; }
.shared-footer-bottom p { font-size: 11px; color: var(--text-muted); }
.shared-footer-badges { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.footer-legal-compact { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 24px; }
.footer-legal-compact p { font-size: 11px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.footer-legal-compact strong { color: var(--text-secondary); font-weight: 600; }

/* === Ops-bar v5.0 (bottom fixed) === */
.ops-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; height: 32px; background: rgba(10,14,39,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-family: var(--font-mono); font-size: 11px; }
.ops-bar-status { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.ops-bar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-success); }
.ops-bar-metrics { color: var(--text-muted); }

/* === i18n Selector === */
.i18n-selector { position: relative; display: inline-flex; }
.i18n-btn { background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 10px; color: var(--text-muted); font-size: 12px; cursor: pointer; font-family: var(--font-body); transition: var(--transition); }
.i18n-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.i18n-dropdown { position: absolute; top: calc(100% + 4px); right: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; display: none; z-index: 1001; min-width: 100px; }
.i18n-dropdown.open { display: block; }
.i18n-option { display: block; width: 100%; padding: 6px 12px; border: none; background: transparent; color: var(--text-secondary); font-size: 12px; cursor: pointer; text-align: left; font-family: var(--font-body); transition: var(--transition); }
.i18n-option:hover { background: var(--accent-primary-dim); color: var(--text-primary); }
.i18n-option.active { color: var(--accent-primary); }

/* === Glassmorphism Card Base === */
.glass-card { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-md); transition: var(--transition); }
.glass-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-subtle); }

/* === Language Bar (capsule-style floating pill) === */
.lang-selector { position: fixed; top: 56px; right: 20px; z-index: 9999; display: flex; gap: 4px; padding: 4px; background: rgba(3,3,17,0.75); border: 1px solid var(--border); border-radius: 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang-btn { padding: 4px 10px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--text-muted); font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; line-height: 1.4; }
.lang-btn:hover { color: var(--text-secondary); background: rgba(255,255,255,0.04); }
.lang-btn.active { color: var(--accent-primary); border-color: var(--accent-primary); background: var(--accent-primary-dim); }

/* === Legal Section Halo Effect === */
.legal-section:hover { box-shadow: 0 0 20px rgba(6,182,212,0.08), 0 0 40px rgba(6,182,212,0.04), inset 0 0 20px rgba(6,182,212,0.03); }
.sidebar-toc a.halo-active { color: var(--accent-primary); border-left-color: var(--accent-primary); background: rgba(6,182,212,0.04); }

/* === Scroll Reveal (IntersectionObserver-driven) === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Animated Gradient Border (cards) === */
@keyframes border-pulse { 0%,100% { border-color: var(--border); } 50% { border-color: rgba(6,182,212,0.18); } }
.border-animate { animation: border-pulse 4s ease-in-out infinite; }
.border-animate:hover { animation: none; border-color: var(--accent-primary); }

/* === Shimmer Sweep === */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.03) 50%, transparent 75%); background-size: 200% 100%; animation: shimmer 3s ease-in-out infinite; pointer-events: none; }

/* === HUD Scanline Overlay === */
.hud-scan { position: relative; overflow: hidden; }
.hud-scan::before { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(6,182,212,0.12), transparent); animation: scanline 4s linear infinite; pointer-events: none; z-index: 1; }
@keyframes scanline { 0% { top: -1px; } 100% { top: 100%; } }

/* === SVG Path Animation (architecture lines) === */
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.svg-animate path { stroke-dasharray: 300; stroke-dashoffset: 300; }
.svg-animate.visible path { animation: draw-line 1.5s ease forwards; }

/* === Responsive === */
@media (max-width: 768px) {
    .shared-nav-links { display: none; }
    .shared-nav-links.open { display: flex; position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: rgba(3,0,20,0.97); backdrop-filter: blur(20px); z-index: 1000; }
    .shared-nav-links.open a { font-size: 1.1rem; color: var(--text-primary); }
    .shared-nav-toggle { display: flex; }
    .shared-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .ops-bar { font-size: 10px; }
}

/* === Typography Scale === */
.text-xs { font-size: 12px; } .text-sm { font-size: 14px; } .text-base { font-size: 16px; }
.text-lg { font-size: 18px; } .text-xl { font-size: 22px; } .text-2xl { font-size: 28px; }
.text-3xl { font-size: 36px; } .text-4xl { font-size: 48px; }

/* === Spacing === */
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 48px 0; }

/* === Scroll Animations === */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === Trust Badges === */
.trust-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.trust-badge { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); background: rgba(20,20,32,0.5); }

/* === Legal Disclosures Footer === */
.legal-disclosures { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 40px 0 24px; }
.legal-disclosures-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.legal-disclosures-header { text-align: center; margin-bottom: 28px; }
.legal-disclosures-header h3 { font-family: var(--font-heading); font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.legal-disclosures-header p { font-size: 12px; color: var(--text-muted); font-style: italic; }
.legal-disclosures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 24px; }
.legal-disclosure-col h4 { font-family: var(--font-heading); font-size: 11px; font-weight: 600; color: var(--accent-warning); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(245,158,11,0.15); }
.legal-disclosure-col p { font-size: 11px; color: var(--text-muted); line-height: 1.65; }
.legal-disclosures-bottom { border-top: 1px solid var(--border); padding-top: 16px; text-align: center; }
.legal-disclosures-bottom p { font-size: 10px; color: var(--text-muted); line-height: 1.6; }
.legal-disclosures-bottom .legal-copyright { margin-top: 8px; font-weight: 500; color: var(--text-secondary); }

/* === Responsive === */
@media (max-width: 768px) {
    .shared-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .shared-nav-links { display: none; }
    .shared-nav-toggle { display: block; }
    .legal-disclosures-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
    .shared-footer-grid { grid-template-columns: 1fr; }
    .lang-selector { top: 56px; right: 8px; }
    .legal-disclosures { padding: 28px 0 16px; }
}
