/* ==========================================================================
   MaskanTanger — CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* ── Brand Colors ──────────────────────────────────────────────────── */
  --color-white:           #FFFFFF;
  --color-deep-blue:       #0A1628;
  --color-gold:            #C9A84C;
  --color-secondary-blue:  #1B3A6B;
  --color-light-gray:      #F8F9FA;
  --color-dark-text:       #1A1A2E;

  /* Brand aliases */
  --maskan-blue:           var(--color-secondary-blue);
  --tanger-gold:           var(--color-gold);

  /* ── Extended Palette ─────────────────────────────────────────────── */
  --color-gold-light:      #D9BA6A;
  --color-gold-dark:       #A8872E;
  --color-blue-100:        #EDF2FB;
  --color-blue-200:        #C5D5EE;
  --color-blue-300:        #8AADD8;
  --color-blue-400:        #4F7DC0;
  --color-blue-500:        #1B3A6B;
  --color-blue-900:        #0A1628;
  --color-gray-50:         #F8F9FA;
  --color-gray-100:        #F1F3F5;
  --color-gray-200:        #E9ECEF;
  --color-gray-300:        #DEE2E6;
  --color-gray-400:        #CED4DA;
  --color-gray-500:        #ADB5BD;
  --color-gray-600:        #6C757D;
  --color-gray-700:        #495057;
  --color-gray-800:        #343A40;
  --color-gray-900:        #212529;

  /* Semantic colors */
  --color-success:         #198754;
  --color-success-light:   #D1E7DD;
  --color-warning:         #FFC107;
  --color-warning-light:   #FFF3CD;
  --color-danger:          #DC3545;
  --color-danger-light:    #F8D7DA;
  --color-info:            #0DCAF0;
  --color-info-light:      #CFF4FC;

  /* ── Typography ───────────────────────────────────────────────────── */
  --font-sans:             'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-arabic:           'Noto Sans Arabic', 'Arabic UI Text', 'Geeza Pro', sans-serif;
  --font-mono:             'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --font-size-xs:          0.75rem;    /* 12px */
  --font-size-sm:          0.875rem;   /* 14px */
  --font-size-base:        1rem;       /* 16px */
  --font-size-md:          1.125rem;   /* 18px */
  --font-size-lg:          1.25rem;    /* 20px */
  --font-size-xl:          1.5rem;     /* 24px */
  --font-size-2xl:         1.875rem;   /* 30px */
  --font-size-3xl:         2.25rem;    /* 36px */
  --font-size-4xl:         3rem;       /* 48px */
  --font-size-5xl:         3.75rem;    /* 60px */

  --font-weight-light:     300;
  --font-weight-normal:    400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  --line-height-tight:     1.25;
  --line-height-snug:      1.375;
  --line-height-normal:    1.5;
  --line-height-relaxed:   1.625;
  --line-height-loose:     2;

  --letter-spacing-tight:  -0.025em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide:   0.025em;
  --letter-spacing-wider:  0.05em;
  --letter-spacing-widest: 0.1em;

  /* ── Spacing Scale ────────────────────────────────────────────────── */
  --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-14:   56px;
  --space-16:   64px;
  --space-20:   80px;
  --space-24:   96px;
  --space-32:   128px;

  /* Section / component spacing */
  --section-padding-y:     80px;
  --section-padding-y-sm:  48px;
  --container-padding-x:   16px;

  /* ── Border Radius ────────────────────────────────────────────────── */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-2xl:   32px;
  --radius-full:  9999px;

  /* ── Shadows ──────────────────────────────────────────────────────── */
  --shadow-xs:   0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-sm:   0 1px 3px rgba(10, 22, 40, 0.10), 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md:   0 4px 6px rgba(10, 22, 40, 0.07), 0 2px 4px rgba(10, 22, 40, 0.06);
  --shadow-lg:   0 10px 15px rgba(10, 22, 40, 0.10), 0 4px 6px rgba(10, 22, 40, 0.05);
  --shadow-xl:   0 20px 25px rgba(10, 22, 40, 0.10), 0 10px 10px rgba(10, 22, 40, 0.04);
  --shadow-2xl:  0 25px 50px rgba(10, 22, 40, 0.25);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.30);
  --shadow-blue: 0 4px 20px rgba(27, 58, 107, 0.30);
  --shadow-inner: inset 0 2px 4px rgba(10, 22, 40, 0.06);
  --shadow-none: none;

  /* ── Transitions ──────────────────────────────────────────────────── */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-slower:  600ms ease;
  --ease-in-out:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:           cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in:            cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce:        cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ── Breakpoints (reference only — use in media queries) ─────────── */
  --bp-xs:    375px;
  --bp-sm:    576px;
  --bp-md:    768px;
  --bp-lg:    1024px;
  --bp-xl:    1280px;
  --bp-2xl:   1536px;

  /* ── Layout ───────────────────────────────────────────────────────── */
  --container-max:        1280px;
  --container-wide-max:   1440px;
  --header-height:        72px;
  --header-height-mobile: 60px;
  --sidebar-width:        280px;
  --sidebar-width-sm:     240px;
  --z-dropdown:           1000;
  --z-sticky:             1020;
  --z-fixed:              1030;
  --z-modal-backdrop:     1040;
  --z-modal:              1050;
  --z-popover:            1060;
  --z-tooltip:            1070;
  --z-toast:              1080;

  /* ── Component Tokens ─────────────────────────────────────────────── */
  /* Header */
  --header-bg-transparent: transparent;
  --header-bg-solid:       rgba(10, 22, 40, 0.97);
  --header-blur:           blur(12px);

  /* Card */
  --card-bg:               var(--color-white);
  --card-border:           var(--color-gray-200);
  --card-radius:           var(--radius-lg);
  --card-shadow:           var(--shadow-md);
  --card-shadow-hover:     var(--shadow-xl);

  /* Input */
  --input-height:          48px;
  --input-height-sm:       36px;
  --input-height-lg:       56px;
  --input-bg:              var(--color-white);
  --input-border:          var(--color-gray-300);
  --input-border-focus:    var(--color-secondary-blue);
  --input-radius:          var(--radius-md);
  --input-padding-x:       16px;
  --input-padding-y:       12px;

  /* Button */
  --btn-height:            48px;
  --btn-height-sm:         36px;
  --btn-height-lg:         56px;
  --btn-radius:            var(--radius-md);
  --btn-padding-x:         24px;
  --btn-padding-x-sm:      16px;
  --btn-padding-x-lg:      32px;

  /* Badge */
  --badge-radius:          var(--radius-full);
  --badge-padding:         4px 10px;
  --badge-font-size:       var(--font-size-xs);
  --badge-font-weight:     var(--font-weight-semibold);
}

