/**
 * LVL UP Media Design System
 * Inspired by levelupmedia.pl
 * Version: 2.0.0
 * Date: 2026-02-13
 */

:root {
  /* ============================================
     COLORS
     ============================================ */
  
  /* Brand Colors */
  --color-brand: #FF6B35;
  --color-brand-hover: #E85A25;
  --color-brand-light: rgba(255, 107, 53, 0.1);
  --color-brand-shadow: rgba(255, 107, 53, 0.3);
  
  /* Neutrals - Black */
  --color-black: #030303;
  --color-black-soft: #1F2937;
  
  /* Neutrals - White */
  --color-white: #FFFFFF;
  
  /* Greys Scale (8 levels) */
  --color-grey-50: #F9FAFB;
  --color-grey-100: #F3F4F6;
  --color-grey-200: #E5E7EB;
  --color-grey-300: #D1D5DB;
  --color-grey-400: #9CA3AF;
  --color-grey-500: #6B7280;
  --color-grey-600: #4B5563;
  --color-grey-700: #374151;
  --color-grey-800: #1F2937;
  
  /* Semantic Colors */
  --color-success: #10B981;
  --color-success-light: #D1FAE5;
  --color-warning: #F59E0B;
  --color-warning-light: #FEF3C7;
  --color-error: #EF4444;
  --color-error-light: #FEE2E2;
  --color-info: #3B82F6;
  --color-info-light: #DBEAFE;
  
  /* Background Colors */
  --bg-primary: var(--color-white);
  --bg-secondary: var(--color-grey-50);
  --bg-tertiary: var(--color-grey-100);
  --bg-dark: var(--color-black);
  --bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* Text Colors */
  --text-primary: var(--color-black);
  --text-secondary: var(--color-grey-600);
  --text-tertiary: var(--color-grey-500);
  --text-disabled: var(--color-grey-400);
  --text-inverse: var(--color-white);
  --text-brand: var(--color-brand);
  
  /* Border Colors */
  --border-default: var(--color-grey-200);
  --border-medium: var(--color-grey-300);
  --border-strong: var(--color-grey-400);
  --border-brand: var(--color-brand);
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                  Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 
               'Courier New', 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: 2rem;        /* 32px */
  --text-4xl: 2.5rem;      /* 40px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 4rem;        /* 64px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  
  /* ============================================
     SPACING
     ============================================ */
  
  --space-0: 0;
  --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-28: 7rem;        /* 112px */
  --space-32: 8rem;        /* 128px */
  
  /* ============================================
     SIZING
     ============================================ */
  
  --size-xs: 20rem;        /* 320px */
  --size-sm: 24rem;        /* 384px */
  --size-md: 28rem;        /* 448px */
  --size-lg: 32rem;        /* 512px */
  --size-xl: 36rem;        /* 576px */
  --size-2xl: 42rem;       /* 672px */
  --size-3xl: 48rem;       /* 768px */
  --size-4xl: 56rem;       /* 896px */
  --size-5xl: 64rem;       /* 1024px */
  --size-6xl: 72rem;       /* 1152px */
  
  /* ============================================
     BORDERS
     ============================================ */
  
  --border-width-0: 0;
  --border-width-1: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
  
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius-default: 0.5rem; /* 8px */
  --radius-md: 0.75rem;    /* 12px */
  --radius-lg: 1rem;       /* 16px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-2xl: 2rem;      /* 32px */
  --radius-full: 9999px;
  
  /* ============================================
     SHADOWS
     ============================================ */
  
  --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-default: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 12px -2px rgba(0, 0, 0, 0.1), 
               0 4px 8px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 
               0 8px 16px -8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 32px -8px rgba(0, 0, 0, 0.15), 
               0 12px 24px -12px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
  --shadow-brand: 0 8px 16px rgba(255, 107, 53, 0.3);
  --shadow-brand-lg: 0 12px 24px rgba(255, 107, 53, 0.4);
  
  /* ============================================
     TRANSITIONS
     ============================================ */
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* ============================================
     Z-INDEX
     ============================================ */
  
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-appearance: none;
}

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

@media (max-width: 1440px) {
  html {
    font-size: calc(0.5945945945945945rem + 0.4504504504504505vw);
  }
}

@media (max-width: 996px) {
  html {
    font-size: 1rem;
  }
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  margin: 0;
  padding: 0;
}

/* ============================================
   TYPOGRAPHY 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); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-brand { color: var(--text-brand); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-white { color: var(--text-inverse); }

.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: var(--tracking-normal); }
.tracking-wide { letter-spacing: var(--tracking-wide); }

/* ============================================
   HEADING STYLES
   ============================================ */

.heading-h1,
.heading-h2,
.heading-h3,
.heading-h4,
.heading-h5 {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0;
  line-height: var(--leading-tight);
}

.heading-h1 {
  font-size: var(--text-6xl);
  letter-spacing: var(--tracking-tight);
}

.heading-h2 {
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-tight);
}

.heading-h3 {
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
}

.heading-h4 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

.heading-h5 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

/* Mobile Typography Adjustments */
@media (max-width: 767px) {
  .heading-h1 { font-size: var(--text-4xl); }
  .heading-h2 { font-size: var(--text-3xl); }
  .heading-h3 { font-size: var(--text-2xl); }
  .heading-h4 { font-size: var(--text-xl); }
  .heading-h5 { font-size: var(--text-lg); }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
