/* ==========================================================================
   Contix Template: Color Schemes & Accessibility-Calibrated Palettes
   All primary colors are calibrated for WCAG 2.1 AA/AAA compliance on white text.
   Includes visual indicators (icons, borders, badges) to guarantee zero color-blindness barriers.
   Guarantees 100% theme-wide color changes with ZERO leftover blue!
   ========================================================================== */

/* 1. Royal Blue (الأزرق الملكي - الافتراضي) - Contrast 7.42:1 (AAA) */
body.theme-color-blue {
  --ac-primary: #0b558e;
  --ac-primary-rgb: 11, 85, 142;
  --ac-primary-hover: #073a62;
  --ac-secondary: #073a62;
  --ac-hero-bg: #0b558e;
  --ac-primary-light: rgba(11, 85, 142, 0.09);
  --ac-primary-subtle: rgba(11, 85, 142, 0.04);
  --ac-tint: #eaf3fa;
  --ac-tint-rgb: 234, 243, 250;
  --ac-shadow-hover: 0 12px 28px -4px rgba(11, 85, 142, 0.18);
}
body.theme-color-blue .ac-welcome,
body.theme-color-blue .ac-category-welcome {
  background: linear-gradient(135deg, #073a62 0%, #0b558e 100%) !important;
}

/* 2. Emerald Green (الأخضر الزمردي) - Contrast 5.01:1 (AA) */
body.theme-color-green {
  --ac-primary: #007a51;
  --ac-primary-rgb: 0, 122, 81;
  --ac-primary-hover: #005a3b;
  --ac-secondary: #004d33;
  --ac-hero-bg: #007a51;
  --ac-primary-light: rgba(0, 122, 81, 0.09);
  --ac-primary-subtle: rgba(0, 122, 81, 0.04);
  --ac-tint: #e6f7f0;
  --ac-tint-rgb: 230, 247, 240;
  --ac-shadow-hover: 0 12px 28px -4px rgba(0, 122, 81, 0.18);
}
body.theme-color-green .ac-welcome,
body.theme-color-green .ac-category-welcome {
  background: linear-gradient(135deg, #004d33 0%, #007a51 100%) !important;
}

/* 3. Deep Purple (البنفسجي الإمبراطوري) - Contrast 6.52:1 (AA/AAA) */
body.theme-color-purple {
  --ac-primary: #6d28d9;
  --ac-primary-rgb: 109, 40, 217;
  --ac-primary-hover: #551db0;
  --ac-secondary: #4c1d95;
  --ac-hero-bg: #6d28d9;
  --ac-primary-light: rgba(109, 40, 217, 0.09);
  --ac-primary-subtle: rgba(109, 40, 217, 0.04);
  --ac-tint: #f3e8ff;
  --ac-tint-rgb: 243, 232, 255;
  --ac-shadow-hover: 0 12px 28px -4px rgba(109, 40, 217, 0.18);
}
body.theme-color-purple .ac-welcome,
body.theme-color-purple .ac-category-welcome {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%) !important;
}

/* 4. Ruby Red (الأحمر الياقوتي) - Contrast 5.89:1 (AA/AAA) */
body.theme-color-red {
  --ac-primary: #b91c1c;
  --ac-primary-rgb: 185, 28, 28;
  --ac-primary-hover: #991b1b;
  --ac-secondary: #7f1d1d;
  --ac-hero-bg: #b91c1c;
  --ac-primary-light: rgba(185, 28, 28, 0.09);
  --ac-primary-subtle: rgba(185, 28, 28, 0.04);
  --ac-tint: #fef2f2;
  --ac-tint-rgb: 254, 242, 242;
  --ac-shadow-hover: 0 12px 28px -4px rgba(185, 28, 28, 0.18);
}
body.theme-color-red .ac-welcome,
body.theme-color-red .ac-category-welcome {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%) !important;
}

/* 5. Deep Amber Orange (البرتقالي الدافئ المقروء) - Contrast 5.84:1 (AA) */
body.theme-color-orange {
  --ac-primary: #c2410c;
  --ac-primary-rgb: 194, 65, 12;
  --ac-primary-hover: #9a3412;
  --ac-secondary: #7c2d12;
  --ac-hero-bg: #c2410c;
  --ac-primary-light: rgba(194, 65, 12, 0.09);
  --ac-primary-subtle: rgba(194, 65, 12, 0.04);
  --ac-tint: #fff1e7;
  --ac-tint-rgb: 255, 241, 231;
  --ac-shadow-hover: 0 12px 28px -4px rgba(194, 65, 12, 0.18);
}
body.theme-color-orange .ac-welcome,
body.theme-color-orange .ac-category-welcome {
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%) !important;
}

/* 6. Ocean Teal (السماوي المائي) - Contrast 5.14:1 (AA) */
body.theme-color-cyan {
  --ac-primary: #0e7490;
  --ac-primary-rgb: 14, 116, 144;
  --ac-primary-hover: #155e75;
  --ac-secondary: #164e63;
  --ac-hero-bg: #0e7490;
  --ac-primary-light: rgba(14, 116, 144, 0.09);
  --ac-primary-subtle: rgba(14, 116, 144, 0.04);
  --ac-tint: #e6f9fd;
  --ac-tint-rgb: 230, 249, 253;
  --ac-shadow-hover: 0 12px 28px -4px rgba(14, 116, 144, 0.18);
}
body.theme-color-cyan .ac-welcome,
body.theme-color-cyan .ac-category-welcome {
  background: linear-gradient(135deg, #164e63 0%, #0e7490 100%) !important;
}

/* 7. Berry Rose (الوردي التوتي) - Contrast 5.45:1 (AA) */
body.theme-color-pink {
  --ac-primary: #be185d;
  --ac-primary-rgb: 190, 24, 93;
  --ac-primary-hover: #9d174d;
  --ac-secondary: #831843;
  --ac-hero-bg: #be185d;
  --ac-primary-light: rgba(190, 24, 93, 0.09);
  --ac-primary-subtle: rgba(190, 24, 93, 0.04);
  --ac-tint: #fdf2f8;
  --ac-tint-rgb: 253, 242, 248;
  --ac-shadow-hover: 0 12px 28px -4px rgba(190, 24, 93, 0.18);
}
body.theme-color-pink .ac-welcome,
body.theme-color-pink .ac-category-welcome {
  background: linear-gradient(135deg, #831843 0%, #be185d 100%) !important;
}

/* 8. Dark Slate (الرمادي الاحترافي) - Contrast 12.6:1 (AAA) */
body.theme-color-slate {
  --ac-primary: #1e293b;
  --ac-primary-rgb: 30, 41, 59;
  --ac-primary-hover: #0f172a;
  --ac-secondary: #0f172a;
  --ac-hero-bg: #1e293b;
  --ac-primary-light: rgba(30, 41, 59, 0.09);
  --ac-primary-subtle: rgba(30, 41, 59, 0.04);
  --ac-tint: #f1f5f9;
  --ac-tint-rgb: 241, 245, 249;
  --ac-shadow-hover: 0 12px 28px -4px rgba(30, 41, 59, 0.22);
}
body.theme-color-slate .ac-welcome,
body.theme-color-slate .ac-category-welcome {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}
