/* Design Tokens - OOM Solutions with Lapse & Meghmitra Theme */

/* Local Fonts */
@font-face {
  font-family: 'Product Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/ProductSans-Regular.woff') format('woff'),
       local('Product Sans'), local('Google Sans Regular');
}

@font-face {
  font-family: 'Product Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/ProductSans-Bold.woff') format('woff'),
       local('Product Sans Bold'), local('Google Sans Bold');
}

@font-face {
  font-family: 'Product Sans';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/ProductSans-Black.woff') format('woff'),
       local('Product Sans Black');
}

:root {
  /* Lapse & Meghmitra Base Theme Tokens */
  --canvas: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-3xl: clamp(2.5rem, 2rem + 3vw, 4rem);

  --ease-soft: cubic-bezier(.2, .71, .2, .99);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --transition-fast: 150ms var(--ease-soft);
  --transition-base: 300ms var(--ease-soft);
  --transition-slow: 500ms var(--ease-soft);
  --glass-sat: 180%;

  --font: 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Menlo, monospace;

  /* Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.3vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.8vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.2vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.8vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 2.3rem + 2.5vw, 4.25rem);

  /* OOM Brand Colors from Logo */
  --oom-blue: #2558b8;
  --oom-blue-light: #447eeb;
  --oom-red: #ef525d;
  --oom-yellow: #ffcc28;
  --oom-orange: #f58634;
  --oom-purple: #803a8c;
  --oom-teal: #57bf9f;

  /* Light Theme Defaults */
  --color-bg: #f8fafc;
  --color-surface: rgba(255, 255, 255, 0.82);
  --color-surface-hover: rgba(255, 255, 255, 0.95);
  --color-surface-card: #ffffff;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-glow: rgba(37, 88, 184, 0.25);
  
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-dark: #64748b;
  --color-text-inverse: #ffffff;

  --color-accent: #2558b8;
  --color-accent-hover: #1e4594;
  --color-accent-light: #dbeafe;

  /* Aurora Gradient Colors (OOM Logo Palette - Light Theme) */
  --aurora-1: rgba(37, 88, 184, 0.30);  /* OOM Sapphire Blue */
  --aurora-2: rgba(239, 82, 93, 0.24);  /* OOM Coral Red */
  --aurora-3: rgba(255, 204, 40, 0.26); /* OOM Radiant Gold */
  --aurora-4: rgba(245, 134, 52, 0.25); /* OOM Electric Orange */

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(15, 23, 42, 0.09);
  --glass-blur: 16px;
  --glass-shadow: 0 12px 36px -10px rgba(15, 23, 42, 0.08);

  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
}

/* Dark Theme - Cosmic Nebula Deep Blue & Violet Palette */
[data-theme='dark'] {
  --color-bg: #090c1e;
  --color-surface: rgba(26, 22, 58, 0.48);
  --color-surface-hover: rgba(38, 30, 82, 0.68);
  --color-surface-card: #12142f;
  --color-border: rgba(140, 120, 200, 0.14);
  --color-border-glow: rgba(138, 92, 246, 0.45);

  --color-text: #f3f2fb;
  --color-text-muted: #a39ec4;
  --color-text-dark: #6f6b94;
  --color-text-inverse: #090c1e;

  --color-accent: #3b82f6;
  --color-accent-hover: #60a5fa;
  --color-accent-light: rgba(59, 130, 246, 0.2);

  /* Aurora Gradient Colors (Extracted from Cosmic Image) */
  --aurora-1: rgba(105, 50, 150, 0.75); /* Vibrant Nebula Violet-Purple */
  --aurora-2: rgba(145, 75, 185, 0.65); /* Glowing Magenta-Plum */
  --aurora-3: rgba(18, 30, 72, 0.88);   /* Deep Cosmic Midnight Indigo */
  --aurora-4: rgba(75, 70, 135, 0.65);  /* Celestial Periwinkle Glow */

  /* Dark Glass Effects */
  --glass-bg: rgba(18, 17, 44, 0.72);
  --glass-border: rgba(180, 160, 240, 0.15);
  --glass-blur: 18px;
  --glass-shadow: 0 16px 40px -10px rgba(5, 4, 15, 0.70);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}
