/* Space Mission Command HUD Style */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --hud-bg: #020617;
    --hud-panel: rgba(15, 23, 42, 0.8);
    --hud-border: #1e40af;
    --hud-cyan: #06b6d4;
    --hud-orange: #f97316;
    --hud-text: #94a3b8;
    --hud-white: #f8fafc;
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--hud-bg);
    color: var(--hud-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; color: var(--hud-white); text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border: 1px solid var(--hud-border); filter: sepia(100%) hue-rotate(180deg) saturate(200%) brightness(80%); }
img:hover { filter: none; }

/* HUD Panel Base */
.hud-panel {
    background: var(--hud-panel);
    border: 1px solid var(--hud-border);
    position: relative;
    backdrop-filter: blur(10px);
}
/* HUD Corners */
.hud-panel::before, .hud-panel::after {
    content: ''; position: absolute; width: 15px; height: 15px;
}
.hud-panel::before { top: -1px; left: -1px; border-top: 2px solid var(--hud-cyan); border-left: 2px solid var(--hud-cyan); }
.hud-panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--hud-cyan); border-right: 2px solid var(--hud-cyan); }

.hud-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--hud-bg);
    color: var(--hud-cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0 8px;
    border: 1px solid var(--hud-border);
}

/* Buttons */
.btn-hud {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    color: var(--hud-cyan);
    border: 1px solid var(--hud-cyan);
    font-family: var(--font-mono);
    padding: 10px 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-hud::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
    transition: 0.5s;
}
.btn-hud:hover::before { left: 100%; }
.btn-hud:hover { background: rgba(6, 182, 212, 0.2); color: var(--hud-white); box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }

.btn-hud-alert {
    background: rgba(249, 115, 22, 0.1);
    color: var(--hud-orange);
    border-color: var(--hud-orange);
}
.btn-hud-alert::before { background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent); }
.btn-hud-alert:hover { background: rgba(249, 115, 22, 0.2); color: var(--hud-white); box-shadow: 0 0 15px rgba(249, 115, 22, 0.5); }

/* Layout Structure */
.mission-control {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    padding: 20px;
    min-height: 100vh;
    max-width: 1800px;
    margin: 0 auto;
}

/* 1. Header (Top Bar) */
.mc-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}
.mc-brand {
    font-size: 2rem;
    color: var(--hud-white);
    display: flex;
    align-items: center;
    gap: 15px;
}
.mc-brand span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--hud-orange); border: 1px solid var(--hud-orange); padding: 2px 6px; }
.mc-nav { display: flex; gap: 30px; font-family: var(--font-mono); }
.mc-nav a:hover { color: var(--hud-cyan); text-shadow: 0 0 8px var(--hud-cyan); }
.mc-status { font-family: var(--font-mono); font-size: 0.85rem; display: flex; align-items: center; gap: 15px; }
.status-dot { width: 8px; height: 8px; background: var(--hud-cyan); border-radius: 50%; box-shadow: 0 0 8px var(--hud-cyan); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* 2. Left Panel (Systems / Features) */
.mc-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.system-module {
    padding: 30px 20px;
}
.sys-icon { margin-bottom: 15px; }
.system-module h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--hud-cyan); }
.system-module p { font-size: 1rem; }

/* 3. Center Panel (Main Radar & Content) */
.mc-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hero-radar {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
}
.hero-radar h1 { font-size: 4rem; margin-bottom: 20px; text-shadow: 0 0 20px rgba(6, 182, 212, 0.5); }
.hero-radar p { font-size: 1.2rem; max-width: 600px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 20px; margin-bottom: 30px; }
.trust-data { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--hud-cyan); }

.nodes-map {
    padding: 40px;
}
.nodes-map h3 { margin-bottom: 20px; font-size: 1.5rem; text-align: center; }
.node-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.node-item { border: 1px solid var(--hud-border); padding: 10px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.9rem; background: rgba(0,0,0,0.3); }
.node-item .ping { color: var(--hud-orange); }

