/**
 * GetTicket Enterprise Design System
 * Version: 1.0.0
 *
 * A professional, enterprise-grade design system focusing on:
 * - Trust & Credibility
 * - Conversion Optimization
 * - Clean, Professional Typography
 */

:root {
  /* ===========================================
     COLOR SYSTEM
     =========================================== */

  /* Primary - Refined Red (Brand Color) */
  --color-primary-50: #fef2f2;
  --color-primary-100: #fee2e2;
  --color-primary-200: #fecaca;
  --color-primary-300: #fca5a5;
  --color-primary-400: #f87171;
  --color-primary-500: #dc2626;
  --color-primary-600: #b91c1c;
  --color-primary-700: #991b1b;
  --color-primary-800: #7f1d1d;
  --color-primary-900: #450a0a;

  /* Neutrals - Professional Gray Scale */
  --color-gray-25: #fcfcfd;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-gray-950: #030712;

  /* Semantic Colors */
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-500: #059669;
  --color-success-600: #047857;
  --color-success-700: #065f46;

  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-500: #d97706;
  --color-warning-600: #b45309;
  --color-warning-700: #92400e;

  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-500: #dc2626;
  --color-error-600: #b91c1c;
  --color-error-700: #991b1b;

  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-500: #0284c7;
  --color-info-600: #0369a1;
  --color-info-700: #075985;

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

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ===========================================
     SPACING
     =========================================== */

  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;   /* 2px */
  --space-1: 0.25rem;      /* 4px */
  --space-1-5: 0.375rem;   /* 6px */
  --space-2: 0.5rem;       /* 8px */
  --space-2-5: 0.625rem;   /* 10px */
  --space-3: 0.75rem;      /* 12px */
  --space-3-5: 0.875rem;   /* 14px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-7: 1.75rem;      /* 28px */
  --space-8: 2rem;         /* 32px */
  --space-9: 2.25rem;      /* 36px */
  --space-10: 2.5rem;      /* 40px */
  --space-11: 2.75rem;     /* 44px */
  --space-12: 3rem;        /* 48px */
  --space-14: 3.5rem;      /* 56px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-28: 7rem;        /* 112px */
  --space-32: 8rem;        /* 128px */

  /* ===========================================
     BORDER RADIUS
     =========================================== */

  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* ===========================================
     SHADOWS - Enterprise Depth
     =========================================== */

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Colored Shadows for Primary Color */
  --shadow-primary-sm: 0 1px 3px 0 rgba(220, 38, 38, 0.1), 0 1px 2px -1px rgba(220, 38, 38, 0.1);
  --shadow-primary-md: 0 4px 6px -1px rgba(220, 38, 38, 0.15), 0 2px 4px -2px rgba(220, 38, 38, 0.1);
  --shadow-primary-lg: 0 10px 15px -3px rgba(220, 38, 38, 0.2), 0 4px 6px -4px rgba(220, 38, 38, 0.1);

  /* ===========================================
     TRANSITIONS
     =========================================== */

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Specific Transitions */
  --transition-colors: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
  --transition-opacity: opacity 150ms ease;
  --transition-shadow: box-shadow 150ms ease;
  --transition-transform: transform 200ms ease;
  --transition-all: all 200ms ease;

  /* ===========================================
     Z-INDEX SCALE
     =========================================== */

  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* ===========================================
     CONTAINER WIDTHS
     =========================================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;

  /* ===========================================
     BREAKPOINTS (for reference)
     =========================================== */

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ===========================================
     COMPONENT-SPECIFIC TOKENS
     =========================================== */

  /* Buttons */
  --btn-height-sm: 32px;
  --btn-height-md: 40px;
  --btn-height-lg: 48px;
  --btn-padding-x-sm: var(--space-3);
  --btn-padding-x-md: var(--space-4);
  --btn-padding-x-lg: var(--space-6);

  /* Inputs */
  --input-height-sm: 32px;
  --input-height-md: 40px;
  --input-height-lg: 48px;
  --input-padding-x: var(--space-3);
  --input-border-width: 1px;

  /* Cards */
  --card-padding: var(--space-6);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-sm);
  --card-shadow-hover: var(--shadow-md);

  /* Navigation */
  --nav-height: 64px;
  --nav-height-mobile: 56px;

  /* ===========================================
     LEGACY COMPATIBILITY
     Keep old variable names for backward compatibility
     =========================================== */

  --primary-red: var(--color-primary-500);
  --bright-red: var(--color-primary-400);
  --dark-red: var(--color-primary-700);
  --white: #ffffff;
  --off-white: var(--color-gray-50);
  --gray: var(--color-gray-500);
  --dark-gray: var(--color-gray-700);
  --shadow: rgba(220, 38, 38, 0.15);
  --ice-blue: #e0f2fe;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

/* Focus Styles - Consistent across all interactive elements */
.focus-ring:focus,
.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-gray-50), 0 0 0 4px var(--color-primary-500);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Trust Badge Styles */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.trust-badge i {
  color: var(--color-success-500);
}

/* Security Indicator */
.security-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: var(--text-xs);
  color: var(--color-success-600);
  font-weight: var(--font-medium);
}

.security-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-success-500);
  border-radius: var(--radius-full);
}
