/* ========================================
   STREAM ARENA RPG MARKET - DESIGN TOKENS
   Design System v1.0.0
   ======================================== */

:root {
    /* ========== BASE COLORS ========== */
    --bg: #0f0f0f;
    --bg-elevated: #1a1a1a;
    --bg-card: #222222;
    --bg-hover: #2a2a2a;
    
    /* ========== BRAND COLORS ========== */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #f59e0b;
    
    /* ========== SEMANTIC COLORS ========== */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    /* ========== TEXT COLORS ========== */
    --text: #f5f5f5;
    --text-dim: #a3a3a3;
    --text-dimmer: #666666;
    
    /* ========== UTILITY COLORS ========== */
    --border: #333333;
    --border-light: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --glow: rgba(139, 92, 246, 0.4);
    --overlay: rgba(15, 15, 15, 0.9);
    
    /* ========== RARITY COLORS ========== */
    --rarity-legendary: #ff6b6b;
    --rarity-epic: #a78bfa;
    --rarity-rare: #60a5fa;
    --rarity-uncommon: #10b981;
    --rarity-common: #6b7280;
    
    /* ========== STAT COLORS ========== */
    --stat-damage: #ef4444;
    --stat-health: #10b981;
    --stat-speed: #06b6d4;
    --stat-power: #8b5cf6;
    --stat-defense: #f59e0b;
    
    /* ========== CURRENCY COLORS ========== */
    --currency-gold: #f59e0b;
    --currency-platinum: #e5e7eb;
    --currency-gems: #8b5cf6;
    
    /* ========== TYPOGRAPHY ========== */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    
    /* Font Sizes */
    --text-3xl: 1.75rem;   /* 28px - Main headers */
    --text-2xl: 1.5rem;    /* 24px - Section headers */
    --text-xl: 1.25rem;    /* 20px - Card titles */
    --text-lg: 1.125rem;   /* 18px - Large text */
    --text-base: 1rem;     /* 16px - Body text */
    --text-sm: 0.875rem;   /* 14px - Small text */
    --text-xs: 0.75rem;    /* 12px - Extra small */
    --text-stat: 2rem;     /* 32px - Stat displays */
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;
    
    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;
    
    /* ========== SPACING ========== */
    --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 */
    
    /* ========== BORDERS ========== */
    --border-width: 1px;
    --border-width-thick: 2px;
    --border-width-thicker: 3px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* ========== SHADOWS ========== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.4);
    
    /* Glow Effects */
    --glow-primary: 0 0 20px rgba(139, 92, 246, 0.4);
    --glow-success: 0 0 20px rgba(16, 185, 129, 0.4);
    --glow-danger: 0 0 20px rgba(239, 68, 68, 0.4);
    
    /* ========== TRANSITIONS ========== */
    --duration-fast: 0.15s;
    --duration-base: 0.2s;
    --duration-slow: 0.3s;
    --duration-slower: 0.5s;
    
    --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 LAYERS ========== */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-notification: 800;
    --z-max: 9999;
    
    /* ========== LAYOUT ========== */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1600px;
    
    /* Sidebar */
    --sidebar-width: 300px;
    --sidebar-gap: 2rem;
    
    /* Header */
    --header-height: 80px;
    
    /* ========== BREAKPOINTS ========== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ========================================
   GRADIENTS (Reusable)
   ======================================== */

.gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.gradient-legendary {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
}

.gradient-epic {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
}

.gradient-rare {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
}

.gradient-success {
    background: linear-gradient(135deg, var(--success), #34d399);
}

.gradient-danger {
    background: linear-gradient(135deg, var(--danger), #f87171);
}

/* ========================================
   TEXT GRADIENTS
   ======================================== */

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

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Flex */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }
.font-medium { font-weight: var(--font-medium); }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

/* Colors */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-dim { color: var(--text-dim); }

/* Backgrounds */
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-success { background-color: var(--success); }
.bg-danger { background-color: var(--danger); }
.bg-card { background-color: var(--bg-card); }
.bg-elevated { background-color: var(--bg-elevated); }

/* Spacing */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.m-0 { margin: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* Borders */
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }

/* Shadows */
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Transitions */
.transition { transition: all var(--duration-base) var(--ease-in-out); }
.transition-fast { transition: all var(--duration-fast) var(--ease-in-out); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Height */
.h-full { height: 100%; }
.h-auto { height: auto; }

/* User Select */
.select-none { user-select: none; }
