/*
Theme Name: ZeroTrust Imperial
Theme URI: https://zerotrustrobotics.com
Author: Imperial Infrastructure
Description: Elite Cyber-Security Full-Stack WordPress Theme.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: zerotrust-imperial
*/

:root {
    --primary: #ff0000;
    --primary-glow: rgba(255, 0, 0, 0.5);
    --bg: #000000;
    --card-bg: rgba(10, 10, 10, 0.8);
    --text: #e0e0e0;
    --text-dim: #888888;
    --border: #220000;
    --glass: rgba(20, 20, 20, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: 'Inter', -apple-system, sans-serif; 
    overflow-x: hidden;
    cursor: crosshair;
}

/* Biometric Vault Overlay */
#vault-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 1s cubic-bezier(0.85, 0, 0.15, 1);
}
#vault-overlay.unlocked { transform: translateY(-100%); }
.vault-btn {
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}
.vault-btn:hover { box-shadow: 0 0 30px var(--primary); }
.vault-btn svg { width: 50px; height: 50px; color: var(--primary); }
.vault-status { margin-top: 20px; font-family: monospace; color: var(--primary); letter-spacing: 5px; text-transform: uppercase; }

/* Laser Scan */
#laser-scan {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    z-index: 9999;
    pointer-events: none;
}
@keyframes scan {
    0% { top: -5%; }
    50% { top: 100%; }
    100% { top: -5%; opacity: 0; visibility: hidden; }
}

/* Layout */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.logo { font-weight: 900; font-size: 24px; letter-spacing: -1px; color: #fff; text-decoration: none; }
.logo span { color: var(--primary); }

nav a { color: var(--text-dim); text-decoration: none; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-left: 25px; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

main { padding-top: 100px; max-width: 1400px; margin: 0 auto; min-height: 100vh; }

/* Hero */
#hero { height: 60vh; display: flex; align-items: center; justify-content: center; position: relative; }
#three-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content h1 { font-size: 70px; font-weight: 900; letter-spacing: -4px; margin-bottom: 10px; color: #fff; }
.hero-content p { font-family: monospace; color: var(--text-dim); letter-spacing: 5px; text-transform: uppercase; }

/* Grid */
.content-section { display: flex; gap: 40px; padding: 40px; }
.sidebar { width: 280px; flex-shrink: 0; }
.sidebar h3 { font-size: 10px; text-transform: uppercase; color: var(--primary); letter-spacing: 3px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.cat-list { list-style: none; }
.cat-list li a { display: block; padding: 12px; color: var(--text-dim); text-decoration: none; border-left: 2px solid transparent; transition: 0.3s; font-size: 13px; font-family: monospace; }
.cat-list li a:hover, .cat-list li a.active { border-color: var(--primary); background: rgba(255,0,0,0.05); color: #fff; }

.article-grid { flex: 1; display: grid; grid-template-cols: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.article-card { background: var(--card-bg); border: 1px solid var(--border); padding: 30px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; color: inherit; position: relative; overflow: hidden; }
.article-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--primary); transform: scaleX(0); transition: 0.4s; transform-origin: left; }
.article-card:hover { border-color: var(--primary); transform: translateY(-10px); background: rgba(20,0,0,0.4); }
.article-card:hover::before { transform: scaleX(1); }
.article-card .cat-tag { font-size: 9px; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; font-weight: bold; }
.article-card h2 { font-size: 22px; margin-bottom: 15px; line-height: 1.1; color: #fff; }
.article-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* Reading Mode */
.reading-mode { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.reading-mode img { width: 100%; height: 500px; object-fit: cover; border: 1px solid var(--border); margin-bottom: 40px; filter: grayscale(100%) contrast(120%); }
.reading-mode h1 { font-size: 55px; margin-bottom: 30px; color: #fff; letter-spacing: -2px; }
.reading-mode .meta { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 25px 0; margin-bottom: 40px; font-size: 11px; color: var(--text-dim); text-transform: uppercase; font-family: monospace; }
.reading-mode .meta span { display: flex; align-items: center; gap: 8px; }
.reading-mode .content { line-height: 1.8; font-size: 18px; color: #bbb; }
.reading-mode .content h3, .reading-mode .content h4 { color: #fff; margin: 40px 0 20px; text-transform: uppercase; letter-spacing: 2px; }
.reading-mode .content p { margin-bottom: 25px; }

/* Static Pages */
.static-page { max-width: 1000px; margin: 0 auto; padding: 80px 40px; }
.static-page h1 { font-size: 60px; color: #fff; margin-bottom: 40px; letter-spacing: -3px; }
.glass-form { background: var(--glass); border: 1px solid var(--border); padding: 40px; border-radius: 4px; backdrop-filter: blur(10px); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 10px; text-transform: uppercase; color: var(--primary); letter-spacing: 2px; margin-bottom: 10px; }
.form-group input, .form-group textarea { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--border); padding: 15px; color: #fff; transition: 0.3s; font-family: monospace; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 15px var(--primary-glow); }
.submit-btn { background: var(--primary); color: #fff; border: none; padding: 15px 40px; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: #fff; color: #000; }

/* Terminal */
#terminal { position: fixed; bottom: 30px; left: 30px; width: 380px; background: rgba(0,0,0,0.9); border: 1px solid var(--border); padding: 20px; font-family: monospace; font-size: 11px; z-index: 100; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.term-header { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.term-body { height: 150px; overflow-y: auto; scrollbar-width: none; }
.term-line { margin-bottom: 8px; }
.term-trusted { color: #00ff00; }
.term-verify { color: var(--primary); }

/* Threat Map */
.threat-map-container { margin-top: 40px; border: 1px solid var(--border); padding: 25px; background: rgba(255,0,0,0.02); }
.threat-map-container h4 { font-size: 9px; color: var(--primary); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; }
.map-svg { width: 100%; height: 180px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 60px 40px; background: #050505; }
.footer-grid { display: grid; grid-template-cols: repeat(4, 1fr); gap: 40px; max-width: 1400px; margin: 0 auto; }
.footer-col h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 25px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-dim); text-decoration: none; font-size: 13px; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary); }
.copyright { margin-top: 60px; text-align: center; font-size: 10px; color: var(--text-dim); font-family: monospace; letter-spacing: 2px; }

/* Particles */
#particles-canvas { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .content-section { flex-direction: column; padding: 20px; }
    .sidebar { width: 100%; order: 2; }
    .article-grid { order: 1; }
    .hero-content h1 { font-size: 45px; letter-spacing: -2px; }
    .footer-grid { grid-template-cols: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { padding: 15px 20px; justify-content: center; }
    nav { display: none; } 
    main { padding-top: 80px; }
    .hero-content h1 { font-size: 32px; letter-spacing: -1px; }
    .hero-content p { font-size: 10px; letter-spacing: 2px; }
    .reading-mode h1 { font-size: 28px; line-height: 1.2; }
    .reading-mode img { height: 250px; }
    .reading-mode .meta { gap: 10px; padding: 15px 0; }
    .footer-grid { grid-template-cols: 1fr; text-align: center; }
    #terminal { width: calc(100% - 40px); left: 20px; bottom: 10px; height: 100px; padding: 10px; }
    .term-body { height: 60px; }
    .static-page h1 { font-size: 32px; }
    .glass-form { padding: 20px; }
    .content-section { padding: 10px; gap: 20px; }
    .article-card { padding: 20px; }
    .article-card h2 { font-size: 18px; }
}
