/**
 * Design Tokens - Blue Merle Australian Shepherd Inspired
 *
 * This file contains all design tokens for the classroom tools website.
 * Inspired by the natural colors of Blue Merle Australian Shepherds:
 * - Blue-gray slate (primary)
 * - Charcoal black (text/strong emphasis)
 * - Copper/tan (warm accents)
 * - Silver/white (neutral backgrounds)
 */

:root {
  /* ========================================
     COLOR SYSTEM
     ======================================== */

  /* Primary Colors - Blue-Gray Slate */
  --color-primary-50: #f5f7f9;
  --color-primary-100: #ebeef2;
  --color-primary-200: #d3dae3;
  --color-primary-300: #acb9c9;
  --color-primary-400: #8899aa;
  --color-primary-500: #6D8196;  /* Main brand color */
  --color-primary-600: #5a6b7e;
  --color-primary-700: #485566;
  --color-primary-800: #3a4552;
  --color-primary-900: #2d3640;

  /* Secondary Colors - Copper/Tan Accent */
  --color-secondary-50: #fef6f0;
  --color-secondary-100: #fceade;
  --color-secondary-200: #f9d3ba;
  --color-secondary-300: #f5b38b;
  --color-secondary-400: #de8e65;
  --color-secondary-500: #C68346;  /* Main accent color */
  --color-secondary-600: #a86d3b;
  --color-secondary-700: #8a5730;
  --color-secondary-800: #6f4627;
  --color-secondary-900: #58381f;

  /* Neutral Colors - Silver to Charcoal */
  --color-neutral-50: #f9fafb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5db;
  --color-neutral-400: #9ca3af;
  --color-neutral-500: #6b7280;
  --color-neutral-600: #4b5563;
  --color-neutral-700: #374151;
  --color-neutral-800: #1f2937;
  --color-neutral-900: #111827;

  /* Charcoal - Strong Text */
  --color-charcoal: #323232;
  --color-charcoal-light: #4a4a4a;
  --color-charcoal-dark: #1a1a1a;

  /* Silver - Light Backgrounds */
  --color-silver: #C4C4C4;
  --color-silver-light: #e8e8e8;
  --color-silver-dark: #9a9a9a;

  /* Semantic Colors */
  --color-success-50: #f0fdf4;
  --color-success-100: #dcfce7;
  --color-success-200: #bbf7d0;
  --color-success-300: #86efac;
  --color-success-400: #4ade80;
  --color-success-500: #22BB33;
  --color-success-600: #16a34a;
  --color-success-700: #15803d;
  --color-success-800: #166534;
  --color-success-900: #14532d;

  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-200: #fecaca;
  --color-error-300: #fca5a5;
  --color-error-400: #f87171;
  --color-error-500: #BB2124;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;
  --color-error-800: #991b1b;
  --color-error-900: #7f1d1d;

  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-300: #fcd34d;
  --color-warning-400: #fbbf24;
  --color-warning-500: #F0AD4E;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  --color-warning-800: #92400e;
  --color-warning-900: #78350f;

  --color-info-50: #f0f9ff;
  --color-info-100: #e0f2fe;
  --color-info-200: #bae6fd;
  --color-info-300: #7dd3fc;
  --color-info-400: #38bdf8;
  --color-info-500: #5BC0DE;
  --color-info-600: #0284c7;
  --color-info-700: #0369a1;
  --color-info-800: #075985;
  --color-info-900: #0c4a6e;

  /* White & Black */
  --color-white: #ffffff;
  --color-black: #000000;

  /* ========================================
     TYPOGRAPHY SYSTEM
     ======================================== */

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Font Sizes - 1.250 (Major Third) Scale */
  --text-xs: 0.64rem;      /* 10.24px */
  --text-sm: 0.8rem;       /* 12.8px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.25rem;      /* 20px */
  --text-xl: 1.563rem;     /* 25px */
  --text-2xl: 1.953rem;    /* 31.25px */
  --text-3xl: 2.441rem;    /* 39.06px */
  --text-4xl: 3.052rem;    /* 48.83px */
  --text-5xl: 3.815rem;    /* 61.04px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.14;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ========================================
     SPACING SYSTEM - 8pt Grid
     ======================================== */

  --space-0: 0px;
  --space-px: 1px;
  --space-0-5: 0.125rem;   /* 2px */
  --space-1: 0.25rem;      /* 4px */
  --space-1-5: 0.375rem;   /* 6px */
  --space-2: 0.5rem;       /* 8px */
  --space-2-5: 0.625rem;   /* 10px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-7: 1.75rem;      /* 28px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */

  /* Semantic Spacing Aliases */
  --spacing-section: var(--space-16);
  --spacing-component: var(--space-8);
  --spacing-element: var(--space-4);
  --spacing-tight: var(--space-2);

  /* ========================================
     SHADOW SYSTEM - Elevation Tokens
     ======================================== */

  --shadow-elevation-0: none;
  --shadow-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-elevation-2: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-elevation-3: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-elevation-4: 0 8px 16px rgba(0, 0, 0, 0.16);

  /* Semantic Shadow Aliases */
  --shadow-sm: var(--shadow-elevation-1);
  --shadow-base: var(--shadow-elevation-2);
  --shadow-md: var(--shadow-elevation-3);
  --shadow-lg: var(--shadow-elevation-4);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* ========================================
     BORDER RADIUS SYSTEM
     ======================================== */

  --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.25rem;    /* 20px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* ========================================
     BORDER WIDTH
     ======================================== */

  --border-width-0: 0;
  --border-width-1: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
  --border-width-8: 8px;

  /* ========================================
     OPACITY SCALE
     ======================================== */

  --opacity-0: 0;
  --opacity-5: 0.05;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-25: 0.25;
  --opacity-30: 0.3;
  --opacity-40: 0.4;
  --opacity-50: 0.5;
  --opacity-60: 0.6;
  --opacity-70: 0.7;
  --opacity-75: 0.75;
  --opacity-80: 0.8;
  --opacity-90: 0.9;
  --opacity-95: 0.95;
  --opacity-100: 1;

  /* ========================================
     Z-INDEX SCALE
     ======================================== */

  --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;

  /* ========================================
     TRANSITIONS
     ======================================== */

  --transition-base: 150ms ease-in-out;
  --transition-fast: 100ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  --easing-linear: linear;
  --easing-in: ease-in;
  --easing-out: ease-out;
  --easing-in-out: ease-in-out;
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ========================================
     RESPONSIVE BREAKPOINTS
     ======================================== */

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ========================================
     COMPONENT-SPECIFIC TOKENS
     ======================================== */

  /* Buttons */
  --btn-padding-y: var(--space-3);
  --btn-padding-x: var(--space-6);
  --btn-font-size: var(--text-base);
  --btn-font-weight: var(--font-semibold);
  --btn-border-radius: var(--radius-base);
  --btn-transition: all var(--transition-base);

  /* Inputs */
  --input-padding-y: var(--space-2-5);
  --input-padding-x: var(--space-4);
  --input-font-size: var(--text-base);
  --input-border-width: var(--border-width-2);
  --input-border-radius: var(--radius-base);
  --input-border-color: var(--color-neutral-300);
  --input-focus-border-color: var(--color-primary-500);
  --input-focus-ring: 0 0 0 3px rgba(109, 129, 150, 0.1);

  /* Cards */
  --card-padding: var(--space-8);
  --card-border-radius: var(--radius-xl);
  --card-background: var(--color-white);
  --card-border-color: var(--color-neutral-200);
  --card-shadow: var(--shadow-elevation-2);

  /* Containers */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* ========================================
   DARK MODE (Optional - Uncomment to enable)
   ======================================== */

/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-neutral-50: #111827;
    --color-neutral-100: #1f2937;
    --color-neutral-200: #374151;
    --color-neutral-300: #4b5563;
    --color-neutral-400: #6b7280;
    --color-neutral-500: #9ca3af;
    --color-neutral-600: #d1d5db;
    --color-neutral-700: #e5e7eb;
    --color-neutral-800: #f3f4f6;
    --color-neutral-900: #f9fafb;

    --card-background: #1f2937;
    --card-border-color: #374151;
  }
}
*/

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-secondary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.focus-ring {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-ring:focus {
  outline-color: var(--color-primary-500);
  box-shadow: var(--input-focus-ring);
}
