/* ========================================
   Design Tokens - OpenNana Prompt Gallery
   Dark Glassmorphism Theme
   ======================================== */

:root {
  /* ========================
     COLORS
     ======================== */
  
  /* Background Colors */
  --color-bg-primary: #0B0F19;         /* Deep navy - main background */
  --color-bg-secondary: #161B22;       /* Slate grey - card backgrounds */
  --color-bg-tertiary: #1E2530;        /* Lighter slate - hover states */
  
  /* Glassmorphism */
  --color-glass-bg: rgba(22, 27, 34, 0.8);
  --color-glass-border: rgba(255, 255, 255, 0.1);
  --color-glass-border-hover: rgba(255, 255, 255, 0.2);
  
  /* Accent/Glow Colors */
  --color-accent-primary: #22D3EE;     /* Cyan glow */
  --color-accent-secondary: #3B82F6;   /* Blue */
  --color-accent-tertiary: #8B5CF6;    /* Purple */
  
  /* Text Colors */
  --color-text-primary: #FFFFFF;       /* White - headings */
  --color-text-secondary: #94A3B8;     /* Silver - body text */
  --color-text-muted: #64748B;         /* Muted - metadata */
  --color-text-accent: #22D3EE;        /* Cyan - links, highlights */
  
  /* Semantic Colors */
  --color-success: #10B981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-warning: #F59E0B;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-error: #EF4444;
  --color-error-bg: rgba(239, 68, 68, 0.1);
  --color-info: #3B82F6;
  --color-info-bg: rgba(59, 130, 246, 0.1);
  
  /* Gradients */
  --gradient-glow: linear-gradient(135deg, #22D3EE 0%, #3B82F6 50%, #8B5CF6 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(34, 211, 238, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  --gradient-bg-radial: radial-gradient(ellipse at top, #1E2530 0%, #0B0F19 100%);
  
  /* ========================
     TYPOGRAPHY
     ======================== */
  
  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --font-chinese: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* ========================
     SPACING
     ======================== */
  
  --space-0: 0;
  --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 */
  
  /* Grid */
  --grid-gap: var(--space-6);
  --container-max: 1400px;
  --container-padding: var(--space-6);
  
  /* ========================
     BORDERS & EFFECTS
     ======================== */
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
  
  /* Glow Shadows */
  --shadow-glow-sm: 0 0 10px rgba(34, 211, 238, 0.2);
  --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(34, 211, 238, 0.5);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  
  /* Glassmorphism */
  --backdrop-blur-sm: blur(8px);
  --backdrop-blur: blur(12px);
  --backdrop-blur-lg: blur(20px);
  
  /* ========================
     TRANSITIONS
     ======================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
  
  /* Specific Transitions */
  --transition-colors: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
  --transition-transform: transform 200ms ease;
  --transition-opacity: opacity 200ms ease;
  --transition-shadow: box-shadow 200ms ease;
  --transition-all: all 200ms ease;
  
  /* ========================
     Z-INDEX SCALE
     ======================== */
  
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  --z-toast: 80;
  
  /* ========================
     COMPONENT SPECIFIC
     ======================== */
  
  /* Cards */
  --card-bg: var(--color-bg-secondary);
  --card-border: 1px solid transparent;
  --card-border-hover: 1px solid var(--color-accent-primary);
  --card-radius: var(--radius-md);
  --card-padding: var(--space-4);
  --card-shadow: var(--shadow-md);
  --card-shadow-hover: var(--shadow-glow);
  
  /* Inputs */
  --input-bg: var(--color-glass-bg);
  --input-border: 1px solid var(--color-glass-border);
  --input-border-focus: 1px solid var(--color-accent-primary);
  --input-radius: var(--radius-md);
  --input-padding: var(--space-3) var(--space-4);
  --input-height: 44px;
  
  /* Buttons */
  --btn-height-sm: 32px;
  --btn-height-md: 40px;
  --btn-height-lg: 48px;
  --btn-padding-sm: var(--space-2) var(--space-3);
  --btn-padding-md: var(--space-3) var(--space-6);
  --btn-padding-lg: var(--space-4) var(--space-8);
  
  /* Tags */
  --tag-bg: var(--color-glass-bg);
  --tag-border: 1px solid var(--color-glass-border);
  --tag-radius: var(--radius-full);
  --tag-padding: var(--space-2) var(--space-4);
  
  /* Modal */
  --modal-bg: var(--color-bg-secondary);
  --modal-radius: var(--radius-lg);
  --modal-max-width: 800px;
  --modal-backdrop: rgba(0, 0, 0, 0.8);
}

/* Dark Mode is default, but can be toggled */
[data-theme="dark"] {
  /* Already dark by default */
}

/* Optional: Light mode override */
[data-theme="light"] {
  --color-bg-primary: #F8FAFC;
  --color-bg-secondary: #FFFFFF;
  --color-bg-tertiary: #F1F5F9;
  --color-glass-bg: rgba(255, 255, 255, 0.8);
  --color-glass-border: rgba(0, 0, 0, 0.1);
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
}
