/* ─────────────────────────────────────────────────────────────
   NEROBEL GROUP · DESIGN SYSTEM TOKENS & FOUNDATIONS
   Black & White Luxury with Electric Pro-Blue and Gold Accents
   ───────────────────────────────────────────────────────────── */

:root {
  /* Surfaces & Backgrounds */
  --black: var(--color-bg);
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.10) 0%, transparent 50%), var(--color-bg);
  --s1: var(--color-surface);
  --s2: var(--color-surface-2);
  --s3: var(--color-surface-3);
  --s-glass: rgba(12, 12, 14, 0.75);
  --header-bg: rgba(5, 5, 5, 0.88);

  /* Borders & Dividers */
  --bd: var(--color-border);
  --bdh: var(--color-border-hover);
  --bd-glow: rgba(37, 99, 235, 0.45);

  /* Typography Colors */
  --tx: var(--color-text);
  --tx2: var(--color-muted);
  --tx3: var(--color-subtle);

  /* Signature Saphir Impérial Accent */
  --az: var(--color-info);
  --azh: #3B82F6;
  --azp: #1D4ED8;
  --az-text: #60A5FA;
  --glow: rgba(37, 99, 235, 0.18);
  --glow-strong: rgba(37, 99, 235, 0.35);

  /* Prestige Gold Accent */
  --gold: var(--accent-pacific);
  --gold-glow: rgba(201, 169, 106, 0.22);
  --gold-grad: linear-gradient(135deg, #E5CA92 0%, #C9A96A 100%);

  /* State Colors */
  --ok: var(--color-success);
  --ok-bg: rgba(52, 199, 123, 0.12);
  --warn: var(--color-warning);
  --err: var(--color-error);
  --err-bg: rgba(255, 92, 108, 0.12);
  --wa: #25D366;
  --wa-glow: rgba(37, 211, 102, 0.22);

  /* Fonts */
  --fd: var(--font-display);
  --fb: var(--font-sans);
  --fm: var(--font-mono);
  --fa: 'Cairo', 'Inter', system-ui, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);

  /* Transitions & Curves */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --trans: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: var(--radius-s);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* Light Theme Switch */
[data-theme="light"] {
  --black: #F8FAFC;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.08) 0%, transparent 60%), #F8FAFC;
  --s1: #FFFFFF;
  --s2: #F1F5F9;
  --s3: #E2E8F0;
  --s-glass: rgba(255, 255, 255, 0.85);
  --header-bg: rgba(255, 255, 255, 0.92);

  --bd: #E2E8F0;
  --bdh: #CBD5E1;
  --bd-glow: rgba(29, 78, 216, 0.35);

  --tx: #0F172A;
  --tx2: #475569;
  --tx3: #64748B;

  --az: #1D4ED8;
  --azh: #1E40AF;
  --azp: #172554;
  --az-text: #1D4ED8;
  --glow: rgba(29, 78, 216, 0.12);
  --glow-strong: rgba(29, 78, 216, 0.25);

  --gold: #B4883A;
  --gold-glow: rgba(180, 136, 58, 0.18);

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(29, 78, 216, 0.18);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--tx);
  font-family: var(--fb);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL Typography & Direction overrides */
[dir="rtl"] body {
  font-family: var(--fa);
  line-height: 1.8;
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans);
}

img, svg {
  display: block;
  max-width: 100%;
}

picture {
  display: contents;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--az);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--glow);
}

/* Selection */
::selection {
  background: var(--az);
  color: #050505;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--bdh);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--az);
}
