/* =============================================================================
   PCB Theme :: Shared CSS Variables & Base Components
   Used by both Jinja2 pages and Vue components
   ============================================================================= */

:root {
  --bg: #0b0c10;
  --surface: #14161c;
  --surface-2: #1a1d25;
  --text: #c5c6c8;
  --text-bright: #e0e1e3;
  --muted: #6b6e7a;
  --copper: #c87533;
  --copper-dim: rgba(200, 117, 51, 0.35);
  --copper-glow: rgba(200, 117, 51, 0.12);
  --brass: #b8860b;
  --solder: #7a8450;
  --pcb-green: #0f1e0f;
  --pcb-green-bright: #1a3a1a;
  --success: #5a9a3c;
  --error: #c0392b;
  --warning: #d4a017;
  --border: #2a2d35;
  --border-metal: #3a3d45;
  --rivet: #55585f;
  --trace: rgba(200, 117, 51, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 1.05rem;
  color: var(--text);
  min-height: 100vh;
  background-color: #c8ccd0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50h20v-20h20v40h20v-20h20v-20h20' fill='none' stroke='rgba(220,170,130,0.38)' stroke-width='1.5'/%3E%3Cpath d='M50 0v20h20v20h-40v20h20v40' fill='none' stroke='rgba(220,170,130,0.32)' stroke-width='1.5'/%3E%3Cpath d='M10 10h10v10h-10z' fill='none' stroke='rgba(220,170,130,0.28)' stroke-width='1'/%3E%3Cpath d='M70 70h10v10h-10z' fill='none' stroke='rgba(220,170,130,0.28)' stroke-width='1'/%3E%3Ccircle cx='20' cy='30' r='3' fill='rgba(220,170,130,0.38)'/%3E%3Ccircle cx='50' cy='50' r='3.5' fill='rgba(220,170,130,0.42)'/%3E%3Ccircle cx='80' cy='20' r='3' fill='rgba(220,170,130,0.38)'/%3E%3Ccircle cx='30' cy='80' r='2.5' fill='rgba(220,170,130,0.32)'/%3E%3Ccircle cx='70' cy='70' r='2' fill='rgba(220,170,130,0.32)'/%3E%3Ccircle cx='20' cy='50' r='1.5' fill='rgba(220,170,130,0.50)'/%3E%3Ccircle cx='60' cy='20' r='1.5' fill='rgba(220,170,130,0.50)'/%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(220,170,130,0.45)'/%3E%3Ccircle cx='80' cy='50' r='1.5' fill='rgba(220,170,130,0.45)'/%3E%3Cpath d='M0 90h15l5-5h10l5 5h15l5-5h10l5 5h30' fill='none' stroke='rgba(220,170,130,0.22)' stroke-width='0.8'/%3E%3C/svg%3E"),
    linear-gradient(135deg,
      #b8bcc0 0%,
      #e4e6e8 18%,
      #a8acb0 38%,
      #f0f2f4 50%,
      #a8acb0 62%,
      #e4e6e8 82%,
      #b8bcc0 100%);
  background-attachment: fixed;
}

/* --- Nav: barra de metal industrial --- */
.top-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-bottom: 2px solid var(--copper-dim);
  background:
    linear-gradient(180deg, #1c1e24 0%, #111318 100%);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 3px 15px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border-right: 1px solid var(--border-metal);
  color: var(--copper);
  font-family: "Black Ops One", cursive;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(200,117,51,0.3);
}

.nav-brand-icon {
  font-size: 1.4rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  border-right: 1px solid var(--border);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--copper);
  background: rgba(200,117,51,0.06);
  outline: none;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--copper);
  box-shadow: 0 0 6px rgba(200,117,51,0.5);
}

.nav-spacer { flex: 1; }

.nav-status {
  padding: 0.7rem 1.2rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 0.4rem;
  box-shadow: 0 0 6px rgba(90,154,60,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.container {
  width: min(1100px, 96vw);
  margin: 1.5rem auto 2rem;
}
