/* ========================================
   OXYTOCIN HOUSE OF LEARNING - MASTER DESIGN SYSTEM
   Anti-Racism Leadership Training Platform
   ======================================== */

/* EXECUTIVE DESIGN SYSTEM - SINGLE SOURCE OF TRUTH */

/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */

:root {
  /* OXYTOCIN BRAND COLORS - EXECUTIVE PALETTE */
  --oxytocin-primary: #667eea;           /* Primary Brand Blue */
  --oxytocin-primary-light: #a5b4fc;    /* Light variant */
  --oxytocin-primary-dark: #4c63d2;     /* Dark variant */
  --oxytocin-secondary: #764ba2;        /* Secondary Purple */
  --oxytocin-accent: #f59e0b;           /* Accent Gold */
  --oxytocin-accent-light: #fbbf24;     /* Light Gold */
  
  /* ANTI-RACISM LEADERSHIP THEME COLORS */
  --leadership-deep: #2d1b69;           /* Deep Leadership Purple */
  --leadership-gold: #d4af37;           /* Cultural Gold */
  --leadership-sage: #87a96b;           /* Healing Sage */
  --leadership-crimson: #dc2626;        /* Strength Crimson */
  
  /* NEUTRAL COLORS */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --white: #ffffff;
  --black: #000000;
  
  /* SEMANTIC COLORS */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* GRADIENTS */
  --gradient-primary: linear-gradient(135deg, var(--oxytocin-primary) 0%, var(--oxytocin-secondary) 100%);
  --gradient-gold: linear-gradient(135deg, var(--leadership-gold) 0%, var(--oxytocin-accent) 100%);
  --gradient-leadership: linear-gradient(135deg, var(--leadership-deep) 0%, var(--oxytocin-primary) 100%);
  --gradient-subtle: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  
  /* TYPOGRAPHY */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* SPACING SYSTEM */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  
  /* BORDER RADIUS */
  --radius-sm: 0.125rem;   /* 2px */
  --radius: 0.25rem;       /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* SHADOWS */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* TRANSITIONS */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-INDEX */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--gray-800);
  background: var(--gradient-subtle);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--leadership-deep);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
  color: var(--gray-600);
}

a {
  color: var(--oxytocin-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--oxytocin-primary-dark);
  text-decoration: underline;
}

/* ========================================
   LAYOUT SYSTEM
   ======================================== */

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

.container-fluid {
  width: 100%;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* ========================================
   EXECUTIVE NAVIGATION SYSTEM
   ======================================== */

.oxytocin-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-base);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--leadership-deep);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--white);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.nav-brand-subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  font-weight: var(--font-weight-medium);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  color: var(--gray-600);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--oxytocin-primary);
  background: var(--gray-50);
  text-decoration: none;
}

.nav-link.active {
  color: var(--oxytocin-primary);
  background: var(--oxytocin-primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.nav-home-link {
  background: var(--gradient-primary);
  color: var(--white) !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
}

.nav-home-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-primary);
}

/* ========================================
   BUTTON SYSTEM
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  user-select: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--white);
  color: var(--oxytocin-primary);
  border: 2px solid var(--oxytocin-primary);
}

.btn-secondary:hover {
  background: var(--oxytocin-primary);
  color: var(--white);
}

.btn-accent {
  background: var(--gradient-gold);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

/* ========================================
   CARD SYSTEM
   ======================================== */

.card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-100);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  background: var(--gradient-leadership);
  color: var(--white);
  padding: var(--space-32) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
  background-size: 100px 100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-black);
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-tight);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   GRID SYSTEM
   ======================================== */

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid-responsive {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ========================================
   EXECUTIVE VISUAL HIERARCHY SYSTEM
   ======================================== */

/* EXECUTIVE TYPOGRAPHY HIERARCHY */
.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  color: var(--white);
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--leadership-deep);
  margin-bottom: var(--space-8);
}

.content-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  color: var(--leadership-deep);
  margin-bottom: var(--space-4);
}

.emphasis-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--gray-800);
}

.body-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--gray-600);
}

.support-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--gray-500);
}

/* EXECUTIVE CONTENT PATTERNS */
.content-hero {
  padding: var(--space-32) 0;
  background: var(--gradient-leadership);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.content-section {
  padding: var(--space-20) 0;
  max-width: 1200px;
  margin: 0 auto;
}

.content-block {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.highlight-box {
  border-left: 4px solid var(--oxytocin-primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.03));
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.call-to-action {
  padding: var(--space-8);
  background: var(--gradient-primary);
  text-align: center;
  border-radius: var(--radius-2xl);
  color: var(--white);
}

/* EXECUTIVE NAVIGATION HIERARCHY */
.primary-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: var(--z-sticky);
}

.contextual-nav {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-4) 0;
}

.progress-nav {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-3) 0;
}

.footer-nav {
  background: var(--gray-50);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--gray-200);
}

/* CONTENT LAYOUT PATTERNS */
.learning-objective-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--oxytocin-primary);
  margin: var(--space-6) 0;
}

.learning-objective-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  color: var(--white);
}

.key-concept-block {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  transition: var(--transition-base);
}

.key-concept-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.interactive-element-block {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(255, 255, 255, 1));
  border: 2px solid var(--oxytocin-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

/* PROGRESS INDICATORS */
.lesson-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.lesson-progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius);
  transition: width 0.5s ease;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.breadcrumb-separator {
  color: var(--gray-300);
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--oxytocin-primary); }
.text-secondary { color: var(--oxytocin-secondary); }
.text-accent { color: var(--leadership-gold); }
.text-muted { color: var(--gray-500); }

.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-primary { background: var(--gradient-primary); }
.bg-accent { background: var(--gradient-gold); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .nav-menu {
    display: none; /* Mobile menu toggle would be implemented with JS */
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container,
  .container-fluid {
    padding: 0 var(--space-4);
  }
  
  .nav-container {
    padding: var(--space-3) var(--space-4);
  }
  
  .card-body,
  .card-header,
  .card-footer {
    padding: var(--space-4);
  }
}