/* === BASE.CSS - Reset, Variables, Typography === */

/* CSS Custom Properties (Variables) */
:root {
  /* === COLORI BRAND === */
  --primary-orange: #ff7849;
  --primary-orange-dark: #ff6b35;
  --primary-orange-light: #ffb347;
  
  /* === COLORI ADMIN (DARK THEME) === */
  --admin-bg-dark: #1e293b;
  --admin-bg-medium: #334155;
  --admin-bg-light: #475569;
  --admin-text: #f1f5f9;
  --admin-text-muted: #94a3b8;
  --admin-border: rgba(255, 255, 255, 0.1);
  
  /* === COLORI SISTEMA === */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* === TIPOGRAFIA === */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* === SPAZIATURE === */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* === BORDER RADIUS === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  
  /* === SHADOWS === */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-orange: 0 8px 25px rgba(255, 120, 73, 0.3);
  
  /* === BACKDROP FILTERS === */
  --blur-sm: blur(10px);
  --blur-md: blur(20px);
  
  /* === TRANSITIONS === */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s ease;
}

/* Reset and Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}