/* AeroCoast Sentinel - Tactical Industrial Console Stylesheet
   Designed for IslanderHack 2026 (TAMU-CC)
   Grandma Theory UI: Mission-Critical, High-Contrast Dark Console
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Tactical High-Contrast Console Palette */
  --bg-primary: #070b12;
  --bg-card: #0b111e;
  --bg-card-subtle: #111a2d;
  --bg-card-hover: #16223b;
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-tactical: #1e293b;
  --border-tactical-glow: rgba(6, 182, 212, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Centered root console container utilities */
.console-root-container {
  width: 100%;
  max-width: 80rem; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .console-root-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .console-root-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Tactical military/industrial carbon grid pattern */
.bg-grid-pattern {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 65%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

/* Canvas viewport styling */
#viewport-container {
  position: relative;
  width: 100%;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(56, 189, 248, 0.25);
}

#optical-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
}

/* Tactical Scanlines */
.scanlines::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.3) 50%);
  background-size: 100% 4px;
  z-index: 20;
  pointer-events: none;
  opacity: 0.4;
}

/* Glowing HUD Badges */
.badge-glow-emerald {
  box-shadow: 0 0 16px -2px rgba(16, 185, 129, 0.5);
}

.badge-glow-amber {
  box-shadow: 0 0 16px -2px rgba(245, 158, 11, 0.5);
}

.badge-glow-rose {
  box-shadow: 0 0 16px -2px rgba(244, 63, 94, 0.6);
}

.badge-glow-cyan {
  box-shadow: 0 0 16px -2px rgba(6, 182, 212, 0.5);
}

/* Tactical Glass Panels */
.glass-panel {
  background: rgba(11, 17, 30, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(51, 65, 85, 0.75);
}

.glass-panel-accent {
  background: linear-gradient(135deg, rgba(11, 17, 30, 0.98), rgba(20, 31, 52, 0.9));
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.panel-led-active {
  position: relative;
}

.panel-led-active::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* High contrast tactical typography */
.tactical-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.tactical-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Animations */
@keyframes blink-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.animate-blink-slow {
  animation: blink-slow 2s infinite ease-in-out;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #070b12;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
