/* SyetaHub Design System - Comprehensive Typography and Color Guide */

/* ========================================
   FONT FAMILIES
======================================== */

/* Primary Font Stack - Poppins for headings and UI elements */
:root {
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Secondary Font Stack - Inter for body text and readability */
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Display Font - Great Vibes for decorative elements */
  --font-display: 'Great Vibes', cursive;
  
  /* Monospace Font - for code and technical content */
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* ========================================
   COLOR SYSTEM
======================================== */

:root {
  /* Primary Brand Colors */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  
  /* Secondary Brand Colors */
  --secondary-50: #faf5ff;
  --secondary-100: #f3e8ff;
  --secondary-200: #e9d5ff;
  --secondary-300: #d8b4fe;
  --secondary-400: #c084fc;
  --secondary-500: #a855f7;
  --secondary-600: #9333ea;
  --secondary-700: #7c3aed;
  --secondary-800: #6b21a8;
  --secondary-900: #581c87;
  
  /* Accent Colors */
  --accent-50: #ecfdf5;
  --accent-100: #d1fae5;
  --accent-200: #a7f3d0;
  --accent-300: #6ee7b7;
  --accent-400: #34d399;
  --accent-500: #10b981;
  --accent-600: #059669;
  --accent-700: #047857;
  --accent-800: #065f46;
  --accent-900: #064e3b;
  
  /* 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;
  
  /* Semantic Colors */
  --success-50: #ecfdf5;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;
  
  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  
  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;
  
  --info-50: #eff6ff;
  --info-500: #3b82f6;
  --info-600: #2563eb;
  --info-700: #1d4ed8;
  
  /* Brand Orange (SyetaHub signature color) */
  --brand-orange: #F96D00;
  --brand-orange-light: #ff8c42;
  --brand-orange-dark: #e55a00;
  
  /* Text Colors - Enhanced for better visibility */
  --text-primary: #000000;
  --text-secondary: #374151;
  --text-tertiary: #4b5563;
  --text-inverse: #ffffff;
  --text-muted: #6b7280;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --bg-dark: var(--gray-900);
  --bg-brand: var(--brand-orange);
  
  /* Border Colors */
  --border-light: var(--gray-200);
  --border-medium: var(--gray-300);
  --border-dark: var(--gray-400);
  
  /* Shadow System */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ========================================
   TYPOGRAPHY SCALE
======================================== */

/* Base Typography - Enhanced for Chrome visibility */
body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-stroke: 0.01em transparent;
}

/* Heading Hierarchy - Enhanced for Chrome visibility */
h1, .h1 {
  font-family: var(--font-primary);
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h2, .h2 {
  font-family: var(--font-primary);
  font-size: 2rem; /* 32px */
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  letter-spacing: -0.025em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h3, .h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

h4, .h4 {
  font-family: var(--font-primary);
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

h5, .h5 {
  font-family: var(--font-primary);
  font-size: 1.125rem; /* 18px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

h6, .h6 {
  font-family: var(--font-primary);
  font-size: 1rem; /* 16px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Body Text */
p, .text-body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 1rem;
}

.text-small {
  font-size: 0.875rem; /* 14px */
  line-height: 1.5;
}

.text-xs {
  font-size: 0.75rem; /* 12px */
  line-height: 1.4;
}

/* Display Text */
.display-1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--brand-orange);
}

.display-2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--brand-orange);
}

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

/* Font Weights */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Text Colors */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-inverse { color: var(--text-inverse) !important; }
.text-brand { color: var(--brand-orange) !important; }
.text-success { color: var(--success-600) !important; }
.text-warning { color: var(--warning-600) !important; }
.text-error { color: var(--error-600) !important; }
.text-info { color: var(--info-600) !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

/* Text Transform */
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

/* ========================================
   CHROME FONT ENHANCEMENTS
======================================== */

/* Chrome-specific font improvements */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  body {
    -webkit-font-smoothing: subpixel-antialiased;
    font-weight: 500;
  }
  
  h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: subpixel-antialiased;
    font-weight: 600;
  }
  
  p, .text-body {
    font-weight: 500;
    -webkit-font-smoothing: subpixel-antialiased;
  }
}

/* Enhanced text visibility for all browsers */
* {
  text-rendering: optimizeLegibility;
}

/* Better contrast for small text */
small, .text-small, .text-xs {
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
======================================== */

/* Mobile First Approach */
@media (max-width: 576px) {
  h1, .h1 { font-size: 2rem; } /* 32px */
  h2, .h2 { font-size: 1.75rem; } /* 28px */
  h3, .h3 { font-size: 1.5rem; } /* 24px */
  h4, .h4 { font-size: 1.25rem; } /* 20px */
  h5, .h5 { font-size: 1.125rem; } /* 18px */
  h6, .h6 { font-size: 1rem; } /* 16px */
  
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.5rem; }
  
  body { font-size: 14px; }
}

@media (min-width: 577px) and (max-width: 768px) {
  h1, .h1 { font-size: 2.25rem; } /* 36px */
  h2, .h2 { font-size: 1.875rem; } /* 30px */
  h3, .h3 { font-size: 1.5rem; } /* 24px */
  h4, .h4 { font-size: 1.25rem; } /* 20px */
  h5, .h5 { font-size: 1.125rem; } /* 18px */
  h6, .h6 { font-size: 1rem; } /* 16px */
}

@media (min-width: 769px) and (max-width: 992px) {
  h1, .h1 { font-size: 2.5rem; } /* 40px */
  h2, .h2 { font-size: 2rem; } /* 32px */
  h3, .h3 { font-size: 1.5rem; } /* 24px */
  h4, .h4 { font-size: 1.25rem; } /* 20px */
  h5, .h5 { font-size: 1.125rem; } /* 18px */
  h6, .h6 { font-size: 1rem; } /* 16px */
}

@media (min-width: 993px) {
  h1, .h1 { font-size: 3rem; } /* 48px */
  h2, .h2 { font-size: 2.25rem; } /* 36px */
  h3, .h3 { font-size: 1.75rem; } /* 28px */
  h4, .h4 { font-size: 1.5rem; } /* 24px */
  h5, .h5 { font-size: 1.25rem; } /* 20px */
  h6, .h6 { font-size: 1.125rem; } /* 18px */
}

/* ========================================
   ACCESSIBILITY
======================================== */

/* Focus States */
*:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-light: #666666;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   COMPONENT STYLES
======================================== */

/* Buttons */
.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  color: var(--text-inverse);
}

/* Cards */
.card {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-primary);
}

/* Form Elements */
.form-control {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
  outline: none;
}

/* Navigation */
.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.2s ease-in-out;
}

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

/* ========================================
   PRINT STYLES
======================================== */

@media print {
  * {
    color: #000000 !important;
    background: #ffffff !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p, li {
    orphans: 3;
    widows: 3;
  }
}
