/**
 * Rank Hacker Blocks - Global Styles
 * CSS Variables & Design System
 * 
 * @package Rank_Hacker_Blocks
 * @version 1.0.0
 */

/* ========================================
   CSS VARIABLES - EDITORIAL DRAMATIC THEME
   ======================================== */

:root {
  /* ========================================
     COLORS - Editorial Dramatic Palette
     ======================================== */
  
  /* Primary Colors */
  --color-primary: #5B4AB5;              /* Rich purple */
  --color-primary-light: #7B6BC5;        /* Light purple */
  --color-primary-dark: #2D1B69;         /* Deep purple */
  --color-primary-darker: #1A0F3F;       /* Darkest purple */
  
  /* Secondary Colors */
  --color-secondary: #6BA6FF;            /* Bright blue */
  --color-secondary-light: #A3C9FF;      /* Light blue */
  --color-secondary-dark: #4A7FD9;       /* Dark blue */
  
  /* Accent Colors */
  --color-accent: #E67E22;               /* Orange CTA */
  --color-accent-light: #F39C5A;         /* Light orange */
  --color-accent-dark: #CA6510;          /* Dark orange */
  
  /* Neutral Colors */
  --color-dark-bg: #0A0A0F;              /* Near black */
  --color-dark: #1A1A1A;                 /* Dark gray */
  --color-gray-dark: #4A5568;            /* Dark gray text */
  --color-gray: #718096;                 /* Medium gray */
  --color-gray-light: #CBD5E0;           /* Light gray */
  --color-light-bg: #F8F9FA;             /* Off white */
  --color-white: #FFFFFF;                /* Pure white */
  
  /* Semantic Colors */
  --color-success: #48BB78;              /* Green */
  --color-warning: #F6AD55;              /* Orange */
  --color-error: #F56565;                /* Red */
  --color-info: #4299E1;                 /* Blue */
  
  /* Overlay Colors */
  --overlay-dark: rgba(10, 10, 15, 0.7);
  --overlay-primary: rgba(91, 74, 181, 0.85);
  --overlay-gradient: linear-gradient(
    135deg,
    rgba(45, 27, 105, 0.85) 0%,
    rgba(91, 74, 181, 0.75) 50%,
    rgba(107, 166, 255, 0.65) 100%
  );
  
  
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  /* Font Families */
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-accent: 'IBM Plex Mono', 'Courier New', monospace;
  
  /* Font Sizes - Dramatic Scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-4xl: 56px;
  --text-5xl: 72px;
  --text-6xl: 96px;
  --text-hero: 120px;
  --text-display: 180px;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  
  /* ========================================
     SPACING - Generous Scale
     ======================================== */
  
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  --space-3xl: 200px;
  
  
  /* ========================================
     LAYOUT
     ======================================== */
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-max: 1400px;
  --container-full: 100%;
  
  /* Container Padding */
  --container-padding-mobile: 20px;
  --container-padding-tablet: 40px;
  --container-padding-desktop: 48px;
  
  /* Grid Gaps */
  --gap-xs: 12px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --gap-2xl: 64px;
  
  
  /* ========================================
     BORDERS & RADIUS
     ======================================== */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Border Widths */
  --border-width-thin: 1px;
  --border-width-normal: 2px;
  --border-width-thick: 3px;
  --border-width-heavy: 4px;
  
  /* Border Colors */
  --border-color-light: var(--color-gray-light);
  --border-color-normal: var(--color-gray);
  --border-color-dark: var(--color-gray-dark);
  
  
  /* ========================================
     SHADOWS - Dramatic Depth
     ======================================== */
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.3);
  --shadow-dramatic: 0 60px 120px rgba(0, 0, 0, 0.4);
  
  /* Colored Shadows */
  --shadow-primary: 0 8px 24px rgba(91, 74, 181, 0.3);
  --shadow-secondary: 0 8px 24px rgba(107, 166, 255, 0.3);
  --shadow-accent: 0 8px 24px rgba(230, 126, 34, 0.4);
  
  
  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */
  
  /* Transition Speeds */
  --transition-fast: 0.15s;
  --transition-base: 0.3s;
  --transition-slow: 0.6s;
  --transition-slower: 1s;
  
  /* Easing Functions */
  --ease-linear: linear;
  --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-dramatic: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Combined Transitions */
  --transition-all-fast: all var(--transition-fast) var(--ease-in-out);
  --transition-all-base: all var(--transition-base) var(--ease-in-out);
  --transition-all-slow: all var(--transition-slow) var(--ease-dramatic);
  
  
  /* ========================================
     Z-INDEX LAYERS
     ======================================== */
  
  --z-behind: -1;
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-top: 999;
  
  
  /* ========================================
     EFFECTS
     ======================================== */
  
  /* Backdrop Blur */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
  
  /* Grayscale */
  --grayscale: grayscale(100%);
  --grayscale-partial: grayscale(50%);
  
  /* Opacity */
  --opacity-disabled: 0.5;
  --opacity-hover: 0.8;
}


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

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  margin-bottom: var(--space-md);
  font-weight: var(--weight-normal);
  line-height: var(--leading-tight);
  color: var(--color-dark);
}

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

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

h3, .h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-medium);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
}

h6, .h6 {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-gray-dark);
}

p {
  margin-bottom: var(--space-md);
}

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

a:hover {
  color: var(--color-primary-dark);
}

strong, b {
  font-weight: var(--weight-bold);
}

em, i {
  font-style: italic;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-mobile);
  padding-right: var(--container-padding-mobile);
}

.section {
  padding: 60px 20px;
}

/* Responsive Typography Mobile First */
@media (min-width: 768px) {
  .container {
    padding-left: var(--container-padding-tablet);
    padding-right: var(--container-padding-tablet);
  }
  
  .section {
    padding: 100px 40px;
  }
  
  h1, .h1 {
    font-size: var(--text-6xl);
  }
  
  h2, .h2 {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--container-padding-desktop);
    padding-right: var(--container-padding-desktop);
  }
  
  .section {
    padding: 140px 48px;
  }
}

/* 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-width: 0;
}
