/**
 * CSS Variables - iseraj.com
 *
 * Central location for all CSS custom properties
 * Import this file first in all other CSS files
 *
 * @version 1.0
 */

:root {
  /* ========================================
     COLORS
     ======================================== */

  /* Primary Brand Colors */
  --primary-color: #4a90e2;
  --primary-dark: #3878c5;
  --primary-light: #6ba3e8;

  /* Secondary Colors */
  --secondary-color: #50c878;
  --secondary-dark: #3fb569;
  --secondary-light: #6dd388;

  /* Accent Colors */
  --accent-color: #ffa500;
  --accent-dark: #e67e22;
  --accent-light: #ffb733;

  /* Neutral Colors */
  --background-color: #f0f8ff;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --border-color: #bdc3c7;

  /* Semantic Colors */
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --warning-color: #f39c12;
  --info-color: #3498db;

  /* Hover States */
  --hover-color: #f39c12;
  --hover-bg: rgba(74, 144, 226, 0.1);

  /* ========================================
     SHADOWS
     ======================================== */

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  /* ========================================
     SPACING
     ======================================== */

  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */

  /* ========================================
     TYPOGRAPHY
     ======================================== */

  /* Font Families */
  --font-primary: 'Tajawal', 'Almarai', 'Cairo', sans-serif;
  --font-headings: 'Almarai', sans-serif;
  --font-monospace: 'Courier New', monospace;

  /* 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: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* ========================================
     BORDERS & RADIUS
     ======================================== */

  --border-radius-sm: 0.25rem;  /* 4px */
  --border-radius-md: 0.5rem;   /* 8px */
  --border-radius-lg: 0.75rem;  /* 12px */
  --border-radius-xl: 1rem;     /* 16px */
  --border-radius-full: 9999px; /* Fully rounded */

  --border-width: 1px;
  --border-width-thick: 2px;

  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition: all 0.3s ease; /* Default */

  /* ========================================
     Z-INDEX LAYERS
     ======================================== */

  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ========================================
     BREAKPOINTS (for JS)
     ======================================== */

  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;

  /* ========================================
     LAYOUT
     ======================================== */

  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-xxl: 1320px;

  --header-height: 70px;
  --footer-height: 200px;

  /* ========================================
     COMPONENTS
     ======================================== */

  /* Buttons */
  --btn-padding-x: 1.5rem;
  --btn-padding-y: 0.5rem;
  --btn-border-radius: var(--border-radius-full);

  /* Cards */
  --card-padding: 1.5rem;
  --card-border-radius: var(--border-radius-lg);

  /* Inputs */
  --input-padding-x: 1rem;
  --input-padding-y: 0.5rem;
  --input-border-radius: var(--border-radius-md);
  --input-border-color: var(--border-color);
  --input-focus-border-color: var(--primary-color);
  --input-focus-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* ========================================
   RTL ADJUSTMENTS
   ======================================== */

[dir="rtl"] {
  /* Add any RTL-specific variable overrides here */
}
