/* Mission Control Cyberpunk Theme */

:root {
  /* Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #161b2e;
  --bg-tertiary: #1e2538;

  /* Accents */
  --accent-cyan: #00f5ff;
  --accent-magenta: #ff0080;
  --accent-yellow: #ffaa00;
  --accent-green: #00ff41;

  /* Text */
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-dim: #6b7280;

  /* Glows */
  --glow-cyan: 0 0 10px rgba(0, 245, 255, 0.5), 0 0 20px rgba(0, 245, 255, 0.3);
  --glow-magenta: 0 0 10px rgba(255, 0, 128, 0.5), 0 0 20px rgba(255, 0, 128, 0.3);
  --glow-yellow: 0 0 10px rgba(255, 170, 0, 0.5), 0 0 20px rgba(255, 170, 0, 0.3);
  --glow-green: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scanlines Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
}

/* CRT Flicker */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
}

.crt-flicker {
  animation: flicker 0.15s infinite;
}

/* Header Styles */
header {
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-aethex {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

.logo-separator {
  color: var(--text-dim);
}

.logo-subtitle {
  color: var(--text-secondary);
}

.header-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

.status-text {
  color: var(--text-secondary);
}

.metric-value {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

/* Cards */
.card {
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: var(--bg-secondary);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.card.cyan {
  border-color: rgba(0, 245, 255, 0.3);
}

.card.magenta {
  border-color: rgba(255, 0, 128, 0.3);
}

.card.yellow {
  border-color: rgba(255, 170, 0, 0.3);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

/* Metrics Dashboard */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: var(--bg-secondary);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.metric-card.cyan {
  border-color: rgba(0, 245, 255, 0.3);
}

.metric-card.magenta {
  border-color: rgba(255, 0, 128, 0.3);
}

.metric-card.yellow {
  border-color: rgba(255, 170, 0, 0.3);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.metric-title {
  font-size: 1.125rem;
  font-weight: bold;
}

.metric-title.cyan {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

.metric-title.magenta {
  color: var(--accent-magenta);
  text-shadow: var(--glow-magenta);
}

.metric-title.yellow {
  color: var(--accent-yellow);
  text-shadow: var(--glow-yellow);
}

.metric-status {
  font-size: 0.75rem;
  font-weight: bold;
}

.status-operational {
  color: var(--accent-green);
}

.status-experimental {
  color: var(--accent-yellow);
}

.status-offline {
  color: #ff4444;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--text-dim);
}

.metric-value {
  color: var(--text-primary);
}

/* Interactive Map */
.map-container {
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: var(--bg-secondary);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.map-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

svg circle {
  transition: all 0.3s ease;
  cursor: pointer;
}

svg circle:hover {
  filter: brightness(1.3);
}

svg text {
  font-size: 12px;
  fill: currentColor;
  pointer-events: none;
}

/* Console */
.console-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(0, 245, 255, 0.5);
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.console-output {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--accent-green);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.4;
}

.console-output div {
  white-space: pre-wrap;
  word-break: break-all;
}

.console-input-area {
  padding: 1rem;
  border-top: 1px solid rgba(0, 245, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.console-prompt {
  color: var(--accent-cyan);
}

.console-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--accent-green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  outline: none;
}

.console-input::placeholder {
  color: var(--text-dim);
}

.cursor-blink {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: var(--accent-cyan);
  animation: blink 1s infinite;
  margin-left: 0.25rem;
}

/* Blink Animation */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Glow Text */
.glow-cyan {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

.glow-magenta {
  color: var(--accent-magenta);
  text-shadow: var(--glow-magenta);
}

.glow-yellow {
  color: var(--accent-yellow);
  text-shadow: var(--glow-yellow);
}

.glow-green {
  color: var(--accent-green);
  text-shadow: var(--glow-green);
}

/* Buttons */
button, a.button, input[type="submit"] {
  border: 1px solid rgba(0, 245, 255, 0.5);
  background: rgba(0, 245, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover, a.button:hover, input[type="submit"]:hover {
  background: rgba(0, 245, 255, 0.2);
  border-color: rgba(0, 245, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

button:active, a.button:active, input[type="submit"]:active {
  transform: scale(0.98);
}

button.magenta, a.button.magenta {
  border-color: rgba(255, 0, 128, 0.5);
  background: rgba(255, 0, 128, 0.1);
  color: var(--accent-magenta);
}

button.magenta:hover, a.button.magenta:hover {
  background: rgba(255, 0, 128, 0.2);
  border-color: rgba(255, 0, 128, 0.8);
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

/* Form Elements */
input[type="email"],
input[type="text"],
textarea {
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* Footer */
footer {
  border-top: 1px solid rgba(0, 245, 255, 0.3);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-dim);
}

footer div {
  margin-bottom: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  padding: 0.75rem;
  text-align: left;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

td {
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 0.75rem;
  border-left: none;
  border-right: none;
}

tr:hover {
  background: rgba(0, 245, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-info {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .grid-3,
  .grid-2,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1rem;
  }

  section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .console-container {
    max-height: 300px;
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
