/**
 * FoksTech Design System Variables
 * Theme: Futuristic technology startup with complete Dark Mode & Light Mode systems,
 * volumetric glows, glassmorphism, and responsive design tokens.
 */

/* ==========================================================================
   DARK THEME (Default)
   ========================================================================== */
:root,
[data-theme="dark"] {
  /* Colors - Backgrounds (Midnight Navy / Near-Black) */
  --bg-main: #050811;
  --bg-secondary: #0A0F1D;
  --bg-card: #0E1626;
  --bg-card-hover: #142036;
  --bg-surface-elevated: #182640;
  --bg-glass: rgba(14, 22, 38, 0.82);
  --bg-glass-card: rgba(16, 26, 43, 0.65);

  /* Colors - Accents */
  --accent-primary: #28D7F2;
  --accent-primary-hover: #58E1F7;
  --accent-primary-glow: rgba(40, 215, 242, 0.28);
  --accent-primary-faint: rgba(40, 215, 242, 0.1);

  --accent-electric: #3B82F6;
  --accent-electric-hover: #60A5FA;
  --accent-electric-glow: rgba(59, 130, 246, 0.28);

  --accent-secondary: #8B5CF6;
  --accent-secondary-hover: #A78BFA;
  --accent-secondary-glow: rgba(139, 92, 246, 0.28);
  --accent-secondary-faint: rgba(139, 92, 246, 0.1);

  /* Gradients */
  --grad-accent: linear-gradient(135deg, #28D7F2 0%, #3B82F6 50%, #8B5CF6 100%);
  --grad-accent-subtle: linear-gradient(135deg, rgba(40, 215, 242, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  --grad-card: linear-gradient(145deg, rgba(16, 26, 43, 0.9) 0%, rgba(10, 16, 28, 0.95) 100%);
  --grad-hero-radial: radial-gradient(circle at 50% 15%, rgba(40, 215, 242, 0.15) 0%, rgba(139, 92, 246, 0.08) 35%, transparent 70%);

  /* Typography Colors */
  --text-main: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #050811;

  /* Borders & Dividers */
  --border-color: #1E293B;
  --border-subtle: #131E31;
  --border-hover: #334155;
  --border-accent: rgba(40, 215, 242, 0.45);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.65);
  --shadow-glow-cyan: 0 0 25px rgba(40, 215, 242, 0.35);
  --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.35);

  /* Status */
  --color-success: #10B981;
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-success-border: rgba(16, 185, 129, 0.35);
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #22C55E;
}

/* ==========================================================================
   LIGHT THEME
   ========================================================================== */
[data-theme="light"] {
  /* Colors - Backgrounds (Clean White / Off-White) */
  --bg-main: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-surface-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.75);

  /* Colors - Accents (Balanced for high contrast on light bg) */
  --accent-primary: #0284C7;
  --accent-primary-hover: #0369A1;
  --accent-primary-glow: rgba(2, 132, 199, 0.2);
  --accent-primary-faint: rgba(2, 132, 199, 0.08);

  --accent-electric: #2563EB;
  --accent-electric-hover: #1D4ED8;
  --accent-electric-glow: rgba(37, 99, 235, 0.2);

  --accent-secondary: #7C3AED;
  --accent-secondary-hover: #6D28D9;
  --accent-secondary-glow: rgba(124, 58, 237, 0.2);
  --accent-secondary-faint: rgba(124, 58, 237, 0.08);

  /* Gradients */
  --grad-accent: linear-gradient(135deg, #0284C7 0%, #2563EB 50%, #7C3AED 100%);
  --grad-accent-subtle: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  --grad-card: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --grad-hero-radial: radial-gradient(circle at 50% 15%, rgba(2, 132, 199, 0.12) 0%, rgba(124, 58, 237, 0.06) 35%, transparent 70%);

  /* Typography Colors */
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-hover: #CBD5E1;
  --border-accent: rgba(2, 132, 199, 0.4);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-glow-cyan: 0 0 20px rgba(2, 132, 199, 0.2);
  --shadow-glow-purple: 0 0 20px rgba(124, 58, 237, 0.2);

  /* Status */
  --color-success: #059669;
  --color-success-bg: rgba(5, 150, 105, 0.1);
  --color-success-border: rgba(5, 150, 105, 0.3);
  --color-whatsapp: #16A34A;
  --color-whatsapp-hover: #15803D;
}

/* Common Universal Tokens */
:root {
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --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-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.75;

  --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 */

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --container-max-width: 1240px;
  --container-narrow-width: 860px;
  --container-padding: 1.5rem;

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  --z-base: 1;
  --z-sticky: 100;
  --z-header: 500;
  --z-dropdown: 600;
  --z-chatbot: 800;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-preloader: 1500;
  --z-skip-link: 2000;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms !important;
    --transition-normal: 0.01ms !important;
    --transition-slow: 0.01ms !important;
  }
}
