/**
 * MyShoppa Design System
 * Unified CSS Variables for consistent styling across all pages
 * Version 2.0
 */

:root {
    /* ======================= */
    /* BRAND COLORS */
    /* ======================= */
    --shoppa-primary: #4f46e5;          /* Indigo - modern, trustworthy */
    --shoppa-primary-light: #6366f1;
    --shoppa-primary-dark: #4338ca;
    --shoppa-primary-bg: rgba(79, 70, 229, 0.1);
    
    --shoppa-secondary: #10b981;         /* Emerald - success, money */
    --shoppa-secondary-light: #34d399;
    --shoppa-secondary-dark: #059669;
    
    --shoppa-accent: #f59e0b;            /* Amber - attention, deals */
    --shoppa-accent-light: #fbbf24;
    --shoppa-accent-dark: #d97706;
    
    /* ======================= */
    /* NEUTRAL PALETTE */
    /* ======================= */
    --shoppa-white: #ffffff;
    --shoppa-gray-50: #f9fafb;
    --shoppa-gray-100: #f3f4f6;
    --shoppa-gray-200: #e5e7eb;
    --shoppa-gray-300: #d1d5db;
    --shoppa-gray-400: #9ca3af;
    --shoppa-gray-500: #6b7280;
    --shoppa-gray-600: #4b5563;
    --shoppa-gray-700: #374151;
    --shoppa-gray-800: #1f2937;
    --shoppa-gray-900: #111827;
    
    /* ======================= */
    /* STATUS COLORS */
    /* ======================= */
    --shoppa-success: #10b981;
    --shoppa-success-bg: rgba(16, 185, 129, 0.1);
    
    --shoppa-warning: #f59e0b;
    --shoppa-warning-bg: rgba(245, 158, 11, 0.1);
    
    --shoppa-danger: #ef4444;
    --shoppa-danger-bg: rgba(239, 68, 68, 0.1);
    
    --shoppa-info: #3b82f6;
    --shoppa-info-bg: rgba(59, 130, 246, 0.1);
    
    /* ======================= */
    /* TYPOGRAPHY */
    /* ======================= */
    --shoppa-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shoppa-font-display: 'Plus Jakarta Sans', var(--shoppa-font-sans);
    --shoppa-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --shoppa-text-xs: 0.75rem;     /* 12px */
    --shoppa-text-sm: 0.875rem;    /* 14px */
    --shoppa-text-base: 1rem;      /* 16px */
    --shoppa-text-lg: 1.125rem;    /* 18px */
    --shoppa-text-xl: 1.25rem;     /* 20px */
    --shoppa-text-2xl: 1.5rem;     /* 24px */
    --shoppa-text-3xl: 1.875rem;   /* 30px */
    --shoppa-text-4xl: 2.25rem;    /* 36px */
    
    /* Font Weights */
    --shoppa-font-normal: 400;
    --shoppa-font-medium: 500;
    --shoppa-font-semibold: 600;
    --shoppa-font-bold: 700;
    
    /* Line Heights */
    --shoppa-leading-tight: 1.25;
    --shoppa-leading-normal: 1.5;
    --shoppa-leading-relaxed: 1.625;
    
    /* ======================= */
    /* SPACING SCALE */
    /* ======================= */
    --shoppa-space-0: 0;
    --shoppa-space-1: 0.25rem;   /* 4px */
    --shoppa-space-2: 0.5rem;    /* 8px */
    --shoppa-space-3: 0.75rem;   /* 12px */
    --shoppa-space-4: 1rem;      /* 16px */
    --shoppa-space-5: 1.25rem;   /* 20px */
    --shoppa-space-6: 1.5rem;    /* 24px */
    --shoppa-space-8: 2rem;      /* 32px */
    --shoppa-space-10: 2.5rem;   /* 40px */
    --shoppa-space-12: 3rem;     /* 48px */
    --shoppa-space-16: 4rem;     /* 64px */
    
    /* ======================= */
    /* BORDER RADIUS */
    /* ======================= */
    --shoppa-radius-sm: 0.25rem;   /* 4px */
    --shoppa-radius-md: 0.375rem;  /* 6px */
    --shoppa-radius-lg: 0.5rem;    /* 8px */
    --shoppa-radius-xl: 0.75rem;   /* 12px */
    --shoppa-radius-2xl: 1rem;     /* 16px */
    --shoppa-radius-full: 9999px;
    
    /* ======================= */
    /* SHADOWS */
    /* ======================= */
    --shoppa-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shoppa-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shoppa-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shoppa-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* ======================= */
    /* TRANSITIONS */
    /* ======================= */
    --shoppa-transition-fast: 150ms ease;
    --shoppa-transition-normal: 200ms ease;
    --shoppa-transition-slow: 300ms ease;
    
    /* ======================= */
    /* Z-INDEX SCALE */
    /* ======================= */
    --shoppa-z-dropdown: 1000;
    --shoppa-z-sticky: 1020;
    --shoppa-z-fixed: 1030;
    --shoppa-z-modal-backdrop: 1040;
    --shoppa-z-modal: 1050;
    --shoppa-z-popover: 1060;
    --shoppa-z-tooltip: 1070;
}

/* ======================= */
/* BASE STYLES */
/* ======================= */

body {
    font-family: var(--shoppa-font-sans);
    font-size: var(--shoppa-text-base);
    line-height: var(--shoppa-leading-normal);
    color: var(--shoppa-gray-800);
    background-color: var(--shoppa-gray-50);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--shoppa-font-display);
    font-weight: var(--shoppa-font-semibold);
    color: var(--shoppa-gray-900);
    line-height: var(--shoppa-leading-tight);
}

a {
    color: var(--shoppa-primary);
    text-decoration: none;
    transition: color var(--shoppa-transition-fast);
}

a:hover {
    color: var(--shoppa-primary-dark);
}

/* ======================= */
/* UTILITY CLASSES */
/* ======================= */

.text-primary { color: var(--shoppa-primary) !important; }
.text-secondary { color: var(--shoppa-secondary) !important; }
.text-accent { color: var(--shoppa-accent) !important; }
.text-success { color: var(--shoppa-success) !important; }
.text-warning { color: var(--shoppa-warning) !important; }
.text-danger { color: var(--shoppa-danger) !important; }
.text-muted { color: var(--shoppa-gray-500) !important; }

.bg-primary { background-color: var(--shoppa-primary) !important; }
.bg-primary-soft { background-color: var(--shoppa-primary-bg) !important; }
.bg-success-soft { background-color: var(--shoppa-success-bg) !important; }
.bg-warning-soft { background-color: var(--shoppa-warning-bg) !important; }
.bg-danger-soft { background-color: var(--shoppa-danger-bg) !important; }
.bg-info-soft { background-color: var(--shoppa-info-bg) !important; }

.font-display { font-family: var(--shoppa-font-display) !important; }
.font-mono { font-family: var(--shoppa-font-mono) !important; }

/* ======================= */
/* ANIMATION KEYFRAMES */
/* ======================= */

@keyframes shoppa-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shoppa-slide-up {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shoppa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: shoppa-fade-in var(--shoppa-transition-normal);
}

.animate-slide-up {
    animation: shoppa-slide-up var(--shoppa-transition-slow);
}
