/* ===== DESIGN TOKENS ===== */
/* Centralized design system variables */

/* ===== SPACING SCALE (8px base unit) ===== */
:root {
    --spacing-xs: 4px;
    --spacing-small: 8px;
    --spacing-medium: 16px;
    --spacing-large: 24px;
    --spacing-xl: 32px;
    
    /* ===== BORDER RADIUS SCALE ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Component-Specific Border Radius (themeable) */
    --radius-modal: var(--radius-lg);
    --radius-card: var(--radius-md);
    --radius-button: var(--radius-md);
    --radius-input: var(--radius-sm);
    --radius-badge: var(--radius-full);
    
    /* ===== Z-INDEX SCALE ===== */
    --z-base: 1;
    --z-dropdown: 100;
    --z-modal: 1000;
    --z-tooltip: 2000;
    
    /* ===== TYPOGRAPHY ===== */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.8;
    
    /* ===== COLORS (Base - overridden by themes.css) ===== */
    --color-background-primary: #ffffff;
    --color-background-secondary: #f5f5f5;
    --color-surface-modal: #ffffff;
    --color-surface-item-hover: #f0f0f0;
    
    --color-text-primary: #212121;
    --color-text-secondary: #757575;
    --color-text-icon: #616161;
    
    --color-border-primary: #e0e0e0;
    --color-border-secondary: #bdbdbd;
    
    --color-accent-primary: #2563eb;
    --color-accent-secondary: #06b6d4;
    --color-accent-xp: #8bc34a;
    --color-accent-coin: #ffc34c;
    
    /* Meter Colors */
    --color-meter-food: #ff9800;
    --color-meter-water: #2196f3;
    --color-meter-energy: #4caf50;
    --color-meter-friendship: #e91e63;
    
    /* Status Colors */
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-error: #f44336;
    --color-info: #2196f3;
    --color-accent-success: #4caf50;
    --color-accent-error: #f44336;
    
    /* ===== GLASSMORPHISM SYSTEM ===== */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-strong: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --glass-blur: saturate(120%) blur(16px);
    
    /* Gradient overlays for enhanced depth */
    --glass-gradient-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --glass-gradient-overlay-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    
    /* ===== ELEVATION SYSTEM ===== */
    --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.08), 
                   0 1px 3px rgba(0, 0, 0, 0.06),
                   inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --elevation-2: 0 3px 6px rgba(0, 0, 0, 0.10), 
                   0 2px 4px rgba(0, 0, 0, 0.06),
                   inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --elevation-3: 0 8px 16px rgba(0, 0, 0, 0.12), 
                   0 4px 8px rgba(0, 0, 0, 0.06),
                   inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    /* ===== LIBRARY CARD DIMENSIONS (Mobile First) ===== */
    --library-card-image-height-mobile: 80px;
    --library-card-image-height-tablet: 100px;
    --library-card-image-height-desktop: 120px;
    --library-card-padding-mobile: 2px;
    --library-card-padding-tablet: 3px;
    --library-card-padding-desktop: 4px;
    --library-card-gap: var(--spacing-small);
    --library-card-border-radius: var(--radius-card);
    
    /* ===== CONTAINER DIMENSIONS ===== */
    --container-max-width: 360px;
    --container-height: 640px;
    
    /* ===== ADDITIONAL LEGACY VARIABLES ===== */
    /* These are kept for backward compatibility with existing styles */
    --color-surface-item-hover: #f0f0f0;
    --color-border-secondary: #bdbdbd;
    --color-accent-xp: #8bc34a;
    --color-accent-coin: #ffc34c;
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-error: #f44336;
    --color-info: #2196f3;
}

