/* ============================================
   PlenUp Design System - CSS Variables
   ============================================ */

:root {
  /* ----------------------------------------
     Colors - Palette Principale
     ---------------------------------------- */
  --color-background: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-border: #E5E5E5;
  --color-text-primary: #171717;
  --color-text-secondary: #737373;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-accent-light: rgba(37, 99, 235, 0.1);

  /* Hover/Active states */
  --color-hover: #F5F5F5;
  --color-active: #F0F0F0;
  --color-muted: #F5F5F5;

  /* ----------------------------------------
     Colors - Semantici
     ---------------------------------------- */
  --color-success: #16A34A;
  --color-success-light: rgba(22, 163, 74, 0.1);
  --color-warning: #CA8A04;
  --color-warning-light: rgba(202, 138, 4, 0.1);
  --color-error: #DC2626;
  --color-error-light: rgba(220, 38, 38, 0.1);
  --color-info: #0EA5E9;
  --color-info-light: rgba(14, 165, 233, 0.1);

  /* ----------------------------------------
     Typography
     ---------------------------------------- */
  --font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.8125rem;  /* 13px */
  --font-size-base: 0.875rem; /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 1.875rem;  /* 30px */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Line Heights */
  --line-height-tight: 1.3;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;

  /* ----------------------------------------
     Spacing (8px grid)
     ---------------------------------------- */
  --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 */

  /* ----------------------------------------
     Border Radius
     ---------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* ----------------------------------------
     Shadows
     ---------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);

  /* ----------------------------------------
     Transitions
     ---------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ----------------------------------------
     Layout
     ---------------------------------------- */
  --sidebar-width: 240px;
  --header-height: 56px;
  --content-max-width: 1200px;

  /* ----------------------------------------
     Z-Index Scale
     ---------------------------------------- */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* Dark Mode (per futuro utilizzo) */
@media (prefers-color-scheme: dark) {
  :root.dark {
    --color-background: #0A0A0A;
    --color-surface: #171717;
    --color-border: #262626;
    --color-text-primary: #FAFAFA;
    --color-text-secondary: #A3A3A3;
    --color-hover: #262626;
    --color-active: #303030;
    --color-muted: #1F1F1F;
  }
}

