/* Guard1 - Purple/Grey Wireframe Design System */

/* CSS Variables - Purple & Grey Theme */
:root {
  /* Primary Purple - Calming & Empowering */
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-900: #4c1d95;
  
  /* Greys - Neutral & Authoritative */
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  
  /* Wireframe Colors */
  --wireframe-border: #94a3b8;
  --wireframe-bg: #f8fafc;
  --wireframe-accent: #8b5cf6;
  
  /* Section Colors - Purple Based */
  --facts-color: var(--grey-500);
  --perspective-1: var(--purple-600);
  --perspective-2: var(--purple-400);
  --perspective-3: var(--grey-600);
  --analysis-color: var(--purple-700);
  --reflection-color: var(--purple-500);
  
  /* Typography */
  --font-serif: 'Crimson Pro', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Layout */
  --max-width: 800px;
  --header-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  line-height: 1.7;
  color: var(--grey-800);
  background: var(--grey-50);
  min-height: 100vh;
}

/* Wireframe Aesthetic - Clean Lines */
.wireframe-border {
  border: 1px solid var(--wireframe-border);
}

.wireframe-box {
  border: 1px solid var(--grey-300);
  background: white;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
  color: var(--grey-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--purple-600);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--purple-800);
}

/* Container */
.container {
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header - Wireframe Style */
.site-header {
  background: white;
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--purple-700);
  letter-spacing: -0.02em;
}

.brand a {
  color: inherit;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  font-family: var(--font-sans);
}

.nav-list a {
  color: var(--grey-600);
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-500);
  transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-list a:hover {
  color: var(--purple-600);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--grey-700);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--grey-200);
    gap: 0;
  }
  
  .nav-list.show {
    display: flex;
  }
  
  .nav-list a {
    display: block;
    padding: var(--space-md);
    border-bottom: 1px solid var(--grey-100);
  }
  
  .nav-list a::after {
    display: none;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--purple-50) 0%, var(--grey-100) 100%);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--grey-200);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
  color: var(--grey-900);
}

.hero p {
  font-size: 1.25rem;
  color: var(--grey-600);
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

/* CTA Button - Wireframe Style */
.cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: var(--space-md) var(--space-xl);
  background: white;
  color: var(--purple-700);
  border: 2px solid var(--purple-500);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cta:hover {
  background: var(--purple-600);
  color: white;
  border-color: var(--purple-600);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-3xl) 0;
}

.feature {
  background: white;
  border: 1px solid var(--grey-200);
  padding: var(--space-xl);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.feature:hover {
  border-color: var(--purple-300);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.feature h3 {
  color: var(--purple-700);
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
}

.feature p {
  color: var(--grey-600);
  margin: 0;
}

/* Article Page Styles */
.article-header {
  background: white;
  border-bottom: 1px solid var(--grey-200);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.article-category {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-500);
}

.article-header h1 {
  margin: var(--space-md) 0;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--grey-500);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.article-meta {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--grey-400);
}

.separator {
  margin: 0 var(--space-sm);
}

/* Section Styles */
.section {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--grey-200);
}

.section-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--space-sm) var(--space-md);
  display: inline-block;
  border-radius: 2px;
  margin-bottom: var(--space-lg);
}

/* Facts Section - Grey */
.section-facts {
  background: white;
}

.facts-label {
  background: var(--grey-100);
  color: var(--grey-600);
}

/* Perspective 1 - Purple Dark */
.section-perspective-1 {
  background: var(--purple-50);
}

.perspective-label-1 {
  background: var(--purple-700);
  color: white;
}

.perspective-context {
  background: white;
  border-left: 3px solid var(--purple-600);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.perspective-context h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-700);
  margin-bottom: var(--space-sm);
}

.perspective-context p {
  margin: 0;
  color: var(--grey-600);
}

/* Perspective 2 - Purple Light */
.section-perspective-2 {
  background: var(--grey-50);
}

.perspective-label-2 {
  background: var(--purple-500);
  color: white;
}

/* Perspective 3 - Grey Dark */
.section-perspective-3 {
  background: white;
}

.perspective-label-3 {
  background: var(--grey-600);
  color: white;
}

/* Analysis Section - Deep Purple */
.section-analysis {
  background: linear-gradient(180deg, var(--purple-50) 0%, white 100%);
}

.analysis-label {
  background: var(--purple-800);
  color: white;
}

/* Reflection Section - Purple */
.section-reflection {
  background: var(--purple-50);
}

.reflection-label {
  background: var(--purple-600);
  color: white;
}

.reflection-box {
  background: white;
  border: 1px solid var(--purple-200);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  border-radius: 4px;
}

