/* ════════════════════════════════════════════════════════════
   HOME PAGE — WHITE SHELL + DISTINCTLY COLOURED CARDS
   Scoped strictly to body.home-white (dashboard route only).
   All other Firdaus routes keep the original aurora theme.
   ════════════════════════════════════════════════════════════ */

/* ── 1. White shell: remove the aurora / night-sky layer ── */
body.home-white,
body.home-white #mainContent,
body.home-white .page,
body.home-white .page .page-body {
  background: #ffffff !important;
  color: #16261f !important;
}
body.home-white {
  isolation: auto !important;
}
body.home-white #islamicBgCanvas,
body.home-white .aurora-background,
body.home-white .aurora-background::after,
body.home-white .bg-ornaments,
body.home-white .stars-container,
body.home-white .light-rays,
body.home-white .nur-particles {
  display: none !important;
}

/* Sidebar + headers on the white shell */
body.home-white .sidebar {
  background: #f8faf8 !important;
  border-right: 1px solid #dce6df !important;
  color: #16261f !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.home-white .sidebar,
body.home-white .sidebar-header {
  background: #f8faf8 !important;
  color: #16261f !important;
  border-color: #dce6df !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.home-white .sidebar a,
body.home-white .sidebar-nav a,
body.home-white .sidebar-logo,
body.home-white .sidebar-logo *,
body.home-white .sidebar-search input,
body.home-white .sidebar-footer,
body.home-white .sidebar-footer *,
body.home-white .sidebar-header .logo-title,
body.home-white .sidebar-header .logo-subtitle,
body.home-white .sidebar-header .sidebar-toggle {
  color: #16261f !important;
}
body.home-white .mobile-header {
  background: #ffffff !important;
  border-bottom: 1px solid #dce6df !important;
  box-shadow: 0 2px 12px rgba(16, 35, 27, .06) !important;
}
body.home-white .mobile-header *,
body.home-white .mobile-logo-text,
body.home-white .mobile-logo-subtitle,
body.home-white .mobile-menu-btn {
  color: #16261f !important;
}

/* Sidebar search box: light pill with dark text on the white shell */
body.home-white .search-box input#sidebarSearch,
body.home-white .sidebar-search input {
  background: #eef3ef !important;
  color: #16261f !important;
  -webkit-text-fill-color: #16261f !important;
  caret-color: #16261f !important;
  border-color: #d3e0d7 !important;
}
body.home-white .search-box input#sidebarSearch::placeholder,
body.home-white .sidebar-search input::placeholder {
  color: #6f8478 !important;
  -webkit-text-fill-color: #6f8478 !important;
}
body.home-white .search-box input#sidebarSearch:focus {
  background: #e6eee8 !important;
  border-color: #0d5c46 !important;
  box-shadow: 0 0 0 3px rgba(13, 92, 70, .12) !important;
}
body.home-white .sidebar-search .search-icon { color: #6f8478 !important; }

/* Hero headings / SEO intro must be dark on white */
body.home-white .dashboard-intro-copy,
body.home-white .dashboard-section-heading,
body.home-white .dashboard-hero h1,
body.home-white .dashboard-hero p,
body.home-white .section-title {
  color: #16261f !important;
  text-shadow: none !important;
}
body.home-white #seoSsrIntro,
body.home-white #seoSsrIntro h2,
body.home-white #seoSsrIntro p,
body.home-white #seoSsrIntro li {
  color: #16261f !important;
}
body.home-white #seoSsrIntro a {
  color: #0d5c46 !important;
}

/* ── 2. Qibla + Living Globe section: white panel, framed cards ── */
body.home-white #qibla-prayer-globe-section {
  background: #ffffff !important;
  color: #16261f !important;
}
body.home-white #qibla-prayer-globe-section h2,
body.home-white #qibla-prayer-globe-section p,
body.home-white #qibla-prayer-globe-section div {
  color: #16261f !important;
}
body.home-white #qibla-prayer-globe-section a {
  color: #0d5c46 !important;
}
body.home-white #qibla-prayer-globe-section iframe {
  background: #0b1020 !important;
}

