/* =====================================================================
   PROPLY – שכבת צבעים אחידה לכל האתר (app.proply-ai.com)
   קובץ אחד, נטען פעם אחת ב-root layout, אחרי globals.css.
   רק צבעים, גופן, מסגרות, פינות וצללים. אין שינוי ב-DOM, בנתיבים או בלוגיקה.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700;800&family=Rubik:wght@400;500;600;700&display=swap');

/* ---------------- חלק א: עמודים עם מתג יום/לילה (Sign) ---------------- */
@media screen {
  /* ---------- 1. מצב יום (data-theme="light") ---------- */
  [data-theme="light"],
  :root:has(.min-h-screen[data-theme="light"]) {
    --color-proply-bg: #F5F4F9;
    --color-proply-bg-secondary: #EEEDF5;
    --color-proply-bg-card: #FFFFFF;
    --color-proply-bg-card-dark: #F2F1F7;
    --color-proply-surface-deep: #F2F1F7;
    --color-proply-surface-deeper: #E7E5F0;
    --color-proply-surface-card: #FFFFFF;
    --color-proply-text: #141845;
    --color-proply-text-bright: #141845;
    --color-proply-text-soft: #22264F;
    --color-proply-text-tertiary: #3F4263;
    --color-proply-text-secondary: #5A5D7A;
    --color-proply-muted: #5A5D7A;
    --color-proply-faint: #6B6E8A;
    --color-proply-border: #DEDCEA;
    --color-proply-border-hover: #C5C2D9;
    --color-proply-border-strong: #DEDCEA;
    --color-proply-gold: #0E1240;
    --color-proply-gold-light: #2A2F6B;
    --color-proply-ink: #FFFFFF;
    --color-proply-pink: #D6245C;
    --color-proply-pink-light: #B81D4D;
    --color-proply-teal: #0F8A5F;
    --color-proply-client-interested: #2453C7;
    --color-proply-client-owner: #0F7A55;
    --color-proply-client-both: #6A3DBA;
    --color-proply-client-renter: #4840C2;
    --color-proply-client-landlord: #A85A00;
    --proply-gold: #0E1240;
    --proply-gold-light: #2A2F6B;
    --proply-pink: #D6245C;
    --proply-pink-light: #B81D4D;
    --proply-teal: #0F8A5F;
    --proply-bg: #F5F4F9;
    --proply-bg-secondary: #EEEDF5;
    --proply-bg-card: #FFFFFF;
    --proply-text: #141845;
    --proply-text-secondary: #5A5D7A;
    --proply-border: #DEDCEA;
    --proply-border-hover: #C5C2D9;
    --sign-chrome-bg: #F5F4F9F2;
    --sign-chrome-fade: #F5F4F9F2;
    --sign-card-gradient: #FFFFFF;
    --sign-card-muted: #6B6E8A;
  }

  /* ---------- 2. מצב לילה (data-theme="dark") ---------- */
  [data-theme="dark"],
  :root:has(.min-h-screen[data-theme="dark"]) {
    --color-proply-bg: #0B0D1F;
    --color-proply-bg-secondary: #141733;
    --color-proply-bg-card: #13162E;
    --color-proply-bg-card-dark: #0F1228;
    --color-proply-surface-deep: #0F1228;
    --color-proply-surface-deeper: #090B1A;
    --color-proply-surface-card: #1A1E3D;
    --color-proply-text: #EEF0FA;
    --color-proply-text-bright: #FFFFFF;
    --color-proply-text-soft: #DADCEE;
    --color-proply-text-tertiary: #C3C6DC;
    --color-proply-text-secondary: #A3A6C2;
    --color-proply-muted: #A3A6C2;
    --color-proply-faint: #8A8EAE;
    --color-proply-border: #262B52;
    --color-proply-border-hover: #3A4070;
    --color-proply-border-strong: #2F3560;
    --color-proply-gold: #B9BEFF;
    --color-proply-gold-light: #CDD1FF;
    --color-proply-ink: #0E1240;
    --color-proply-pink: #E0336F;
    --color-proply-pink-light: #FF6B9D;
    --color-proply-teal: #34D3A0;
    --proply-gold: #B9BEFF;
    --proply-gold-light: #CDD1FF;
    --proply-pink: #E0336F;
    --proply-pink-light: #FF6B9D;
    --proply-teal: #34D3A0;
    --proply-bg: #0B0D1F;
    --proply-bg-secondary: #141733;
    --proply-bg-card: #13162E;
    --proply-text: #EEF0FA;
    --proply-text-secondary: #A3A6C2;
    --proply-border: #262B52;
    --proply-border-hover: #3A4070;
    --sign-chrome-bg: #0B0D1FE6;
    --sign-chrome-fade: #0B0D1FF2;
    --sign-card-gradient: #13162E;
    --sign-card-muted: #8A8EAE;
  }

  /* ---------- 3. כללים משותפים ---------- */
  :root:has(.min-h-screen[data-theme]) body,
  :root:has(.min-h-screen[data-theme]) body * { font-family: "Assistant", "Segoe UI", Arial, sans-serif; }
  :root:has(.min-h-screen[data-theme]) h1, :root:has(.min-h-screen[data-theme]) h2, :root:has(.min-h-screen[data-theme]) h3 { font-family: "Rubik", "Assistant", sans-serif; letter-spacing: 0; }
  :root:has(.min-h-screen[data-theme]) h1 { font-size: 26px !important; line-height: 1.25 !important; }
  :root:has(.min-h-screen[data-theme]) .tabular, :root:has(.min-h-screen[data-theme]) [dir="ltr"] { font-variant-numeric: tabular-nums; }

  :root:has(.min-h-screen[data-theme]) .rounded-3xl { border-radius: 14px !important; }
  :root:has(.min-h-screen[data-theme]) .rounded-2xl { border-radius: 12px !important; }
  :root:has(.min-h-screen[data-theme]) .rounded-xl { border-radius: 10px !important; }

  :root:has(.min-h-screen[data-theme]) [class*="before:bg-gradient"]::before { display: none !important; }
  :root:has(.min-h-screen[data-theme]) [class*="shadow-proply-pink"] { box-shadow: none !important; }
  :root:has(.min-h-screen[data-theme]) .animate-dot-life { display: none !important; }

  :root:has(.min-h-screen[data-theme="light"]) :is(h2,h3,h4).text-proply-pink { color: #141845 !important; }
  :root:has(.min-h-screen[data-theme="dark"])  :is(h2,h3,h4).text-proply-pink { color: #EEF0FA !important; }

  /* ---------- 4. מצב יום – כללים ---------- */
  :root:has(.min-h-screen[data-theme="light"]) [class*="shadow-lg"], :root:has(.min-h-screen[data-theme="light"]) [class*="shadow-xl"], :root:has(.min-h-screen[data-theme="light"]) [class*="shadow-2xl"] {
    box-shadow: 0 1px 2px rgba(20,24,69,.06), 0 6px 18px rgba(20,24,69,.07) !important;
  }
  :root:has(.min-h-screen[data-theme="light"]) .bg-proply-gold { color: #FFFFFF !important; }
  :root:has(.min-h-screen[data-theme="light"]) [class*="border-[#C9A84C]"] { border-color: #DEDCEA !important; }
  :root:has(.min-h-screen[data-theme="light"]) [class*="text-[#C9A84C]"] { color: #0E1240 !important; }
  :root:has(.min-h-screen[data-theme="light"]) [class*="bg-[#C9A84C]"] { background-color: #0E1240 !important; color: #FFFFFF !important; }
  :root:has(.min-h-screen[data-theme="light"]) :is([class^='border-proply-gold/'],[class*=' border-proply-gold/']) { border-color: #D9D6E8 !important; }
  :root:has(.min-h-screen[data-theme="light"]) :is([class^='bg-proply-gold/'],[class*=' bg-proply-gold/']):not(button):not(a) { background-color: #F3F2F8 !important; }
  :root:has(.min-h-screen[data-theme="light"]) :is([class^='bg-proply-pink/'],[class*=' bg-proply-pink/'],[class^='bg-proply-gold/'],[class*=' bg-proply-gold/'],[class^='bg-proply-teal/'],[class*=' bg-proply-teal/']):has(> svg):not(button):not(a) { background-color: #EEEDF5 !important; border-color: #DEDCEA !important; color: #2A2F6B !important; }
  :root:has(.min-h-screen[data-theme="light"]) :is([class^='bg-proply-pink/'],[class*=' bg-proply-pink/'],[class^='bg-proply-gold/'],[class*=' bg-proply-gold/'],[class^='bg-proply-teal/'],[class*=' bg-proply-teal/']):has(> svg):not(button):not(a) > svg { color: #2A2F6B !important; }
  :root:has(.min-h-screen[data-theme="light"]) .fixed.inset-0[class*='bg-black'] { background-color: rgba(14,18,64,.45) !important; }
  :root:has(.min-h-screen[data-theme="light"]) :focus-visible { outline: 3px solid rgba(214,36,92,.35) !important; outline-offset: 2px; }

  /* ---------- 5. מצב לילה – כללים ---------- */
  :root:has(.min-h-screen[data-theme="dark"]) [class*="shadow-lg"], :root:has(.min-h-screen[data-theme="dark"]) [class*="shadow-xl"], :root:has(.min-h-screen[data-theme="dark"]) [class*="shadow-2xl"] {
    box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.30) !important;
  }
  :root:has(.min-h-screen[data-theme="dark"]) .bg-proply-gold { color: #0E1240 !important; }
  :root:has(.min-h-screen[data-theme="dark"]) [class*="border-[#C9A84C]"] { border-color: #2F3560 !important; }
  :root:has(.min-h-screen[data-theme="dark"]) [class*="text-[#C9A84C]"] { color: #B9BEFF !important; }
  :root:has(.min-h-screen[data-theme="dark"]) [class*="bg-[#C9A84C]"] { background-color: #B9BEFF !important; color: #0E1240 !important; }
  :root:has(.min-h-screen[data-theme="dark"]) :is([class^='border-proply-gold/'],[class*=' border-proply-gold/']) { border-color: #262B52 !important; }
  :root:has(.min-h-screen[data-theme="dark"]) :is([class^='bg-proply-gold/'],[class*=' bg-proply-gold/']):not(button):not(a) { background-color: #171B38 !important; }
  :root:has(.min-h-screen[data-theme="dark"]) :is([class^='bg-proply-pink/'],[class*=' bg-proply-pink/'],[class^='bg-proply-gold/'],[class*=' bg-proply-gold/'],[class^='bg-proply-teal/'],[class*=' bg-proply-teal/']):has(> svg):not(button):not(a) { background-color: #1A1E3D !important; border-color: #2F3560 !important; color: #B9BEFF !important; }
  :root:has(.min-h-screen[data-theme="dark"]) :is([class^='bg-proply-pink/'],[class*=' bg-proply-pink/'],[class^='bg-proply-gold/'],[class*=' bg-proply-gold/'],[class^='bg-proply-teal/'],[class*=' bg-proply-teal/']):has(> svg):not(button):not(a) > svg { color: #B9BEFF !important; }
  :root:has(.min-h-screen[data-theme="dark"]) .fixed.inset-0[class*='bg-black'] { background-color: rgba(5,6,20,.65) !important; }
  :root:has(.min-h-screen[data-theme="dark"]) :focus-visible { outline: 3px solid rgba(185,190,255,.45) !important; outline-offset: 2px; }
}

/* ---------------- חלק ב: עמוד הבית, כל הכלים ודוח הנכס לקונה ---------------- */
@media screen {
  :root:not(:has(.min-h-screen[data-theme])) {
    --color-proply-bg: #0B0D1F;
    --color-proply-bg-secondary: #141733;
    --color-proply-bg-card: #13162E;
    --color-proply-bg-card-dark: #0F1228;
    --color-proply-text: #EEF0FA;
    --color-proply-text-secondary: #A3A6C2;
    --color-proply-muted: #A3A6C2;
    --color-proply-faint: #8A8EAE;
    --color-proply-border: #262B52;
    --color-proply-border-hover: #3A4070;
    --color-proply-gold: #B9BEFF;
    --color-proply-gold-light: #CDD1FF;
    --color-proply-ink: #0E1240;
    --color-proply-pink: #E0336F;
    --color-proply-pink-light: #FF6B9D;
    --color-proply-teal: #34D3A0;

    --report-bg: #0B0D1F;
    --report-bg-elevated: #13162E;
    --report-bg-sunken: #090B1A;
    --report-gallery-bg: #0B0D1F;
    --report-dropdown-bg: #13162E;
    --report-accent: #E0336F;
    --report-accent-hover: #FF6B9D;
    --report-accent-soft: rgba(224, 51, 111, .15);
    --report-accent-strong: rgba(224, 51, 111, .40);
    --report-chip-bg-active: rgba(185, 190, 255, .14);
    --report-chip-border-active: rgba(185, 190, 255, .45);
    --report-input-focus-border: #B9BEFF;
    --report-brand-gold: #B9BEFF;
    --report-brand-gold-soft: rgba(185, 190, 255, .20);
    --report-map-frame: rgba(185, 190, 255, .20);
    --report-text-secondary: #C3C6DC;
    --report-text-muted: #A3A6C2;
    --report-text-faint: #8A8EAE;
    --report-text-inverse: #0B0D1F;
  }

  :root:not(:has(.min-h-screen[data-theme])) body, :root:not(:has(.min-h-screen[data-theme])) body * { font-family: "Assistant", "Segoe UI", Arial, sans-serif; }
  :root:not(:has(.min-h-screen[data-theme])) h1, :root:not(:has(.min-h-screen[data-theme])) h2, :root:not(:has(.min-h-screen[data-theme])) h3 { font-family: "Rubik", "Assistant", sans-serif; letter-spacing: 0; }

  :root:not(:has(.min-h-screen[data-theme])) .fixed.inset-0.-z-10 { display: none !important; }
  :root:not(:has(.min-h-screen[data-theme])) .animate-dot-life { display: none !important; }
  :root:not(:has(.min-h-screen[data-theme])) .luxury-bg-blob { display: none !important; }

  :root:not(:has(.min-h-screen[data-theme])) [class*="bg-proply-gold/9"] { color: #0E1240 !important; }

  :root:not(:has(.min-h-screen[data-theme])) :is(a, button):is([class*="bg-proply-gold/15"], [class*="bg-proply-pink/15"], [class*="bg-[var(--report-accent-soft)]"]) {
    background-color: #171B38 !important;
    border: 1px solid #2F3560 !important;
    color: #EEF0FA !important;
  }
  :root:not(:has(.min-h-screen[data-theme])) :is(a, button):is([class*="bg-proply-gold/15"], [class*="bg-proply-pink/15"], [class*="bg-[var(--report-accent-soft)]"]) svg { color: #B9BEFF !important; }

  :root:not(:has(.min-h-screen[data-theme])) .rounded-3xl { border-radius: 16px !important; }
  :root:not(:has(.min-h-screen[data-theme])) [class*="shadow-2xl"] { box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.30) !important; }

  :root:not(:has(.min-h-screen[data-theme])) :is([class^='border-proply-gold/'],[class*=' border-proply-gold/']) { border-color: #262B52 !important; }
  :root:not(:has(.min-h-screen[data-theme])) :is([class^='bg-proply-gold/'],[class*=' bg-proply-gold/']):not(button):not(a) { background-color: #171B38 !important; }
  :root:not(:has(.min-h-screen[data-theme])) :is([class^='bg-proply-pink/'],[class*=' bg-proply-pink/'],[class^='bg-proply-gold/'],[class*=' bg-proply-gold/'],[class^='bg-proply-teal/'],[class*=' bg-proply-teal/']):has(> svg):not(button):not(a) { background-color: #1A1E3D !important; border-color: #2F3560 !important; color: #B9BEFF !important; }
  :root:not(:has(.min-h-screen[data-theme])) :is([class^='bg-proply-pink/'],[class*=' bg-proply-pink/'],[class^='bg-proply-gold/'],[class*=' bg-proply-gold/'],[class^='bg-proply-teal/'],[class*=' bg-proply-teal/']):has(> svg):not(button):not(a) > svg { color: #B9BEFF !important; }
  :root:not(:has(.min-h-screen[data-theme])) [class*="border-[#C9A84C]"] { border-color: #2F3560 !important; }
  :root:not(:has(.min-h-screen[data-theme])) [class*="text-[#C9A84C]"] { color: #B9BEFF !important; }
  :root:not(:has(.min-h-screen[data-theme])) [class*="bg-[#C9A84C]"] { background-color: #B9BEFF !important; color: #0E1240 !important; }
  :root:not(:has(.min-h-screen[data-theme])) .bg-proply-gold { color: #0E1240 !important; }
  :root:not(:has(.min-h-screen[data-theme])) [class*="before:bg-gradient"]::before { display: none !important; }
  :root:not(:has(.min-h-screen[data-theme])) :focus-visible { outline: 3px solid rgba(185,190,255,.45) !important; outline-offset: 2px; }
  html:not(:has(.min-h-screen[data-theme])) { background-color: #0B0D1F !important; }
  :root:not(:has(.min-h-screen[data-theme])) [style*="border-color:#"]:has(> svg[style*="color:#"]) { background-color: #1A1E3D !important; border-color: #2F3560 !important; }
  :root:not(:has(.min-h-screen[data-theme])) [style*="border-color:#"] > svg[style*="color:#"] { color: #B9BEFF !important; }
  :root:not(:has(.min-h-screen[data-theme])) header.sticky.top-0 { background-color: rgba(11, 13, 31, .88) !important; }
}