/* Article Content */
.article-content {
  max-width: var(--max-width);
}

.article-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-content ul, 
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.article-content li {
  margin-bottom: var(--space-sm);
}

blockquote {
  border-left: 3px solid var(--purple-400);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--grey-600);
}

/* Related Articles */
.related-articles {
  padding: var(--space-3xl) 0;
  background: white;
}

.related-articles h3 {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.article-card {
  display: block;
  background: white;
  border: 1px solid var(--grey-200);
  padding: var(--space-xl);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: var(--purple-300);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.article-card h4 {
  color: var(--purple-700);
  margin-bottom: var(--space-sm);
}

.article-card p {
  color: var(--grey-500);
  margin: 0;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  background: var(--grey-900);
  color: var(--grey-400);
  padding: var(--space-xl) 0;
  text-align: center;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-nav a {
  color: var(--grey-400);
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--purple-400);
}

@media (max-width: 768px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-700));
  z-index: 1000;
  transition: width 0.1s;
}

/* Utilities */
.text-center { text-align: center; }
.text-purple { color: var(--purple-600); }
.text-grey { color: var(--grey-500); }

.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ==========================================================================
   GUARD1 DESIGN SYSTEM - FULL IMPLEMENTATION
   ========================================================================== */

/* --- Extended CSS Variables --- */
:root {
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-purple: 0 4px 12px 0 rgba(124, 58, 237, 0.15);
  
  /* Extended Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Mono Font */
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Extended Spacing */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Extended Container Widths */
  --container-wide: 1400px;
  --container-default: 1200px;
  --container-narrow: 900px;
  --container-article: 800px;
  --container-tight: 600px;
  
  /* Border Variables */
  --border-thin: 1px solid var(--grey-300);
  --border-medium: 2px solid var(--grey-400);
  --border-thick: 3px solid var(--grey-500);
  --border-purple: 2px solid var(--purple-200);
  --border-purple-bold: 3px solid var(--purple-600);
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  padding: var(--space-3) var(--space-6);
  background: var(--purple-600);
  color: white;
  border: 2px solid var(--purple-600);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--purple-700);
  border-color: var(--purple-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-purple);
  color: white;
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  padding: var(--space-3) var(--space-6);
  background: white;
  color: var(--purple-600);
  border: 2px solid var(--purple-600);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--purple-50);
  border-color: var(--purple-700);
  color: var(--purple-700);
}

/* ==========================================================================
   WIREFRAME COMPONENT PATTERNS
   ========================================================================== */

/* Wireframe Card */
.wireframe-card {
  border: var(--border-thin);
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  position: relative;
}

.wireframe-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid var(--purple-200);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity 0.3s;
}

.wireframe-card:hover::before {
  opacity: 1;
}

.wireframe-card:hover {
  box-shadow: var(--shadow-purple);
}

/* Section Header (Wireframe Style) */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-thin);
  margin-bottom: var(--space-6);
}

.section-header .section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-600);
  background: var(--purple-50);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--purple-200);
}

/* Information Grid (Dense Layout) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  border: var(--border-thin);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: white;
}

.info-item {
  border-left: 3px solid var(--purple-200);
  padding-left: var(--space-4);
}

.info-label {
  font-size: var(--text-sm);
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.info-value {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--grey-900);
}

/* Data Table (Wireframe Style) */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--border-thin);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}

.data-table th {
  background: var(--grey-100);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--grey-600);
  border-bottom: 2px solid var(--grey-200);
}

.data-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--grey-200);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: var(--purple-50);
}

/* Facts Section */
.facts-section {
  background: var(--grey-50);
  border: 2px solid var(--grey-200);
  border-left: 4px solid var(--purple-600);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

.facts-section .section-label {
  background: var(--purple-600);
  color: white;
}

/* Perspective Sections */
.perspective-section {
  border: var(--border-thin);
  border-left: 3px solid var(--purple-400);
  background: white;
  padding: var(--space-8);
  margin: var(--space-8) 0;
  position: relative;
}

.perspective-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--purple-700),
    var(--purple-400)
  );
}

.perspective-header {
  border-bottom: var(--border-thin);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.perspective-name {
  font-size: var(--text-2xl);
  color: var(--purple-700);
  margin-bottom: var(--space-2);
}

.perspective-context {
  font-size: var(--text-sm);
  color: var(--grey-500);
  font-style: italic;
}

/* Analysis Section */
.analysis-section {
  border: 2px solid var(--purple-200);
  background: var(--purple-50);
  padding: var(--space-8);
  margin: var(--space-8) 0;
  position: relative;
}

.analysis-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--purple-600);
}

