/* ============================================================
   NoorAlFajr — CSS Reset
   Modern, opinionated reset for consistent cross-browser rendering
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* RTL support */
[dir="rtl"] { direction: rtl; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-text);
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-link-hover); text-decoration: underline; }

/* Images */
img, video, svg { display: block; max-width: 100%; height: auto; }

/* Form elements */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; }

/* Lists */
ul, ol { list-style: none; }

/* Tables */
table { border-collapse: collapse; border-spacing: 0; }

/* HR */
hr { border: none; border-top: 1px solid var(--color-border); }

/* Hidden util */
[hidden] { display: none !important; }

/* Focus visible (accessibility) */
:focus-visible { outline: 2px solid var(--primary-500); outline-offset: 3px; }

/* Selection */
::selection {
  background-color: var(--primary-200);
  color: var(--primary-900);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-sidebar); }
::-webkit-scrollbar-thumb { background: var(--primary-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-500); }

/* Numbers in Arabic/Eastern style */
.arabic-numerals { font-variant-numeric: arabic-indic; }
