/* ========================================
   SHARED CSS VARIABLES - TECHMYNDS BRAND
   Standardized across all pages
   ======================================== */

:root {
  /* Brand Colors - Standardized */
  --color-primary: #c62828;
  --color-primary-dark: #991b1b;
  --color-primary-light: #ef5350;
  --color-primary-glow: rgba(198, 40, 40, 0.35);
  
  /* Secondary Colors */
  --color-secondary-dark: #800000;
  --color-secondary: #660000;
  --color-secondary-light: #a00000;
  
  /* Background Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #fafafa;
  --color-bg-base: #f8f9fa;
  --color-light-bg: #fef5f5;
  
  /* Text Colors */
  --color-text-main: #0f172a;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #5a5a5a;
  --color-text-muted: #475569;
  --color-text-medium: #555b6e;
  --color-text-light: #666;
  --color-text-gray: #4a4a4a;
  --color-text-dark: #1a1a2e;
  
  /* Border Colors */
  --color-border: #e2e8f0;
  --color-border-light: #e5e7eb;
  --border-color: #ffe5e5;
  
  /* White */
  --color-white: #ffffff;
  
  /* Dark */
  --color-dark: #1a1a2e;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #c62828 0%, #991b1b 100%);
  --gradient-secondary: linear-gradient(135deg, #800000, #a00000);
  --gradient-accent: linear-gradient(135deg, #ff4444 0%, #c00000 100%);
  
  /* 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-premium: 0 30px 60px -12px rgba(192, 0, 0, 0.15);
  --shadow-primary: rgba(192, 0, 0, 0.25);
  --shadow-light: rgba(192, 0, 0, 0.1);
  
  /* Topbar */
  --topbar-bg: #0d1b2a;
  --topbar-text: #94a3b8;
  --topbar-text-hover: #e11d48;
  --topbar-border: 1px solid rgba(255, 255, 255, 0.07);
  --topbar-height: 40px;
  
  /* Navbar */
  --nav-height: 88px;
  --nav-height-mobile: 72px;
  --header-offset: calc(var(--topbar-height) + var(--nav-height));
  --header-offset-mobile: calc(var(--topbar-height) + var(--nav-height-mobile));
  --nav-bg: #ffffff;
  --nav-bg-scrolled: #ffffff;
  --nav-text: #334155;
  --nav-text-hover: #c62828;
  --nav-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  --nav-shadow-scrolled: 0 4px 24px rgba(15, 23, 42, 0.1);
  --nav-border-bottom: 3px solid #c62828;
  --nav-accent-line: #e2e8f0;
  
  /* Typography */
  --font-primary: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-nav: var(--font-primary);
  --font-head: var(--font-primary);
  --font-family-primary: var(--font-primary);
  --font-family-heading: "Poppins", sans-serif;
  --font-family-serif: "Poppins", sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s ease;
  
  /* Success/Warning Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --accent-color: #ff4444;
  --accent-dark: #cc0000;

  /* Standardized Responsive Breakpoints */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;

  /* Enterprise Spacing Scale (8px base unit) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;
  --space-48: 192px;
  --space-64: 256px;

  /* Section Spacing */
  --section-padding-sm: var(--space-12);
  --section-padding-md: var(--space-16);
  --section-padding-lg: var(--space-24);
  --section-padding-xl: var(--space-32);

  /* Enterprise Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */
  --font-size-7xl: 4.5rem;    /* 72px */
  --font-size-8xl: 6rem;      /* 96px */

  /* Typography Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Typography 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;

  /* Border Radius Scale */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Animation Durations */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  --duration-slowest: 1000ms;

  /* Animation Easing */
  --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-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ─────────────────────────────────────────
     CANONICAL COMPONENT TOKENS
     Preferred names for new/refactored CSS.
     Existing references to older tokens (--color-*, --radius-*, --space-*) still work.
     ───────────────────────────────────────── */

  /* Cards */
  --card-radius: var(--radius-lg);            /* 12px */
  --card-padding: var(--space-8);             /* 32px */
  --card-hover-lift: -4px;
  --card-shadow: var(--shadow-md);
  --card-shadow-hover: var(--shadow-lg);

  /* Buttons */
  --btn-radius: 10px;                          /* primary/secondary CTAs */
  --btn-radius-pill: 50px;                     /* pill buttons */

  /* Form inputs */
  --input-radius: 8px;
  --input-padding: 14px 16px;
  --input-min-height: 48px;                    /* WCAG 2.5.5 touch target */

  /* Focus ring */
  --focus-ring: 3px solid var(--color-primary);
  --focus-ring-offset: 2px;

  /* Canonical text-color aliases */
  --text-primary: var(--color-text-main);      /* darkest body text */
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);        /* now 7.46:1 — passes AAA */
  --text-on-dark: var(--color-white);
}

/* =========================================
   REDUCED MOTION (WCAG 2.3.3)
   Honours OS-level setting to minimise 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;
  }
}