/* ── 3. Live bar — two different colours ── */
body.home-white .live-bar .live-bar-item:nth-child(1) {
  background: #dff3ea !important;
  border-color: #9bd3b6 !important;
  color: #0d3b2a !important;
}
body.home-white .live-bar .live-bar-item:nth-child(2) {
  background: #ffeecb !important;
  border-color: #e8c877 !important;
  color: #4a3410 !important;
}
body.home-white .live-bar .live-bar-item:nth-child(3) {
  background: #dceaff !important;
  border-color: #9dbde8 !important;
  color: #17345c !important;
}
body.home-white .live-bar .live-bar-label,
body.home-white .live-bar .live-bar-sub {
  color: inherit !important;
  opacity: .8;
}
body.home-white .live-bar .live-bar-value {
  color: inherit !important;
}

/* ── 4. Hero / feature cards — each a different colour ── */
body.home-white .verse-banner {
  background: #e6f1ff !important;
  color: #123b6b !important;
  border: 1px solid #a9c8ee !important;
  box-shadow: 0 8px 22px rgba(18, 59, 107, .10) !important;
}
body.home-white .verse-banner .verse-arabic,
body.home-white .verse-banner .verse-ref {
  color: #123b6b !important;
}

body.home-white .quran-dashboard-card {
  background: linear-gradient(135deg, #0d9488, #0b6f68) !important;
  color: #ffffff !important;
  border: 1px solid #0b6f68 !important;
  box-shadow: 0 10px 26px rgba(13, 148, 136, .22) !important;
}
body.home-white .quran-dashboard-card * { color: #ffffff !important; }
body.home-white .quran-dashboard-card-copy span { opacity: .88; }

body.home-white .daily-reflection-card {
  background: #f0e7ff !important;
  color: #3d2166 !important;
  border: 1px solid #ccb4f0 !important;
  box-shadow: 0 10px 26px rgba(91, 51, 150, .12) !important;
}
body.home-white .daily-reflection-card h2,
body.home-white .daily-reflection-card .daily-reflection-kicker,
body.home-white .daily-reflection-card label {
  color: #3d2166 !important;
}
body.home-white .daily-reflection-card p,
body.home-white .daily-reflection-card span { color: #55406f !important; }
body.home-white .daily-reflection-card button {
  background: #5b3396 !important;
  color: #ffffff !important;
}

body.home-white .weekly-reflection-summary {
  background: #ffe9df !important;
  color: #7a3a1f !important;
  border: 1px solid #efbda5 !important;
  box-shadow: 0 10px 26px rgba(160, 74, 35, .10) !important;
}
body.home-white .weekly-reflection-summary h2,
body.home-white .weekly-reflection-summary p,
body.home-white .weekly-reflection-summary span {
  color: #7a3a1f !important;
}

body.home-white .today-verse-widget {
  background: #e5f6e9 !important;
  color: #14532d !important;
  border: 1px solid #a6d9b5 !important;
  box-shadow: 0 10px 26px rgba(20, 83, 45, .10) !important;
}
body.home-white .today-verse-widget * { color: #14532d !important; }

body.home-white .quran-audio-library {
  background: linear-gradient(150deg, #6b1620, #330a0e) !important;
  color: #eef4ee !important;
  border: 1px solid rgba(212, 175, 55, .42) !important;
}
body.home-white .quran-audio-library h2,
body.home-white .quran-audio-library p { color: #eef4ee !important; }

/* ── 5. Choose-your-path cards — 7 distinct colours ── */
body.home-white .dashboard-intent-card:nth-child(1) {
  background: linear-gradient(135deg, #0d9488, #0b6b63) !important;
  border-color: #0b6b63 !important;
}
body.home-white .dashboard-intent-card:nth-child(2) {
  background: linear-gradient(135deg, #1e3a8a, #162c68) !important;
  border-color: #162c68 !important;
}
body.home-white .dashboard-intent-card:nth-child(3) {
  background: linear-gradient(135deg, #8a4b1e, #663613) !important;
  border-color: #663613 !important;
}
body.home-white .dashboard-intent-card:nth-child(4) {
  background: linear-gradient(135deg, #5b3396, #3f226b) !important;
  border-color: #3f226b !important;
}
body.home-white .dashboard-intent-card:nth-child(5) {
  background: linear-gradient(135deg, #a12a4a, #741d36) !important;
  border-color: #741d36 !important;
}
body.home-white .dashboard-intent-card:nth-child(6) {
  background: linear-gradient(135deg, #146b45, #0d4a30) !important;
  border-color: #0d4a30 !important;
}
body.home-white .dashboard-intent-card:nth-child(7) {
  background: linear-gradient(135deg, #35607a, #234253) !important;
  border-color: #234253 !important;
}
body.home-white .dashboard-intent-card,
body.home-white .dashboard-intent-card * {
  color: #ffffff !important;
}
body.home-white .dashboard-intent-card span[aria-hidden="true"] { opacity: .85; }

/* ── 6. Generic cards on the home route ── */
body.home-white .content-card,
body.home-white .functional-workspace-card {
  background: #edf2fb !important;
  color: #163a5c !important;
  border: 1px solid #b9cde8 !important;
  box-shadow: 0 8px 20px rgba(22, 58, 92, .09) !important;
}
body.home-white .stat-card:nth-child(1) { background: #fff0d8 !important; color: #6b470d !important; }
body.home-white .stat-card:nth-child(2) { background: #e3f3ff !important; color: #124a70 !important; }
body.home-white .stat-card:nth-child(3) { background: #f3e7ff !important; color: #4b2a76 !important; }
body.home-white .stat-card:nth-child(4) { background: #ffe6e6 !important; color: #7a2430 !important; }
body.home-white .stat-card:nth-child(5) { background: #e2f5e6 !important; color: #14532d !important; }
body.home-white .stat-card:nth-child(6) { background: #e8edff !important; color: #27367a !important; }
body.home-white .module-card:nth-child(1) { background: #e0f4f0 !important; color: #0d4f47 !important; }
body.home-white .module-card:nth-child(2) { background: #eef0ff !important; color: #2c3475 !important; }
body.home-white .module-card:nth-child(3) { background: #fff3df !important; color: #6b4a12 !important; }
body.home-white .module-card:nth-child(4) { background: #fdeaf1 !important; color: #762844 !important; }
body.home-white .module-card:nth-child(5) { background: #e6f5e2 !important; color: #295c1e !important; }
body.home-white .module-card:nth-child(6) { background: #e8f1fb !important; color: #1c4c74 !important; }
body.home-white .stat-card,
body.home-white .module-card,
body.home-white .pillar-card,
body.home-white .api-endpoint-card,
body.home-white .module-overview-card {
  border-color: rgba(22, 61, 47, .16) !important;
  box-shadow: 0 8px 20px rgba(16, 35, 27, .09) !important;
}

/* ── 7. Daily Discovery — 7 different card colours ── */
body.home-white .daily-discovery .dd-head h2,
body.home-white .daily-discovery .dd-head p {
  color: #16261f !important;
}
body.home-white .daily-discovery .dd-head span.eyebrow {
  color: #0d5c46 !important;
  border-color: #79b69b !important;
  background: #e4f3eb !important;
}
body.home-white .dd-grid .dd-card:nth-child(1) {
  background: linear-gradient(145deg, #0d5c46, #073b2c) !important;
  border-color: #0a4a37 !important;
}
body.home-white .dd-grid .dd-card:nth-child(2) {
  background: linear-gradient(145deg, #123b6b, #0b2750) !important;
  border-color: #123b6b !important;
}
body.home-white .dd-grid .dd-card:nth-child(3) {
  background: linear-gradient(145deg, #5b3396, #3d2169) !important;
  border-color: #5b3396 !important;
}
body.home-white .dd-grid .dd-card:nth-child(4) {
  background: linear-gradient(145deg, #8a4b1e, #5e3213) !important;
  border-color: #8a4b1e !important;
}
body.home-white .dd-grid .dd-card:nth-child(5) {
  background: linear-gradient(145deg, #a12a4a, #711d34) !important;
  border-color: #a12a4a !important;
}
body.home-white .dd-grid .dd-card:nth-child(6) {
  background: linear-gradient(145deg, #146b45, #0b4a2f) !important;
  border-color: #146b45 !important;
}
body.home-white .dd-grid .dd-card:nth-child(7) {
  background: linear-gradient(145deg, #1e3a8a, #142864) !important;
  border-color: #1e3a8a !important;
}
body.home-white .dd-grid .dd-card,
body.home-white .dd-grid .dd-card * {
  color: #ffffff !important;
}
body.home-white .dd-grid .dd-card .dd-title { color: #ffe6a8 !important; }
body.home-white .dd-grid .dd-card .dd-meta,
body.home-white .dd-grid .dd-card .dd-cta { color: #f2d98b !important; }
body.home-white .dd-grid .dd-card .dd-body { color: rgba(255, 255, 255, .92) !important; }

/* ── 12. Mobile: fixed header must not cover the hero app icon ──────────
   glow-enhancements.css forces `.main-content { padding:16px!important }`
   at <=768px, cancelling the header-height padding from style-v2.css.
   The 44px icon then starts at y=38 while the header ends at y=60, so
   half the icon is hidden. Restore header-height clearance on the
   dashboard route only. */
@media (max-width: 768px) {
  body.home-white #mainContent {
    padding-top: calc(var(--header-height, 60px) + 14px) !important;
  }
  body.home-white .dashboard-hero { padding-top: 8px !important; }
}


/* ── 13. Golden, shimmering 'Firdaus' hero title ───────────────────────
   A warm gold gradient with a moving light sweep and a soft glow so the
   word reads as polished gold rather than flat text. Body copy stays dark. */
body.home-white .dashboard-hero .dashboard-title-white,
body.home-white .dashboard-hero h1 {
  background: linear-gradient(
    110deg,
    #b8860b 0%,
    #f2d98b 22%,
    #fff3c4 38%,
    #d4af37 52%,
    #f7e7a6 68%,
    #b8860b 88%,
    #f2d98b 100%
  ) !important;
  background-size: 260% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, .45))
          drop-shadow(0 0 22px rgba(255, 226, 140, .28)) !important;
  animation: firdausGoldShine 4.5s linear infinite !important;
  font-weight: 800 !important;
  letter-spacing: .5px !important;
}
@keyframes firdausGoldShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
/* A few slow twinkles over the title, like light catching gold. */
body.home-white .dashboard-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 66px;
  width: 320px;
  height: 70px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 40%, rgba(255,244,190,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 70%, rgba(255,236,160,.85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 58% 25%, rgba(255,250,215,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 60%, rgba(255,236,160,.8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 92% 35%, rgba(255,244,190,.9) 0 1.5px, transparent 2.5px);
  animation: firdausGlitter 3.2s ease-in-out infinite alternate;
  z-index: 2;
}
@keyframes firdausGlitter {
  0%   { opacity: .25; transform: translateX(-50%) scale(.96); }
  100% { opacity: 1;   transform: translateX(-50%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  body.home-white .dashboard-hero .dashboard-title-white,
  body.home-white .dashboard-hero h1,
  body.home-white .dashboard-hero::after { animation: none !important; }
}
