/* NEXUS MARKET - V8 INDUSTRIAL CSS [WITH IMG FX] */
:root {
    --bg-color: #0a0a0a;
    --panel-bg: #111;
    --text-main: #e0e0e0;
    --text-muted: #666;
    --accent: #ff2a2d; /* Nexus Red */
    --accent-dim: rgba(255, 42, 45, 0.2);
    --border: #333;
    --font-main: 'Inter', sans-serif;
    --font-ui: 'Share Tech Mono', monospace;
    --sidebar-width: 260px;
}

/* Base Reset */
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 50% 50%, #151515 0%, #0a0a0a 100%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDIiLz4KPC9zdmc+');
}

/* Links */
a { color: var(--accent); text-decoration: none; transition: 0.2s; }
a:hover { text-shadow: 0 0 8px var(--accent); letter-spacing: 0.5px; }

/* Typography */
h1, h2, h3 { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1px; margin-top: 0; }
h1 { font-size: 2.2rem; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 20px; }
h2 { font-size: 1.5rem; color: #fff; margin-top: 30px; border-left: 4px solid var(--accent); padding-left: 15px; }
.mono { font-family: var(--font-ui); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-wrapper { display: flex; gap: 30px; margin-top: 30px; min-height: 80vh; }
main { flex: 1; min-width: 0; }

/* Header HUD */
.hud-header {
    background: #000;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}
.logo { font-family: var(--font-ui); font-size: 1.8rem; font-weight: bold; letter-spacing: 2px; color: #fff; }
.logo span { color: var(--accent); }

/* Sidebar */
.sidebar { width: var(--sidebar-width); flex-shrink: 0; }
.nav-link {
    display: block;
    padding: 10px 15px;
    border-left: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    margin-bottom: 5px;
    background: linear-gradient(90deg, transparent 0%, transparent 100%);
}
.nav-link:hover, .nav-link.active {
    border-left: 3px solid var(--accent);
    color: #fff;
    background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 100%);
    padding-left: 20px;
}

/* Panels */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Table */
table { width: 100%; border-collapse: collapse; margin-top: 15px; font-family: var(--font-ui); }
th, td { border: 1px solid #333; padding: 12px; text-align: left; }
th { background: #1a1a1a; color: var(--accent); }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 12px 25px;
    font-family: var(--font-ui);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}
.btn:hover { background: #fff; box-shadow: 0 0 15px var(--accent); }

/* Footer */
footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h3 { font-size: 1rem; color: var(--accent); margin-bottom: 15px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; font-family: var(--font-ui); color: #888; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: #00ff00; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 5px #00ff00; }

/* --- CYBERPUNK IMAGE FX (NEW) --- */
.img-container {
    position: relative;
    margin: 2rem 0;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #000;
}
.img-container::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
}
.img-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(255, 42, 45, 0.2) 100%);
    z-index: 3;
    pointer-events: none;
}
img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
    filter: contrast(1.2) grayscale(40%) sepia(20%) hue-rotate(-10deg);
    transition: all 0.5s ease;
}
.img-container:hover img {
    opacity: 1;
    filter: contrast(1.1) grayscale(0%) sepia(0%);
    transform: scale(1.02);
}
.img-container:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 42, 45, 0.15);
}
.caption {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent);
    color: #000;
    padding: 2px 10px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    z-index: 4;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
}
