/* WVAT - Console Command Design System */
/* BASE.CSS - Variables, Resets, Navigation, Layout */

:root {
  /* The Void Palette */
  --bg-void: #0D1117;
  --bg-panel: #161B22;
  --bg-elevated: #1C2128;
  --border-tech: #30363D;

  /* Text */
  --text-bright: #F0F6FC;
  --text-dim: #8B949E;
  --text-code: #00E396;

  /* The Neon Accents */
  --neon-green: #00E396;
  --neon-cyan: #00E5FF;
  --neon-pink: #FF0055;
  --neon-yellow: #FFD600;
  --neon-orange: #FF6B35;

  /* Fonts */
  --font-hud: 'Fira Code', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-void);
  color: var(--text-bright);
  font-family: var(--font-hud);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Scanline overlay effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 9999;
}

/* ===== TOP NAVIGATION - Command Strip ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-tech);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  font-family: var(--font-hud);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

.nav-logo .prompt {
  color: var(--neon-green);
}

.nav-logo .brand {
  color: var(--text-bright);
}

.nav-target {
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-target .label {
  color: var(--neon-cyan);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--neon-green);
}

.nav-link::after {
  content: '_';
  position: absolute;
  right: -8px;
  opacity: 0;
}

.nav-link:hover {
  color: var(--neon-green);
}

.nav-link:hover::before {
  content: '>';
  opacity: 1;
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-link.active {
  color: var(--neon-green);
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: 56px;
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border-tech);
  padding: 24px;
  margin-top: auto;
  text-align: center;
}

.footer-text {
  font-family: var(--font-hud);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-text .highlight {
  color: var(--neon-green);
}

/* ===== LINKS ===== */
a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--neon-green);
}

/* Navigation Icons & Dropdown */
.nav-icon-link {
  color: var(--text-dim);
  font-size: 18px;
  position: relative;
  transition: color 0.2s;
  padding: 8px;
  display: flex;
  align-items: center;
}

.nav-icon-link:hover {
  color: var(--neon-green);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  margin-top: 8px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  border-radius: 4px;
}

.dropdown-menu.show {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-tech);
  color: var(--text-bright);
  font-size: 13px;
  font-family: var(--font-hud);
}

.username {
  color: var(--neon-green);
  font-weight: 600;
  font-size: 14px;
}

.dropdown-item {
  padding: 12px 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font-hud);
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.2s;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--bg-elevated);
  color: var(--neon-cyan);
  padding-left: 20px;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--neon-green);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