.analysis-section .section-label {
  background: var(--purple-700);
  color: white;
}

/* Quote/Callout Blocks */
.quote-block {
  border-left: 4px solid var(--purple-500);
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--grey-600);
}

/* Stat Highlight */
.stat-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  border-radius: var(--radius-sm);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--purple-700);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--grey-500);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--purple-500),
    var(--purple-200)
  );
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 2px);
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple-500);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--purple-200);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--purple-600);
  font-weight: var(--weight-medium);
}

.timeline-title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--grey-800);
  margin: var(--space-1) 0;
}

.timeline-description {
  font-size: var(--text-sm);
  color: var(--grey-600);
}

/* ==========================================================================
   ENHANCED INTERACTIVE STATES
   ========================================================================== */

/* Enhanced Links */
a {
  color: var(--purple-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--purple-700);
  border-bottom-color: var(--purple-700);
}

/* Interactive Card */
.interactive-card {
  background: white;
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: all 0.3s ease;
}

.interactive-card:hover {
  border-color: var(--purple-300);
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
}

/* ==========================================================================
   WIREFRAME UTILITIES
   ========================================================================== */

.wireframe-border {
  border: 1px solid var(--grey-300);
}

.wireframe-border-dashed {
  border: 1px dashed var(--grey-400);
}

.dashed-box {
  border: 1px dashed var(--grey-400);
  background: var(--grey-50);
  padding: var(--space-6);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   THEME SUPPORT (Light/Dark/Silver)
   ========================================================================== */

/* Default Light Theme */
:root {
  /* Light theme specific */
  --theme-bg-primary: #ffffff;
  --theme-bg-secondary: var(--grey-50);
  --theme-bg-tertiary: var(--grey-100);
  --theme-text-primary: var(--grey-900);
  --theme-text-secondary: var(--grey-700);
  --theme-text-muted: var(--grey-500);
  --theme-border: var(--grey-200);
  --theme-border-light: var(--grey-100);
}

/* Dark Theme */
[data-theme="dark"] {
  --theme-bg-primary: #1a1a2e;
  --theme-bg-secondary: #16213e;
  --theme-bg-tertiary: #0f3460;
  --theme-text-primary: #e8e8e8;
  --theme-text-secondary: #b8b8b8;
  --theme-text-muted: #888888;
  --theme-border: #2a2a4a;
  --theme-border-light: #252545;
  
  /* Override original colors for dark theme */
  --grey-50: #1a1a2e;
  --grey-100: #16213e;
  --grey-200: #0f3460;
  --grey-300: #2a2a4a;
  --grey-400: #3a3a5a;
  --grey-500: #4a4a6a;
  --grey-600: #6a6a7a;
  --grey-700: #8a8a9a;
  --grey-800: #b8b8c8;
  --grey-900: #e8e8f0;
  
  --purple-50: #1a1a2e;
  --purple-100: #16213e;
  --purple-200: #2a2a5a;
  --purple-300: #3a3a7a;
  --purple-400: #5a5a9a;
  --purple-500: #7a7aaa;
  --purple-600: #9a9aba;
  --purple-700: #bbbaca;
  --purple-800: #dcdafa;
  --purple-900: #eeeefd;
}

/* Silver/Grey Theme */
[data-theme="silver"] {
  --theme-bg-primary: #e8e9ed;
  --theme-bg-secondary: #d1d3d8;
  --theme-bg-tertiary: #b8bac2;
  --theme-text-primary: #2d2d35;
  --theme-text-secondary: #4a4a55;
  --theme-text-muted: #6a6a75;
  --theme-border: #c0c2c8;
  --theme-border-light: #b0b2b8;
  
  /* Override original colors for silver theme */
  --grey-50: #e8e9ed;
  --grey-100: #d1d3d8;
  --grey-200: #b8bac2;
  --grey-300: #9a9ca2;
  --grey-400: #7a7c82;
  --grey-500: #5a5c62;
  --grey-600: #4a4a52;
  --grey-700: #3a3a42;
  --grey-800: #2d2d35;
  --grey-900: #1a1a22;
  
  --purple-50: #e8e9ed;
  --purple-100: #d1d3e0;
  --purple-200: #b0b3cc;
  --purple-300: #8f93b8;
  --purple-400: #6e73a4;
  --purple-500: #5a5d8a;
  --purple-600: #4a4d70;
  --purple-700: #3a3d56;
  --purple-800: #2d2d42;
  --purple-900: #1a1a2d;
}

/* Apply theme colors to body */
body {
  background: var(--theme-bg-primary);
  color: var(--theme-text-primary);
}

body[data-theme="dark"] {
  background: var(--theme-bg-primary);
  color: var(--theme-text-primary);
}

/* Theme toggle button styles */
.theme-toggle {
  background: none;
  border: 1px solid var(--grey-400);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--grey-600);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle:hover {
  background: var(--purple-50);
  border-color: var(--purple-400);
  color: var(--purple-600);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--grey-600);
  color: var(--grey-400);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--purple-800);
  border-color: var(--purple-400);
  color: var(--purple-200);
}

