/**
 * Wifaq Design Tokens
 * Fintech "trust-first" — calming, premium, modern
 */

export const colors = {
  // Primary palette
  primary: {
    900: '#0B2341',  // Bleu nuit profond
    800: '#0F3460',
    700: '#153E75',
    600: '#1A4F8B',
    500: '#1E5FA0',  // Primary action
    400: '#3B82B8',
    300: '#6BA3D0',
    200: '#A3C9E8',
    100: '#D1E4F4',
    50:  '#EBF3FA',
  },

  // Secondary — Vert émeraude
  secondary: {
    900: '#064E3B',
    800: '#065F46',
    700: '#047857',
    600: '#059669',
    500: '#10B981',  // Vert émeraude principal
    400: '#34D399',
    300: '#6EE7B7',
    200: '#A7F3D0',
    100: '#D1FAE5',
    50:  '#ECFDF5',
  },

  // Accent — Or doux (du logo)
  accent: {
    900: '#78350F',
    800: '#92400E',
    700: '#B45309',
    600: '#D97706',
    500: '#C8A951',  // Or du logo Wifaq
    400: '#D4BC6A',
    300: '#E0CF8C',
    200: '#ECE2B3',
    100: '#F5F0D9',
    50:  '#FDFBF0',
  },

  // Neutrals
  neutral: {
    950: '#0A0A0B',
    900: '#1A1A1E',
    800: '#2D2D33',
    700: '#3F3F47',
    600: '#52525B',
    500: '#71717A',
    400: '#A1A1AA',
    300: '#D4D4D8',
    200: '#E4E4E7',
    100: '#F4F4F5',
    50:  '#FAFAFA',
    0:   '#FFFFFF',
  },

  // Semantic
  success: '#10B981',
  warning: '#F59E0B',
  error:   '#EF4444',
  info:    '#3B82F6',

  // Surface
  background: '#F8F9FC',
  surface:    '#FFFFFF',
  surfaceAlt: '#F1F3F8',
  overlay:    'rgba(10, 10, 11, 0.5)',

  // Brand (from logo)
  brand: {
    green:  '#1B6B4A',  // Vert du logo
    gold:   '#C8A951',  // Or du logo
    cream:  '#FDF8EF',  // Blanc cassé
  },
} as const;

export const spacing = {
  xxs: 2,
  xs:  4,
  sm:  8,
  md:  12,
  lg:  16,
  xl:  20,
  '2xl': 24,
  '3xl': 32,
  '4xl': 40,
  '5xl': 48,
  '6xl': 64,
  '7xl': 80,
} as const;

export const radii = {
  none: 0,
  sm:   4,
  md:   8,
  lg:   12,
  xl:   16,
  '2xl': 20,
  '3xl': 24,
  full: 9999,
} as const;

export const typography = {
  fontFamily: {
    regular:  'Inter_400Regular',
    medium:   'Inter_500Medium',
    semibold: 'Inter_600SemiBold',
    bold:     'Inter_700Bold',
  },
  fontSize: {
    xs:   11,
    sm:   13,
    base: 15,
    md:   17,
    lg:   20,
    xl:   24,
    '2xl': 28,
    '3xl': 34,
    '4xl': 40,
  },
  lineHeight: {
    tight:  1.2,
    normal: 1.5,
    relaxed: 1.7,
  },
} as const;

export const shadows = {
  sm: {
    shadowColor: '#000',
    shadowOffset: { width: 0, height: 1 },
    shadowOpacity: 0.05,
    shadowRadius: 2,
    elevation: 1,
  },
  md: {
    shadowColor: '#000',
    shadowOffset: { width: 0, height: 2 },
    shadowOpacity: 0.08,
    shadowRadius: 8,
    elevation: 3,
  },
  lg: {
    shadowColor: '#000',
    shadowOffset: { width: 0, height: 4 },
    shadowOpacity: 0.1,
    shadowRadius: 16,
    elevation: 6,
  },
  xl: {
    shadowColor: '#000',
    shadowOffset: { width: 0, height: 8 },
    shadowOpacity: 0.12,
    shadowRadius: 24,
    elevation: 10,
  },
} as const;

export const animation = {
  duration: {
    fast:    150,
    normal:  300,
    slow:    500,
    slower:  800,
  },
  easing: {
    ease:    'ease',
    easeIn:  'ease-in',
    easeOut: 'ease-out',
  },
} as const;
