/* QuranAcademy design tokens — the same identity as the mobile app (mobile/quran_academy/lib/ui/tokens.dart).
   Every colour, size and shadow of the website comes from here. */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC; }
@font-face { font-family: 'Tajawal'; src: url('/assets/fonts/Tajawal-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('/assets/fonts/Tajawal-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('/assets/fonts/Tajawal-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('/assets/fonts/Cairo-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('/assets/fonts/Cairo-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('/assets/fonts/Cairo-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('/assets/fonts/Cairo-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* brand */
  --primary: #065F46;
  --primary-dark: #064E3B;
  --primary-deep: #053D2F;
  --secondary: #10B981;
  --info: #0EA5E9;
  --accent: #F59E0B;
  --danger: #EF4444;
  --purple: #7C3AED;
  --background: #F3F4F6;

  /* tints */
  --primary-soft: #E6F2EE;
  --secondary-soft: #D1FAE5;
  --info-soft: #E0F2FE;
  --accent-soft: #FEF3C7;
  --danger-soft: #FEE2E2;
  --purple-soft: #EDE9FE;

  /* neutrals */
  --surface: #FFFFFF;
  --surface-alt: #F9FAFB;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #111827;
  --text-muted: #6B7280;
  --text-subtle: #9CA3AF;
  --on-primary: #FFFFFF;

  /* tones: foreground / background (StatusBadge, IconBox...) */
  --tone-success-fg: #047857; --tone-success-bg: var(--secondary-soft);
  --tone-info-fg: #0369A1;    --tone-info-bg: var(--info-soft);
  --tone-warning-fg: #B45309; --tone-warning-bg: var(--accent-soft);
  --tone-danger-fg: #B91C1C;  --tone-danger-bg: var(--danger-soft);
  --tone-primary-fg: var(--primary); --tone-primary-bg: var(--primary-soft);
  --tone-purple-fg: var(--purple);   --tone-purple-bg: var(--purple-soft);
  --tone-neutral-fg: var(--text-muted); --tone-neutral-bg: #F3F4F6;

  /* spacing */
  --space-xxs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px;
  --space-lg: 20px; --space-xl: 24px; --space-xxl: 32px; --space-xxxl: 48px;

  /* radius */
  --radius-card: 16px; --radius-card-lg: 18px; --radius-control: 12px; --radius-chip: 10px; --radius-pill: 999px;

  /* shadows */
  --shadow-card: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .06);
  --shadow-raised: 0 8px 24px rgba(17, 24, 39, .08);

  /* typography: Latin text and digits use Inter; Arabic falls back to Tajawal (body) and Cairo (headings) */
  --font-body: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', 'Nirmala UI', 'Noto Sans Bengali', 'Noto Sans Devanagari', sans-serif;
  --font-heading: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', 'Nirmala UI', 'Noto Sans Bengali', 'Noto Sans Devanagari', sans-serif;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-md: .9375rem; --fs-lg: 1.0625rem; --fs-xl: 1.25rem; --fs-xxl: 1.5rem; --fs-hero: 1.875rem;

  /* layout */
  --content-max: 1280px;
  --sidebar-w: 272px;
  --sidebar-compact-w: 84px;
  --topbar-h: 60px;
  --bottombar-h: 64px;
  --control-h: 44px;
  --focus-ring: 0 0 0 3px rgba(16, 185, 129, .45);
}

/* Urdu: a Naskh face (Nastaliq is too tall for buttons and tables); Bengali and Hindi use the system's. */
:root:lang(ur) { --font-body: 'Tajawal', 'Noto Naskh Arabic', system-ui, 'Segoe UI', sans-serif; --font-heading: 'Cairo', 'Noto Naskh Arabic', system-ui, 'Segoe UI', sans-serif; }
