@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Vanguard Design System - Flat WebSim Build */

:root {
  --black: #0a0a0a;
  --red: #e63946;
  --gold: #f4a261;
  --silver: #a8a8a8;
  --white: #ffffff;
  --dark-red: #8b0000;
  
  --font-body: 'Montserrat', Arial, sans-serif;
  --font-header: 'Bebas Neue', Impact, sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  --border-radius: 4px;
  --transition: 0.2s ease;
}

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

body {
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.5rem; line-height: 1.2; }
h3 { font-size: 2rem; line-height: 1.2; }
h4 { font-size: 1.5rem; line-height: 1.3; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global font system */
html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

body,
p,
li,
a,
span,
small,
label,
button,
input,
select,
textarea,
.nav-link,
.btn,
.card,
.v-card {
  font-family: var(--font-body);
}

h1,
h2,
h3,
.hero-title,
.page-title,
.section-title,
.active-work-title,
.v-title,
.v-command-title {
  font-family: var(--font-header);
  letter-spacing: 0.04em;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--white);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

/* Layout */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.page {
  flex: 1;
  padding: var(--spacing-xl) 0;
}

/* Navigation */
.nav {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--silver);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-header);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  color: var(--silver);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.hero-eyebrow {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.hero-headline {
  margin-bottom: var(--spacing-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subhead {
  font-size: 1.25rem;
  color: var(--silver);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.hero-image {
  margin: var(--spacing-xl) 0;
  border: 1px solid var(--silver);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
}

/* Buttons */
.btn {
  --btn-accent: var(--gold);
  --btn-glow: rgba(244, 162, 97, 0.24);
  --btn-hover-bg: linear-gradient(135deg, rgba(244, 162, 97, 0.16), rgba(10, 10, 10, 0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.92rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(0,0,0,0.28));
  border: 1.5px solid var(--btn-accent);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(0,0,0,0.55),
    0 0 18px var(--btn-glow);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--white);
  background: var(--btn-hover-bg);
  border-color: var(--btn-accent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(0,0,0,0.65),
    0 0 26px var(--btn-glow);
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  --btn-accent: var(--red);
  --btn-glow: rgba(230, 57, 70, 0.28);
  --btn-hover-bg: linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(10, 10, 10, 0.96));
}

.btn-secondary {
  --btn-accent: var(--gold);
  --btn-glow: rgba(244, 162, 97, 0.25);
  --btn-hover-bg: linear-gradient(135deg, rgba(244, 162, 97, 0.18), rgba(10, 10, 10, 0.96));
  color: var(--gold);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--white);
}

.btn-green-outline {
  --btn-accent: #00b894;
  --btn-glow: rgba(0, 184, 148, 0.28);
  --btn-hover-bg: linear-gradient(135deg, rgba(0, 184, 148, 0.18), rgba(10, 10, 10, 0.96));
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--silver);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.card-title {
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
}

.card-body {
  color: var(--silver);
  font-size: 0.95rem;
}

/* Active Work Card */
.active-work-card {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(244, 162, 97, 0.1));
  border: 1px solid var(--gold);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.active-work-title {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

.active-work-headline {
  margin-bottom: var(--spacing-md);
}

.active-work-body {
  color: var(--silver);
  margin-bottom: var(--spacing-md);
}

/* My Body Path Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: var(--black);
  border-left: 1px solid var(--gold);
  z-index: 201;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: var(--spacing-lg);
}

.drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--silver);
}

.drawer-title {
  color: var(--gold);
}

.drawer-close {
  background: transparent;
  color: var(--silver);
  font-size: 1.5rem;
  padding: 0.5rem;
}

.drawer-close:hover {
  color: var(--white);
}

/* Sticky Action Bar */
.sticky-action-bar {
  position: sticky;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid var(--gold);
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.sticky-action-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.sticky-action-label {
  color: var(--silver);
  font-size: 0.875rem;
}

/* More Tools Sheet */
.sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
}

.sheet-overlay.active {
  display: block;
}

.sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  max-height: 80vh;
  background: var(--black);
  border-top: 1px solid var(--gold);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  z-index: 201;
  transition: bottom 0.3s ease;
  overflow-y: auto;
  padding: var(--spacing-lg);
}

.sheet.active {
  bottom: 0;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--silver);
}

/* Filters */
.filters {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin: var(--spacing-lg) 0;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--silver);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--spacing-sm);
  border-bottom: 1px solid var(--silver);
  margin-bottom: var(--spacing-lg);
}

.tab {
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  color: var(--silver);
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tab:hover,
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Body Skills Side Sheet */
.side-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
}

.side-sheet-overlay.active {
  display: block;
}

.side-sheet {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100%;
  background: var(--black);
  border-left: 1px solid var(--gold);
  z-index: 201;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: var(--spacing-lg);
}

.side-sheet.active {
  right: 0;
}

/* Training Path Stepper */
.stepper {
  margin: var(--spacing-xl) 0;
}

.step {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--silver);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-size: 1.5rem;
}

.step-content {
  flex: 1;
}

.step-title {
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
}

.step-body {
  color: var(--silver);
}

/* Profile Stats */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--silver);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
}

.stat-label {
  color: var(--silver);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
}

.stat-value {
  color: var(--gold);
  font-size: 1.125rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .nav-links {
    display: none;
  }
  
  .drawer {
    width: 100%;
    right: -100%;
  }
  
  .side-sheet {
    width: 100%;
    right: -100%;
  }
  
  .sticky-action-content {
    flex-direction: column;
    text-align: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-silver { color: var(--silver); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
/* File-level repair support: audit selectors, overflow protection, and responsive controls */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.nav-button {
  background: transparent;
  padding: 0;
}

.nav-menu {
  display: none;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v-active-card,
.active-work-card,
.hero,
.card,
.v-card,
.v-route-card,
.v-course-card,
.v-quote-card,
.tab-content,
.tab-panel {
  min-width: 0;
  max-width: 100%;
}

.card button,
.tool-card {
  text-align: left;
  color: inherit;
  font: inherit;
}

.tool-card {
  width: 100%;
}

.tab.is-active,
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-panel[hidden] {
  display: none !important;
}

.tab-panel.is-active {
  display: block;
}

.drawer.is-open {
  right: 0;
}

.drawer-overlay.is-open,
.sheet-overlay.is-open,
.side-sheet-overlay.is-open {
  display: block;
}

.sheet.is-open {
  bottom: 0;
}

.side-sheet.is-open {
  right: 0;
}

.v-stepper-step.is-current .step-number {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.25);
}

.drawer-list {
  color: var(--silver);
  padding-left: 1.25rem;
}

.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

@media (max-width: 768px) {
  .nav-container {
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .nav-menu {
    display: inline-block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-sm);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .tabs {
    flex-direction: column;
    overflow-x: visible;
    width: 100%;
  }

  .tab {
    width: 100%;
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(168, 168, 168, 0.35);
    border-bottom: 1px solid rgba(168, 168, 168, 0.35);
    border-radius: var(--border-radius);
  }

  .btn {
    max-width: 100%;
    white-space: normal;
  }

  .hero-image {
    margin-left: 0;
    margin-right: 0;
  }
}