.comms-log {
    padding: 40px;
}
.comms-log h3 { margin-bottom: 20px; font-size: 1.5rem; }
.log-entry { border-left: 2px solid var(--hud-cyan); padding-left: 15px; margin-bottom: 20px; }
.log-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--hud-orange); margin-bottom: 5px; }
.log-text { font-size: 1.1rem; font-style: italic; color: var(--hud-white); }

/* 4. Right Panel (Telemetry & Resources) */
.mc-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.telemetry-data {
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.tel-metric { text-align: center; border: 1px solid var(--hud-border); padding: 15px 5px; background: rgba(0,0,0,0.3); }
.tel-val { font-family: var(--font-mono); font-size: 1.8rem; color: var(--hud-cyan); font-weight: 700; line-height: 1; margin-bottom: 5px; }
.tel-lbl { font-size: 0.75rem; text-transform: uppercase; }

.resource-alloc {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.alloc-tier { border: 1px solid var(--hud-border); padding: 20px; background: rgba(0,0,0,0.3); }
.alloc-tier.prime { border-color: var(--hud-orange); box-shadow: inset 0 0 20px rgba(249, 115, 22, 0.1); }
.tier-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--hud-border); padding-bottom: 10px; }
.tier-name { font-family: var(--font-mono); font-size: 1.1rem; color: var(--hud-white); }
.tier-price { font-family: var(--font-mono); font-size: 1.5rem; color: var(--hud-cyan); }
.alloc-tier.prime .tier-price { color: var(--hud-orange); }
.tier-specs { list-style: none; font-size: 0.9rem; margin-bottom: 20px; }
.tier-specs li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tier-specs li::before { content: '>'; font-family: var(--font-mono); color: var(--hud-cyan); }

/* 5. Footer (Manual & Legal) */
.mc-footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.manual-faq {
    padding: 40px;
}
.manual-faq h3 { margin-bottom: 20px; font-size: 1.5rem; }
.faq-q { font-family: var(--font-mono); font-size: 1.1rem; color: var(--hud-cyan); margin-bottom: 10px; }
.faq-q::before { content: '[?] '; }
.faq-a { margin-bottom: 20px; padding-left: 25px; border-left: 1px solid var(--hud-border); }

.legal-ops {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.legal-links { display: flex; gap: 30px; margin-bottom: 20px; font-family: var(--font-mono); }
.legal-links a:hover { color: var(--hud-cyan); }
.sys-copy { font-family: var(--font-mono); font-size: 0.8rem; color: var(--hud-text); }

/* Subpages */
.sub-center { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 20px; }
.sub-hero { padding: 60px; text-align: center; }
.sub-hero h1 { font-size: 3rem; margin-bottom: 15px; }

.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dl-card { padding: 40px; text-align: center; }
.dl-icon { font-size: 3rem; margin-bottom: 20px; }
.dl-card h3 { margin-bottom: 10px; color: var(--hud-cyan); }
.dl-card p { margin-bottom: 20px; font-family: var(--font-mono); font-size: 0.9rem; }

.help-content { padding: 40px; }
.help-section { margin-bottom: 40px; }
.help-section h3 { font-size: 1.5rem; color: var(--hud-orange); border-bottom: 1px solid var(--hud-border); padding-bottom: 10px; margin-bottom: 20px; }
.help-section h4 { font-size: 1.1rem; margin-bottom: 10px; margin-top: 20px; }
.help-section p, .help-section li { margin-bottom: 10px; }
.help-section ul { padding-left: 20px; }

/* Responsive */
@media (max-width: 1400px) {
    .mission-control { grid-template-columns: 250px 1fr 300px; }
}
@media (max-width: 1024px) {
    .mission-control { grid-template-columns: 1fr; grid-template-rows: auto; }
    .mc-header { flex-direction: column; gap: 20px; }
    .mc-nav { flex-wrap: wrap; justify-content: center; }
    .mc-left, .mc-right { display: grid; grid-template-columns: repeat(2, 1fr); }
    .mc-footer { grid-template-columns: 1fr; }
    .sub-center { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .mc-left, .mc-right { grid-template-columns: 1fr; }
    .hero-radar h1 { font-size: 2.5rem; }
    .node-list { grid-template-columns: 1fr; }
    .dl-grid { grid-template-columns: 1fr; }
    .trust-data { flex-direction: column; align-items: center; }
}
