/**
 * Design Tokens for Kebria Portfolio
 * Centralized design system variables
 */

:root,
body {
    /* ========== Colors ========== */
    
    /* Primary Colors */
    --color-primary: #667eea;
    --color-primary-hover: #5568d3;
    --color-primary-light: #8b9ef7;
    --color-primary-dark: #4c5ec4;
    
    /* Secondary Colors */
    --color-secondary: #764ba2;
    --color-secondary-hover: #653d8d;
    --color-secondary-light: #9367c5;
    --color-secondary-dark: #5a3a7d;
    
    /* Accent Colors */
    --color-accent: #f093fb;
    --color-accent-hover: #e67ff0;
    --color-accent-light: #f5b3fc;
    --color-accent-dark: #d96fe6;
    
    /* Text Colors */
    --color-text: #1d1d1f;
    --color-text-light: #6e6e73;
    --color-text-lighter: #86868b;
    --color-text-dark: #000000;
    
    /* Background Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-bg-dark: #1d1d1f;
    
    /* Surface Colors */
    --color-surface: #ffffff;
    --color-surface-hover: #f5f5f7;
    --color-surface-active: #e8e8ed;
    
    /* Border Colors */
    --color-border: #d2d2d7;
    --color-border-light: #e8e8ed;
    --color-border-dark: #86868b;
    
    /* State Colors */
    --color-success: #34c759;
    --color-warning: #ff9500;
    --color-error: #ff3b30;
    --color-info: #007aff;
    
    /* Financial Colors */
    --color-income: #34c759;
    --color-expense: #ff3b30;
    --color-balance: #007aff;
    
    /* ========== Typography ========== */
    
    /* Font Families */
    --font-primary: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;        /* 12px */
    --font-size-sm: 0.875rem;       /* 14px */
    --font-size-base: 1rem;         /* 16px */
    --font-size-md: 1.125rem;       /* 18px */
    --font-size-lg: 1.25rem;        /* 20px */
    --font-size-xl: 1.5rem;         /* 24px */
    --font-size-2xl: 2rem;          /* 32px */
    --font-size-3xl: 2.5rem;        /* 40px */
    --font-size-4xl: 3rem;          /* 48px */
    --font-size-5xl: 4rem;          /* 64px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.02em;
    --letter-spacing-wider: 0.05em;
    
    /* ========== Spacing ========== */
    
    --space-0: 0;
    --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 */
    --space-32: 8rem;      /* 128px */
    
    /* ========== Sizing ========== */
    
    --size-xs: 20rem;      /* 320px */
    --size-sm: 24rem;      /* 384px */
    --size-md: 28rem;      /* 448px */
    --size-lg: 32rem;      /* 512px */
    --size-xl: 36rem;      /* 576px */
    --size-2xl: 42rem;     /* 672px */
    --size-3xl: 48rem;     /* 768px */
    --size-4xl: 56rem;     /* 896px */
    --size-5xl: 64rem;     /* 1024px */
    --size-6xl: 72rem;     /* 1152px */
    --size-7xl: 80rem;     /* 1280px */
    
    /* ========== Border Radius ========== */
    
    --radius-none: 0;
    --radius-sm: 0.25rem;   /* 4px */
    --radius-base: 0.5rem;  /* 8px */
    --radius-md: 0.75rem;   /* 12px */
    --radius-lg: 1rem;      /* 16px */
    --radius-xl: 1.5rem;    /* 24px */
    --radius-2xl: 2rem;     /* 32px */
    --radius-full: 9999px;
    
    /* ========== Shadows ========== */
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.25);
    
    /* Inner Shadows */
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* ========== Transitions ========== */
    
    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 350ms;
    --transition-slower: 500ms;
    
    /* Easing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ========== Z-Index ========== */
    
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* ========== Breakpoints ========== */
    
    --breakpoint-xs: 480px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* ========== Container ========== */
    
    --container-xs: 100%;
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
    
    /* ========== Grid ========== */
    
    --grid-columns: 12;
    --grid-gap: var(--space-6);
    
    /* ========== Opacity ========== */
    
    --opacity-0: 0;
    --opacity-10: 0.1;
    --opacity-20: 0.2;
    --opacity-30: 0.3;
    --opacity-40: 0.4;
    --opacity-50: 0.5;
    --opacity-60: 0.6;
    --opacity-70: 0.7;
    --opacity-80: 0.8;
    --opacity-90: 0.9;
    --opacity-100: 1;
    
    /* ========== Blur ========== */
    
    --blur-none: 0;
    --blur-sm: 4px;
    --blur-base: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 24px;
    --blur-2xl: 40px;
    --blur-3xl: 64px;
}

/* ========== Dark Mode Tokens ========== */

[data-theme="dark"] {
    /* Colors */
    --color-primary: #8d8dff;
    --color-primary-hover: #a0a0ff;
    --color-primary-light: #b3b3ff;
    --color-primary-dark: #7a7aff;
    
    --color-secondary: #1c1c1e;
    --color-secondary-hover: #2c2c2e;
    --color-secondary-light: #3a3a3c;
    --color-secondary-dark: #000000;
    
    --color-accent: #0a84ff;
    --color-accent-hover: #409cff;
    --color-accent-light: #64acff;
    --color-accent-dark: #0070e0;
    
    /* Text Colors */
    --color-text: #f5f5f7;
    --color-text-light: #a0a0a5;
    --color-text-lighter: #6e6e73;
    --color-text-dark: #ffffff;
    
    /* Background Colors */
    --color-bg: #000000;
    --color-bg-alt: #1c1c1e;
    --color-bg-dark: #000000;
    
    /* Surface Colors */
    --color-surface: #2c2c2e;
    --color-surface-hover: #3a3a3c;
    --color-surface-active: #48484a;
    
    /* Border Colors */
    --color-border: #48484a;
    --color-border-light: #3a3a3c;
    --color-border-dark: #6e6e73;
    
    /* State Colors */
    --color-success: #32d74b;
    --color-warning: #ff9f0a;
    --color-error: #ff453a;
    --color-info: #0a84ff;
    
    /* Shadows (adjusted for dark mode) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-base: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.7);
}

/* ========== Utility Classes ========== */

/* Apply design tokens as utility classes */
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-surface { background-color: var(--color-surface); }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-light); }
.text-muted { color: var(--color-text-lighter); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.transition-fast { transition: all var(--transition-fast) var(--ease-out); }
.transition-base { transition: all var(--transition-base) var(--ease-out); }
.transition-slow { transition: all var(--transition-slow) var(--ease-out); }