/* Theme-specific overrides */
[data-theme="dark"] .site-header {
  background: var(--theme-bg-secondary);
  border-bottom-color: var(--theme-border);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, var(--theme-bg-secondary) 0%, var(--theme-bg-tertiary) 100%);
  border-bottom-color: var(--theme-border);
}

[data-theme="dark"] .feature,
[data-theme="dark"] .wireframe-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .interactive-card {
  background: var(--theme-bg-secondary);
  border-color: var(--theme-border);
}

[data-theme="dark"] .data-table {
  background: var(--theme-bg-secondary);
  border-color: var(--theme-border);
}

[data-theme="dark"] .data-table th {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-secondary);
  border-bottom-color: var(--theme-border);
}

[data-theme="dark"] .data-table td {
  border-bottom-color: var(--theme-border-light);
  color: var(--theme-text-primary);
}

[data-theme="dark"] .data-table tr:hover {
  background: rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .info-grid {
  background: var(--theme-bg-secondary);
  border-color: var(--theme-border);
}

[data-theme="dark"] .facts-section,
[data-theme="dark"] .perspective-section,
[data-theme="dark"] .analysis-section {
  background: var(--theme-bg-secondary);
  border-color: var(--theme-border);
}

[data-theme="dark"] .quote-block {
  color: var(--theme-text-secondary);
}

[data-theme="dark"] .reflection-box {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4 {
  color: var(--theme-text-primary);
}

[data-theme="dark"] p {
  color: var(--theme-text-secondary);
}

[data-theme="dark"] .article-header {
  background: var(--theme-bg-secondary);
  border-bottom-color: var(--theme-border);
}

[data-theme="dark"] .site-footer {
  background: #0a0a15;
}

/* Silver theme specific overrides */
[data-theme="silver"] .site-header {
  background: var(--theme-bg-secondary);
  border-bottom-color: var(--theme-border);
}

[data-theme="silver"] .hero {
  background: linear-gradient(135deg, var(--theme-bg-secondary) 0%, var(--theme-bg-tertiary) 100%);
  border-bottom-color: var(--theme-border);
}

[data-theme="silver"] .feature,
[data-theme="silver"] .wireframe-card,
[data-theme="silver"] .article-card,
[data-theme="silver"] .interactive-card {
  background: var(--theme-bg-primary);
  border-color: var(--theme-border);
}

[data-theme="silver"] .data-table {
  background: var(--theme-bg-primary);
  border-color: var(--theme-border);
}

[data-theme="silver"] .data-table th {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-secondary);
  border-bottom-color: var(--theme-border);
}

[data-theme="silver"] .data-table td {
  border-bottom-color: var(--theme-border-light);
  color: var(--theme-text-primary);
}

[data-theme="silver"] .data-table tr:hover {
  background: rgba(124, 58, 237, 0.15);
}

[data-theme="silver"] .info-grid {
  background: var(--theme-bg-primary);
  border-color: var(--theme-border);
}

[data-theme="silver"] .facts-section,
[data-theme="silver"] .perspective-section,
[data-theme="silver"] .analysis-section {
  background: var(--theme-bg-secondary);
  border-color: var(--theme-border);
}

[data-theme="silver"] .quote-block {
  color: var(--theme-text-secondary);
}

[data-theme="silver"] .reflection-box {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
}

[data-theme="silver"] h1, 
[data-theme="silver"] h2, 
[data-theme="silver"] h3, 
[data-theme="silver"] h4 {
  color: var(--theme-text-primary);
}

[data-theme="silver"] p {
  color: var(--theme-text-secondary);
}

[data-theme="silver"] .article-header {
  background: var(--theme-bg-secondary);
  border-bottom-color: var(--theme-border);
}

[data-theme="silver"] .site-footer {
  background: #b8bac2;
}

[data-theme="silver"] .nav-list a,
[data-theme="silver"] .brand a {
  color: var(--theme-text-secondary);
}

[data-theme="silver"] .menu-toggle {
  color: var(--theme-text-secondary);
}

/* ==========================================================================
   RESPONSIVE HELPERS
   ========================================================================== */

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: var(--space-6);
  }
  
  .timeline-item::before {
    left: calc(-1 * var(--space-6) + 2px);
  }
}
