/**
 * Eye-Bot Design Tokens
 *
 * CSS Custom Properties for consistent branding across the application.
 * See BUSINESS-DNA.md for complete brand guidelines.
 *
 * Version: 1.0
 * Last Updated: 2025-11-01
 */

:root {
    /* ========================================
       BRAND COLORS
       ======================================== */

    /* Primary Teal (from poster trees) */
    --color-primary: #2C5F5D;
    --color-primary-dark: #234A48;
    --color-primary-gradient: linear-gradient(135deg, #2C5F5D 0%, #234A48 100%);

    /* Secondary & Accent Colors */
    --color-accent: #D4A574;  /* Golden Tan from poster */
    --color-accent-hover: #C89563;

    /* Neutrals */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-neutral-dark: #3D5054;  /* Dark blue-gray from poster footer */
    --color-neutral-medium: #666666;
    --color-neutral-light: #999999;
    --color-neutral-lighter: #e5e7eb;
    --color-neutral-lightest: #f3f4f6;
    --color-background-cream: #E8DCC4;  /* Cream background from poster */

    /* Eye-Bot Character Colors */
    --color-eyebot-body: #E0E7FF;
    --color-eyebot-eye: #1F2937;
    --color-eyebot-feet: #9CA3AF;

    /* Scene & Environment Colors */
    --color-particle-gold: #FCD34D;
    --color-particle-purple: #A78BFA;
    --color-particle-green: #10B981;
    --color-fox-orange: #FF6B35;

    /* Semantic Colors */
    --color-success: #10B981;
    --color-success-dark: #059669;
    --color-error: #DC2626;
    --color-error-dark: #B91C1C;
    --color-warning: #F59E0B;
    --color-warning-dark: #D97706;
    --color-info: #0066ff;
    --color-info-dark: #0052cc;

    /* Debug/Developer Colors */
    --color-debug: #00ff00;
    --color-debug-bg: rgba(0, 0, 0, 0.95);


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

    /* Font Families */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, sans-serif;
    --font-monospace: 'Courier New', Consolas, Monaco, monospace;

    /* Font Sizes */
    --font-size-h1: 3rem;        /* 48px */
    --font-size-h2: 2.5rem;      /* 40px */
    --font-size-h3: 2rem;        /* 32px */
    --font-size-h4: 1.5rem;      /* 24px */
    --font-size-large: 1.2rem;   /* 19.2px */
    --font-size-body: 1rem;      /* 16px */
    --font-size-small: 0.9rem;   /* 14.4px */
    --font-size-tiny: 0.75rem;   /* 12px */
    --font-size-button: 1.1rem;  /* 17.6px */

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;


    /* ========================================
       SPACING (8px base grid)
       ======================================== */

    --spacing-xxs: 0.25rem;  /* 4px */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 2.5rem;    /* 40px */
    --spacing-xxl: 3rem;     /* 48px */
    --spacing-xxxl: 4rem;    /* 64px */


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

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-round: 50px;
    --radius-circle: 50%;


    /* ========================================
       SHADOWS
       ======================================== */

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(102, 126, 234, 0.4);
    --shadow-xl: 0 12px 35px rgba(102, 126, 234, 0.6);
    --shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.3);

    /* Semantic Shadows */
    --shadow-button: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-button-hover: 0 15px 35px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.1);


    /* ========================================
       TRANSITIONS & ANIMATIONS
       ======================================== */

    /* Durations */
    --transition-fast: 150ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;
    --transition-slower: 1000ms;

    /* Easings */
    --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);

    /* Common Transitions */
    --transition-all: all var(--transition-base) var(--ease-in-out);
    --transition-color: color var(--transition-base) var(--ease-in-out);
    --transition-transform: transform var(--transition-base) var(--ease-in-out);
    --transition-opacity: opacity var(--transition-base) var(--ease-in-out);


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

    --z-index-base: 1;
    --z-index-dropdown: 1000;
    --z-index-sticky: 1100;
    --z-index-overlay: 1200;
    --z-index-modal: 1300;
    --z-index-tooltip: 1400;
    --z-index-notification: 1500;
    --z-index-debug: 9999;


    /* ========================================
       BREAKPOINTS (for reference in media queries)
       Note: Use these values in @media queries, not as CSS variables
       ======================================== */

    /*
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-wide: 1440px;
    */
}


/* ========================================
   RESPONSIVE OVERRIDES
   ======================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    :root {
        --font-size-h1: 2.5rem;  /* 40px */
        --font-size-h2: 2rem;    /* 32px */
        --font-size-h3: 1.75rem; /* 28px */
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2rem;     /* 32px */
        --font-size-h2: 1.75rem;  /* 28px */
        --font-size-h3: 1.5rem;   /* 24px */
        --spacing-lg: 1.5rem;     /* Reduce large spacing on mobile */
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
}


/* ========================================
   UTILITY CLASSES (optional helpers)
   ======================================== */

.gradient-primary {
    background: var(--color-primary-gradient);
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.shadow-button {
    box-shadow: var(--shadow-button);
}

.shadow-button:hover {
    box-shadow: var(--shadow-button-hover);
}
