/**
 * Design System - Core Variables and Foundation
 * 
 * Contains the fundamental design tokens, typography, and spacing
 * used across all Unified Streaming demo applications.
 * 
 * @author Unified Streaming Template
 * @version 1.0.0
 */

/* Import Open Sans font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* Design Tokens */
:root {
  /* Brand Colors */
  --petrol-blue: #1e4a5c;
  --petrol-blue-65: rgba(30, 74, 92, 0.65);
  --primary-bg: #030041;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Accent Colors */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --green-400: #4ade80;
  --green-500: #10b981;
  --green-600: #059669;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  
  /* Typography */
  --font-primary: 'Open Sans', Arial, sans-serif;
  --font-fallback: Arial, sans-serif;
  --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Font Sizes */
  --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;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  
  /* Spacing Scale */
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  
  /* Z-Index Scale */
  --z-auto: auto;
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-900);
  background-color: var(--primary-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Classes */

/* Headline 1: Visuelt Medium / -1 spacing / Open Sans bold */
.headline-1 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  margin: 0;
}

/* Headline 2 */
.headline-2 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--gray-800);
  margin: 0;
}

/* Headline 3 */
.headline-3 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  color: var(--gray-800);
  margin: 0;
}

/* Intro Text: Visuelt Regular / 40-60% line height / 65% Petrol blue */
.intro-text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--petrol-blue-65);
  margin: 0;
}

/* Body Text */
.body-text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-700);
  margin: 0;
}

/* Small Text */
.text-small {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--gray-600);
  margin: 0;
}

/* Extra Small Text */
.text-xs {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--gray-500);
  margin: 0;
}

/* Call to Actions: +1 spacing / Open Sans Normal or bold */
.cta-text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-base);
  letter-spacing: var(--tracking-wide);
  color: var(--gray-700);
  margin: 0;
}

.cta-text.bold {
  font-weight: var(--font-weight-semibold);
}

/* Monospace Text */
.text-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--gray-700);
}

/* Text Color Utilities */
.text-white { color: var(--white); }
.text-gray-50 { color: var(--gray-50); }
.text-gray-100 { color: var(--gray-100); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-blue-500 { color: var(--blue-500); }
.text-green-500 { color: var(--green-500); }
.text-red-500 { color: var(--red-500); }
.text-petrol { color: var(--petrol-blue); }
.text-petrol-65 { color: var(--petrol-blue-65); }

/* Font Weight Utilities */
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Text Size Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

/* Responsive Typography */
@media (max-width: 768px) {
  .headline-1 {
    font-size: var(--text-xl);
  }
  
  .headline-2 {
    font-size: var(--text-lg);
  }
  
  .headline-3 {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .headline-1 {
    font-size: var(--text-lg);
  }
  
  .headline-2 {
    font-size: var(--text-base);
  }
  
  .intro-text,
  .body-text {
    font-size: var(--text-sm);
  }
}