/* Stokkap — Design System */

/* Display Font: Satoshi - geometric, modern, confident */
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Bold.woff2?v=mlzdff6p') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Black.woff2?v=mlzdff6p') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Body Font: General Sans - clean, professional */
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Regular.woff2?v=mlzdff6p') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Medium.woff2?v=mlzdff6p') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Semibold.woff2?v=mlzdff6p') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
   Light Mode (Default)
   ===================================================== */
:root {
  /* Primary Colors - Stokkap Brand */
  --color-primary: #005F73;
  --color-primary-light: #0A9396;
  --color-primary-dark: #003D4D;
  --color-accent: #94D2BD;
  --color-accent-soft: rgba(148, 210, 189, 0.15);

  /* Backgrounds */
  --color-bg-deep: #F4F6F8;
  --color-bg: #FFFFFF;
  --color-bg-elevated: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-bg-card-hover: #f8fafc;
  --color-bg-muted: #F4F6F8;
  --color-bg-dark: #0f172a;

  /* Text hierarchy */
  --color-text: #1A1A1A;
  --color-text-secondary: #334155;
  --color-text-muted: #455061;
  --color-text-light: #94a3b8;
  --color-text-ghost: rgba(26, 26, 26, 0.5);

  /* Borders & Lines */
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-border-accent: rgba(0, 95, 115, 0.3);

  /* Semantic */
  --color-success: #0f7b57;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #0A9396;

  /* Scanner glow */
  --color-scan-glow: #94D2BD;

  /* Typography */
  --font-display: 'Satoshi', 'General Sans', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'General Sans', 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing scale */
  --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;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 95, 115, 0.15);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* Layout */
  --container-max: 1280px;
  --container-tight: 960px;
  --header-height: 72px;

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 250;
  --z-modal: 300;
  --z-toast: 400;

  /* Logo filter */
  --filter-logo: none;

  /* Nav overlay */
  --nav-overlay-bg: rgba(255, 255, 255, 0.96);
}

/* =====================================================
   Dark Mode - Manual toggle via data attribute
   ===================================================== */
[data-theme="dark"] {
  /* Primary Colors - Stokkap Brand (lighter for dark mode) */
  --color-primary: #0A9396;
  --color-primary-light: #94D2BD;
  --color-primary-dark: #005F73;
  --color-accent: #005F73;
  --color-accent-soft: rgba(10, 147, 150, 0.15);

  /* Backgrounds */
  --color-bg-deep: #0f172a;
  --color-bg: #0f172a;
  --color-bg-elevated: #1e293b;
  --color-bg-card: #1e293b;
  --color-bg-card-hover: #334155;
  --color-bg-muted: #1e293b;
  --color-bg-dark: #020617;

  /* Text hierarchy */
  --color-text: #e2e8f0;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-light: #64748b;
  --color-text-ghost: rgba(226, 232, 240, 0.5);

  /* Borders & Lines */
  --color-border: #334155;
  --color-border-strong: #475569;
  --color-border-accent: rgba(10, 147, 150, 0.4);

  /* Semantic */
  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-error: #f87171;
  --color-info: #38bdf8;

  /* Scanner glow */
  --color-scan-glow: #0A9396;

  /* Shadows (darker for dark mode) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(10, 147, 150, 0.2);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.4);

  /* Logo filter for dark mode */
  --filter-logo: contrast(0.5) saturate(2) brightness(1.8);

  /* Nav overlay */
  --nav-overlay-bg: rgba(2, 6, 23, 0.94);
}

/* =====================================================
   Dark Mode - Auto based on system preference
   ===================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Primary Colors - Stokkap Brand (lighter for dark mode) */
    --color-primary: #0A9396;
    --color-primary-light: #94D2BD;
    --color-primary-dark: #005F73;
    --color-accent: #005F73;
    --color-accent-soft: rgba(10, 147, 150, 0.15);

    /* Backgrounds */
    --color-bg-deep: #0f172a;
    --color-bg: #0f172a;
    --color-bg-elevated: #1e293b;
    --color-bg-card: #1e293b;
    --color-bg-card-hover: #334155;
    --color-bg-muted: #1e293b;
    --color-bg-dark: #020617;

    /* Text hierarchy */
    --color-text: #e2e8f0;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-text-light: #64748b;
    --color-text-ghost: rgba(226, 232, 240, 0.5);

    /* Borders & Lines */
    --color-border: #334155;
    --color-border-strong: #475569;
    --color-border-accent: rgba(10, 147, 150, 0.4);

    /* Semantic */
    --color-success: #22c55e;
    --color-warning: #fbbf24;
    --color-error: #f87171;
    --color-info: #38bdf8;

    /* Scanner glow */
    --color-scan-glow: #0A9396;

    /* Shadows (darker for dark mode) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(10, 147, 150, 0.2);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.4);

    /* Logo filter for dark mode */
    --filter-logo: contrast(0.5) saturate(2) brightness(1.8);

    /* Nav overlay */
    --nav-overlay-bg: rgba(2, 6, 23, 0.94);
  }
}
