/**
 * Theme Styles - Colors, Fonts, and Brand Identity
 */

/* Brand Colors */
:root {
    /* Primary - Green (Nature, Growth, Trust) - Demo2 Style */
    --brand-primary: #1a3d0a;
    --brand-primary-light: #2d5016;
    --brand-primary-dark: #0f2505;
    --brand-primary-bg: #e8f0e3;
    --brand-primary-bg-light: #f3f6f3;
    --brand-primary-border: #d8e3d8;
    
    /* Secondary - Blue (Professional, Trustworthy) */
    --brand-secondary: #1e3a8a;
    --brand-secondary-light: #2563eb;
    --brand-secondary-dark: #1e40af;
    --brand-secondary-bg: #dbeafe;
    
    /* Accent - Red (Call to Action, Urgency) */
    --brand-accent: #ef4444;
    --brand-accent-light: #f87171;
    --brand-accent-dark: #dc2626;
    --brand-accent-bg: #fee2e2;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    
    --error: #ef4444;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
    
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --info-text: #1e40af;
}

/* Typography */
:root {
    /* Font Families */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    /* Font Sizes */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-6xl: 60px;
    
    /* 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.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
}

/* Spacing */
:root {
    --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 */
}

/* Border Radius */
:root {
    --radius-none: 0;
    --radius-sm: 4px;
    --radius-base: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
}

/* Shadows */
:root {
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-base: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 16px 32px rgba(0, 0, 0, 0.2);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Transitions */
:root {
    --transition-fast: 150ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;
    
    --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);
}

/* Z-Index Scale */
:root {
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 9998;
    --z-modal: 9999;
    --z-popover: 10000;
    --z-tooltip: 10001;
}

/* Breakpoints (for reference in media queries) */
:root {
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* Component-Specific Theme Variables */
:root {
    /* Header */
    --header-height: 80px;
    --header-bg: var(--gray-50);
    --header-border: var(--gray-200);
    
    /* Footer */
    --footer-bg: var(--gray-900);
    --footer-text: var(--gray-300);
    
    /* Cards */
    --card-bg: white;
    --card-border: var(--gray-200);
    --card-shadow: var(--shadow-md);
    --card-hover-shadow: var(--shadow-lg);
    
    /* Buttons */
    --btn-padding-x: 1.5rem;
    --btn-padding-y: 0.75rem;
    --btn-border-radius: var(--radius-base);
    
    /* Forms */
    --input-border: var(--gray-300);
    --input-focus-border: var(--brand-primary);
    --input-bg: white;
    --input-padding-x: 0.75rem;
    --input-padding-y: 0.75rem;
    
    /* Modals */
    --modal-bg: white;
    --modal-backdrop: rgba(0, 0, 0, 0.7);
    --modal-border-radius: var(--radius-lg);
    --modal-shadow: var(--shadow-2xl);
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        /* Uncomment to enable dark mode */
        /* --card-bg: var(--gray-800);
        --card-border: var(--gray-700);
        --input-bg: var(--gray-800);
        --input-border: var(--gray-700); */
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Selection */
::selection {
    background: var(--brand-primary-bg);
    color: var(--brand-primary-dark);
}

::-moz-selection {
    background: var(--brand-primary-bg);
    color: var(--brand-primary-dark);
}

/* Focus Ring */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    :root {
        --shadow-sm: none;
        --shadow-base: none;
        --shadow-md: none;
        --shadow-lg: none;
        --shadow-xl: none;
        --shadow-2xl: none;
    }
}
