/**
 * DecasHub Canonical Design Tokens v1.0
 * Strict 60-30-10 Palette Architecture & Typography Scale
 * Zero external font/CDN dependency. WCAG 2.2 AA Compliant.
 */

:root {
  /* =========================================================================
     60% BASE CANVAS (Deep Sovereign Space & Slate)
     ========================================================================= */
  --bg-canvas: #090B10;
  --bg-surface-1: #0E121B;
  --bg-surface-2: #141A26;
  --bg-surface-elevated: #141A26;

  /* =========================================================================
     30% STRUCTURAL EDGES & TYPOGRAPHY
     ========================================================================= */
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-medium: rgba(148, 163, 184, 0.24);
  --border-focus: rgba(34, 211, 238, 0.5);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #94A3B8;
  --text-inverse: #04121A;

  /* =========================================================================
     10% ACCENT / ACTION (Sovereign Electric Cyan)
     ========================================================================= */
  --accent-cyan: #22D3EE;
  --accent-cyan-hover: #67E8F9;
  --accent-cyan-subtle: rgba(34, 211, 238, 0.12);
  --accent-cyan-glow: rgba(34, 211, 238, 0.25);

  /* Semantic State Tokens (Status Indicators Only - Never Pure Decoration) */
  --state-success: #34D399;
  --state-warning: #FBBF24;
  --state-error: #F87171;
  --state-info: #38BDF8;

  /* Typography Scale */
  --font-family-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale (8px Grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radius Scale */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === DECASHUB SOVEREIGN COLOR SYSTEM v2 (Da Vinci 360°) === */
:root {
  /* Base — Egemenlik Zemini */
  --color-base:        #04070F;
  --color-surface:     #0A1628;
  --color-raised:      #0F2040;
  --color-overlay:     rgba(4,7,15,0.85);

  /* Accent — Sinyal Camgöbeği */
  --color-cyan:        #22D3EE;
  --color-cyan-mid:    #0EA5E9;
  --color-cyan-lo:     rgba(34,211,238,0.10);
  --color-cyan-border: rgba(34,211,238,0.25);

  /* Value Gold — Sayısal Kanıt */
  --color-gold:        #F59E0B;
  --color-gold-lo:     rgba(245,158,11,0.10);
  --color-gold-border: rgba(245,158,11,0.25);

  /* Semantic */
  --color-success:     #10B981;
  --color-success-lo:  rgba(16,185,129,0.10);
  --color-warning:     #F59E0B;
  --color-error:       #EF4444;

  /* Typography */
  --color-text-primary:   #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-text-muted:     #475569;
  --color-text-inverse:   #04070F;

  /* Border */
  --color-border:        rgba(255,255,255,0.07);
  --color-border-hover:  rgba(255,255,255,0.14);
  --color-border-active: rgba(34,211,238,0.30);
  --color-border-gold:   rgba(245,158,11,0.30);

  /* Gradient */
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34,211,238,0.15) 0%, rgba(4,7,15,0) 70%);
  --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  --gradient-cyan: linear-gradient(135deg, #22D3EE 0%, #0EA5E9 100%);
  --gradient-surface: linear-gradient(180deg, #0A1628 0%, #04070F 100%);

  /* Shadow */
  --shadow-card:    0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-cyan:    inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 14px 0 rgba(34, 211, 238, 0.08), 0 8px 24px -8px rgba(0, 0, 0, 0.40);
  --shadow-gold:    0 0 0 1px rgba(245,158,11,0.15), 0 8px 24px -8px rgba(245,158,11,0.15);
  --shadow-hover:   0 8px 32px -8px rgba(0,0,0,0.5);

  /* Journey section ek token'lar */
  --color-journey-connector: linear-gradient(90deg, #22D3EE, #F59E0B);
  --shadow-glow-gold: 0 0 32px rgba(245, 158, 11, 0.25);
  --shadow-glow-cyan: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 16px 0 rgba(34, 211, 238, 0.08);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  0.875rem;
  --radius-xl:  1.25rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-fast:   all 0.15s ease;
  --transition-normal: all 0.25s cubic-bezier(0.16,1,0.3,1);
  --transition-slow:   all 0.4s cubic-bezier(0.16,1,0.3,1);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
}

:root[data-theme='light'],
html[data-theme='light'],
body.light-mode {
  --bg-canvas: #f8fafc;
  --bg-surface-1: #ffffff;
  --bg-surface-2: #f1f5f9;
  --bg-surface-elevated: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-focus: rgba(14, 116, 144, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-inverse: #ffffff;

  --accent-cyan: #0e7490;
  --accent-cyan-hover: #0891b2;
  --accent-cyan-subtle: rgba(14, 116, 144, 0.1);
  --accent-cyan-glow: rgba(14, 116, 144, 0.2);

  --color-base: #f8fafc;
  --color-surface: #ffffff;
  --color-raised: #f1f5f9;
  --color-overlay: rgba(255, 255, 255, 0.92);

  --color-cyan: #0e7490;
  --color-cyan-mid: #0891b2;
  --color-cyan-lo: rgba(14, 116, 144, 0.10);
  --color-cyan-border: rgba(14, 116, 144, 0.25);

  --color-gold: #b45309;
  --color-gold-lo: rgba(180, 83, 9, 0.10);
  --color-gold-border: rgba(180, 83, 9, 0.25);

  --color-text: #0f172a;
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #475569;
  --color-text-inverse: #ffffff;

  --color-border: rgba(15, 23, 42, 0.12);
  --color-border-hover: rgba(15, 23, 42, 0.22);
  --color-border-active: rgba(14, 116, 144, 0.35);

  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
