/* GuildPost Design System v2.0 - Modern Gaming Aesthetic */

:root {
  /* Core Brand Colors */
  --brand-cyan: #00d9ff;
  --brand-cyan-rgb: 0, 217, 255;
  --brand-pink: #ff006e;
  --brand-pink-rgb: 255, 0, 110;
  --brand-purple: #8338ec;
  --brand-purple-rgb: 131, 56, 236;
  
  /* Backgrounds - Deep, immersive gaming feel */
  --bg-primary: #0a0f1c;
  --bg-primary-rgb: 10, 15, 28;
  --bg-secondary: #111827;
  --bg-secondary-rgb: 17, 24, 39;
  --bg-tertiary: #1e293b;
  --bg-tertiary-rgb: 30, 41, 59;
  --bg-elevated: #243449;
  --bg-elevated-rgb: 36, 52, 73;
  
  /* Text - Crisp, high contrast */
  --text-primary: #f8fafc;
  --text-primary-rgb: 248, 250, 252;
  --text-secondary: #94a3b8;
  --text-secondary-rgb: 148, 163, 184;
  --text-tertiary: #64748b;
  --text-muted: #475569;
  
  /* Accents - Electric gaming palette */
  --accent-primary: #00d9ff;
  --accent-primary-rgb: 0, 217, 255;
  --accent-secondary: #ff006e;
  --accent-secondary-rgb: 255, 0, 110;
  --accent-tertiary: #8338ec;
  --accent-tertiary-rgb: 131, 56, 236;
  
  /* Semantic colors */
  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  --error: #ff006e;
  --error-rgb: 255, 0, 110;
  --info: #00d9ff;
  --info-rgb: 0, 217, 255;
  
  /* Borders - Subtle but defined */
  --border-subtle: #1e293b;
  --border-default: #334155;
  --border-strong: #475569;
  --border-glow: rgba(0, 217, 255, 0.3);
  
  /* Interactive states */
  --hover-bg: rgba(0, 217, 255, 0.08);
  --hover-bg-strong: rgba(0, 217, 255, 0.15);
  --active-bg: rgba(0, 217, 255, 0.2);
  --focus-ring: rgba(0, 217, 255, 0.4);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #8338ec 100%);
  --gradient-secondary: linear-gradient(135deg, #ff006e 0%, #8338ec 100%);
  --gradient-tertiary: linear-gradient(135deg, #00d9ff 0%, #ff006e 100%);
  --gradient-dark: linear-gradient(180deg, #0a0f1c 0%, #111827 100%);
  
  /* Shadows - Gaming depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px -5px rgba(0, 217, 255, 0.4);
  --shadow-glow-pink: 0 0 30px -5px rgba(255, 0, 110, 0.4);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-primary-rgb: 248, 250, 252;
  --bg-secondary: #ffffff;
  --bg-secondary-rgb: 255, 255, 255;
  --bg-tertiary: #f1f5f9;
  --bg-tertiary-rgb: 241, 245, 249;
  --bg-elevated: #e2e8f0;
  --bg-elevated-rgb: 226, 232, 240;
  
  --text-primary: #0f172a;
  --text-primary-rgb: 15, 23, 42;
  --text-secondary: #475569;
  --text-secondary-rgb: 71, 85, 105;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  
  --accent-primary: #0891b2;
  --accent-primary-rgb: 8, 145, 178;
  --accent-secondary: #e11d48;
  --accent-secondary-rgb: 225, 29, 72;
  --accent-tertiary: #7c3aed;
  --accent-tertiary-rgb: 124, 58, 237;
  
  --border-subtle: #e2e8f0;
  --border-default: #cbd5e1;
  --border-strong: #94a3b8;
  --border-glow: rgba(8, 145, 178, 0.3);
  
  --hover-bg: rgba(8, 145, 178, 0.06);
  --hover-bg-strong: rgba(8, 145, 178, 0.12);
  --active-bg: rgba(8, 145, 178, 0.18);
  --focus-ring: rgba(8, 145, 178, 0.3);
  
  --gradient-primary: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #e11d48 0%, #7c3aed 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 30px -5px rgba(8, 145, 178, 0.25);
}

/* Alternative Theme: Cyber (Neon) */
[data-theme="cyber"] {
  --bg-primary: #050505;
  --bg-primary-rgb: 5, 5, 5;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  
  --text-primary: #ffffff;
  --text-secondary: #00ff41;
  --text-tertiary: #008f11;
  
  --accent-primary: #00ff41;
  --accent-primary-rgb: 0, 255, 65;
  --accent-secondary: #ff00ff;
  --accent-secondary-rgb: 255, 0, 255;
  --accent-tertiary: #00ffff;
  --accent-tertiary-rgb: 0, 255, 255;
  
  --border-subtle: #1a1a1a;
  --border-default: #00ff41;
  --border-strong: #00ff41;
  
  --hover-bg: rgba(0, 255, 65, 0.1);
  --active-bg: rgba(0, 255, 65, 0.2);
  --focus-ring: rgba(0, 255, 65, 0.5);
  
  --shadow-glow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* Alternative Theme: Synthwave */
[data-theme="synthwave"] {
  --bg-primary: #0f0518;
  --bg-secondary: #1a0b2e;
  --bg-tertiary: #240e45;
  
  --text-primary: #fff;
  --text-secondary: #ff71ce;
  --text-tertiary: #01cdfe;
  
  --accent-primary: #ff71ce;
  --accent-secondary: #01cdfe;
  --accent-tertiary: #b967ff;
  
  --border-subtle: #2d1b4e;
  --border-default: #ff71ce;
  
  --shadow-glow: 0 0 30px rgba(255, 113, 206, 0.4);
}

/* Smooth transitions between themes */
*, *::before, *::after {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Disable transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* Selection */
::selection {
  background: rgba(var(--accent-primary-rgb), 0.3);
  color: var(--text-primary);
}
