/**
 * SALON YÖNETİM SİSTEMİ - DESIGN TOKENS
 * 
 * Tüm tasarım bu token'lardan türetilecek!
 * Rastgele HEX kullanmak YASAK!
 */

:root {
  /* ============================================
     PRIMARY COLORS (Kırmızı Tema)
     ============================================ */
  --color-primary: #E63946;
  --color-primary-dark: #C1121F;
  --color-primary-light: #F4B8BE;
  --color-primary-soft: #FDEBEC;
  --color-primary-soft-2: #FFF1F2;

  /* ============================================
     NEUTRAL COLORS
     ============================================ */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-background: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F9FAFB;
  --color-surface-hover: #F3F4F6;
  --color-dark-surface: #1E1E1E;
  --color-dark-surface-light: #2D2D2D;

  /* ============================================
     TEXT COLORS
     ============================================ */
  --color-text: #111827;
  --color-text-secondary: #374151;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-text-white: #FFFFFF;

  /* ============================================
     BORDER COLORS
     ============================================ */
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-border-dark: #D1D5DB;
  --color-border-focus: var(--color-primary);

  /* ============================================
     STATUS COLORS (Sadece Kırmızı Kullan!)
     ============================================ */
  --color-success: #E63946;
  --color-success-dark: #C1121F;
  --color-success-soft: #FDEBEC;
  --color-success-soft-2: #FFF1F2;

  --color-warning: #E63946;
  --color-warning-dark: #C1121F;
  --color-warning-soft: #FDEBEC;
  --color-warning-soft-2: #FFF1F2;

  --color-danger: #E63946;
  --color-danger-dark: #C1121F;
  --color-danger-soft: #FDEBEC;
  --color-danger-soft-2: #FFF1F2;

  --color-info: #E63946;
  --color-info-dark: #C1121F;
  --color-info-soft: #FDEBEC;
  --color-info-soft-2: #FFF1F2;

  /* ============================================
     RADIUS (Rounded Corners)
     ============================================ */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ============================================
     SHADOW
     ============================================ */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 4px 6px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 15px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-xl: 0 20px 40px rgba(17, 24, 39, 0.10);
  --shadow-2xl: 0 25px 50px rgba(17, 24, 39, 0.12);
  
  --shadow-card: 0 12px 40px rgba(17, 24, 39, 0.10);
  --shadow-hover: 0 16px 50px rgba(17, 24, 39, 0.15);
  --shadow-red: 0 12px 35px rgba(230, 57, 70, 0.25);
  --shadow-red-hover: 0 16px 45px rgba(230, 57, 70, 0.30);
  
  --shadow-inner: inset 0 2px 4px rgba(17, 24, 39, 0.06);
  --shadow-none: none;

  /* ============================================
     SPACING
     ============================================ */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* Semantic spacing */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-10);
  --space-2xl: var(--space-16);
  --space-3xl: var(--space-24);

  /* ============================================
     TYPOGRAPHY
     ============================================ */
  --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;

  /* Font sizes */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;
  --font-size-6xl: 60px;

  /* Font weights - KALIN YAZILAR ICIN */
  --font-weight-light: 400;
  --font-weight-normal: 500;
  --font-weight-medium: 600;
  --font-weight-semibold: 700;
  --font-weight-bold: 800;
  --font-weight-extrabold: 900;

  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;

  /* Letter spacing */
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;

  /* ============================================
     TRANSITIONS
     ============================================ */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;

  /* ============================================
     Z-INDEX
     ============================================ */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  --z-index-notification: 1080;

  /* ============================================
     BREAKPOINTS (referans için)
     ============================================ */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ============================================
     LAYOUT
     ============================================ */
  --container-xs: 640px;
  --container-sm: 768px;
  --container-md: 1024px;
  --container-lg: 1280px;
  --container-xl: 1536px;

  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --navbar-height: 64px;

  /* ============================================
     FORM ELEMENTS
     ============================================ */
  --input-height: 42px;
  --input-height-sm: 36px;
  --input-height-lg: 48px;
  
  --button-height: 42px;
  --button-height-sm: 36px;
  --button-height-lg: 48px;

  /* ============================================
     OPACITY
     ============================================ */
  --opacity-0: 0;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-30: 0.3;
  --opacity-40: 0.4;
  --opacity-50: 0.5;
  --opacity-60: 0.6;
  --opacity-70: 0.7;
  --opacity-80: 0.8;
  --opacity-90: 0.9;
  --opacity-100: 1;

  --opacity-disabled: var(--opacity-50);
  --opacity-hover: var(--opacity-90);

  /* ============================================
     BLUR
     ============================================ */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;
  --blur-xl: 24px;

  /* ============================================
     CUSTOM COMPONENTS
     ============================================ */
  --card-padding: var(--space-6);
  --card-padding-sm: var(--space-4);
  --card-padding-lg: var(--space-8);

  --badge-height: 24px;
  --badge-padding-x: var(--space-2);

  --avatar-size-xs: 24px;
  --avatar-size-sm: 32px;
  --avatar-size-md: 40px;
  --avatar-size-lg: 48px;
  --avatar-size-xl: 64px;
  --avatar-size-2xl: 96px;

  /* ============================================
     ANIMATIONS
     ============================================ */
  --animation-duration-fast: 200ms;
  --animation-duration-normal: 300ms;
  --animation-duration-slow: 500ms;

  --animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-timing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   DARK MODE (Gelecekte kullanım için hazır)
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #111827;
    --color-surface: #1F2937;
    --color-surface-soft: #374151;
    --color-surface-hover: #4B5563;
    
    --color-text: #F9FAFB;
    --color-text-secondary: #E5E7EB;
    --color-text-muted: #9CA3AF;
    --color-text-light: #6B7280;
    
    --color-border: #374151;
    --color-border-light: #4B5563;
    --color-border-dark: #1F2937;
  }
}

/* ============================================
   UTILITY CLASSES (Token bazlı)
   ============================================ */

/* Text colors */
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-info { color: var(--color-info) !important; }
.text-muted { color: var(--color-text-muted) !important; }

/* Background colors */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary-soft { background-color: var(--color-primary-soft) !important; }
.bg-success { background-color: var(--color-success) !important; }
.bg-success-soft { background-color: var(--color-success-soft) !important; }
.bg-warning { background-color: var(--color-warning) !important; }
.bg-warning-soft { background-color: var(--color-warning-soft) !important; }
.bg-danger { background-color: var(--color-danger) !important; }
.bg-danger-soft { background-color: var(--color-danger-soft) !important; }
.bg-info { background-color: var(--color-info) !important; }
.bg-info-soft { background-color: var(--color-info-soft) !important; }

/* Shadows */
.shadow-xs { box-shadow: var(--shadow-xs) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }
.shadow-card { box-shadow: var(--shadow-card) !important; }
.shadow-red { box-shadow: var(--shadow-red) !important; }
.shadow-none { box-shadow: none !important; }

/* Border radius */
.rounded-xs { border-radius: var(--radius-xs) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-pill { border-radius: var(--radius-pill) !important; }
.rounded-circle { border-radius: var(--radius-circle) !important; }

/* Transitions */
.transition-fast { transition: all var(--transition-fast) !important; }
.transition-base { transition: all var(--transition-base) !important; }
.transition-slow { transition: all var(--transition-slow) !important; }
