/* ==========================================================================
   DESIGN SYSTEM - FAZA 7B
   Based on: PHASE_7B_DESIGN_PREMIUM_SPEC.md
   
   IMPORTANT: NU modifica aceste valori fără aprobare design!
   ========================================================================== */

:root {
  /* ==========================================================================
     COLORS
     ========================================================================== */
  
  /* Backgrounds */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #374151;
  --color-gray-700: #1F2937;
  --color-gray-800: #111827;
  
  /* Accent Colors */
  --color-red-50: #FEE2E2;
  --color-red-600: #DC2626;
  --color-red-700: #B91C1C;
  --color-red-800: #991B1B;
  --color-red-900: #991B1B;
  
  /* Success */
  --color-green-50: #D1FAE5;
  --color-green-600: #059669;
  --color-green-900: #065F46;
  
  /* Warning */
  --color-orange-600: #D97706;
  
  /* ==========================================================================
     SPACING (8pt Grid)
     ========================================================================== */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  
  /* ==========================================================================
     TYPOGRAPHY
     ========================================================================== */
  
  /* Font Family */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 2rem;       /* 32px */
  --font-size-4xl: 3rem;       /* 48px */
  --font-size-5xl: 4.5rem;     /* 72px */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.01em;
  --letter-spacing-wider: 0.05em;
  
  /* ==========================================================================
     BORDER RADIUS
     ========================================================================== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;  /* pill shape */
  
  /* ==========================================================================
     SHADOWS
     ========================================================================== */
  --shadow-none: none;
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-default: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xlarge: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Focus Ring */
  --shadow-focus: 0 0 0 4px rgba(220, 38, 38, 0.1);
  --shadow-focus-strong: 0 0 0 4px rgba(220, 38, 38, 0.2);
  --shadow-focus-accent: 0 0 0 4px rgba(220, 38, 38, 0.3);
  
  /* ==========================================================================
     TRANSITIONS
     ========================================================================== */
  --transition-fast: 100ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Easing Functions */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  
  /* ==========================================================================
     LAYOUT
     ========================================================================== */
  --container-mobile: 100%;
  --container-tablet: 768px;
  --container-desktop: 1200px;
  --container-wide: 1400px;
  
  /* Breakpoints (doar pentru referință, folosim în media queries) */
  /* Mobile: < 640px */
  /* Tablet: 640px - 1024px */
  /* Desktop: > 1024px */
}

/* ==========================================================================
   TYPOGRAPHY BASE STYLES
   ========================================================================== */

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-600);
  letter-spacing: var(--letter-spacing-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-gray-800);
  margin: 0;
}

/* ==========================================================================
   UTILITY CLASSES (minimal, doar ce e necesar)
   ========================================================================== */

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-tablet);
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: var(--container-desktop);
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

/* Screen reader only (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   GLOBAL FOCUS STYLES (accessibility OBLIGATORIU)
   ========================================================================== */

/* Remove default outline */
*:focus {
  outline: none;
}

/* Custom focus ring pentru elemente interactive */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  box-shadow: var(--shadow-focus-strong);
  transition: box-shadow var(--transition-base);
}

/* Excepție: links în text (outline dotted) */
a:focus-visible {
  outline: 2px dotted var(--color-red-600);
  outline-offset: 2px;
  box-shadow: none;
}

/* ==========================================================================
   RESET MINIMAL (doar ce e necesar)
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

