/* ==========================================================================
   QJob Modern Effects - אפקטי כניסה, אנימציות ו-WOW Factor
   קובץ זה משלים את modern-overrides.css הקיים (לא דורס אותו)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. רקע "Aurora" עשיר - גרדיאנטים נעים בעדינות
   -------------------------------------------------------------------------- */
body.modern-ui {
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(27, 138, 243, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 30%, rgba(168, 85, 247, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 0% 80%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 80% 100%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        #eef2f9 !important;
    background-attachment: fixed !important;
    isolation: isolate; /* ✅ stacking context עצמאי - בלי לדרוס מיקום של ילדים */
    position: relative;
}

/* טקסטורת נקודות עדינה - מוסיפה עומק */
body.modern-ui::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(27, 138, 243, 0.06) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: -1; /* ✅ מאחורי הכל */
    opacity: 0.5;
}

/* "אורבים" צפים מתחת לתוכן */
body.modern-ui::after {
    content: '';
    position: fixed;
    top: 10%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 138, 243, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1; /* ✅ מאחורי הכל */
    animation: floatOrb 18s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 40px) scale(1.1); }
    66% { transform: translate(60px, -50px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   2. כותרת ראשית - "איזור שכירים" - עם shimmer
   -------------------------------------------------------------------------- */

/* ---------------------------------------------------- */
/* כותרת - "איזור שכירים" */
/* ---------------------------------------------------- */
.modern-ui .banner-outer:has(> .caption > .holder > h1) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 247, 255, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 40px rgba(27, 138, 243, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    padding: 28px 0 !important;
    height: auto !important;
    animation: dropInZoom 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    
    /* הטריק החדש והבטוח למרכוז */
    width: 92% !important;
    margin: 5px 4% !important; 
}

.modern-ui .banner-outer:has(> .caption > .holder > h1) h1 {
    background: linear-gradient(120deg,
        #1b8af3 0%,
        #6366f1 25%,
        #0056b3 50%,
        #6366f1 75%,
        #1b8af3 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-weight: 800 !important;
    font-size: 44px !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
    animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
    from { background-position: 0% center; }
    to { background-position: 200% center; }
}

@keyframes dropInZoom {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ---------------------------------------------------- */
/* באנר חיפוש משרות (הראשון - עליון) */
/* ---------------------------------------------------- */
.modern-ui .banner-outer:has(.mobile-top) {
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 60px rgba(184, 122, 47, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
    animation: slideInFromRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
    position: relative !important;

    /* הטריק החדש והבטוח למרכוז */
    width: 92% !important;
    margin: 5px 4% !important; 
}

/* ---------------------------------------------------- */
/* באנר חיפוש מועמדים (השני - תחתון) */
/* ---------------------------------------------------- */
.modern-ui .banner-outer:has(.mobile-bottom) {
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 60px rgba(20, 132, 148, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
    animation: slideInFromLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards;
    position: relative !important;

    /* הטריק החדש והבטוח למרכוז */
    width: 92% !important;
    margin: 5px 4% !important; 
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* גבול אור נע מסביב לבאנרים */
.modern-ui .banner-outer:has(.mobile-top)::before,
.modern-ui .banner-outer:has(.mobile-bottom)::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.6) 75%,
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: gradientBorderShift 6s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes gradientBorderShift {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

/* רקע הבאנר - יותר עמוק וריווי */
.modern-ui .banner-outer #banner.element {
    filter: saturate(1.25) brightness(1.02) !important;
}

/* שכבת הכהיה משופרת לקריאות מקסימלית */
.modern-ui .banner-outer #banner.element::after {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.40) 60%,
        rgba(0, 0, 0, 0.55) 100%) !important;
}


/* --------------------------------------------------------------------------
   4. כותרות הבאנרים (חיפוש משרות / מועמדים) - הילה ניאונית
   -------------------------------------------------------------------------- */
.modern-ui .banner-outer .caption .holder h3 {
    color: #ffffff !important;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.25) !important;
    animation: titleGlowPulse 4s ease-in-out infinite alternate;
    margin-bottom: 14px !important;
    margin-top: -30px !important;
}

@keyframes titleGlowPulse {
    from {
        text-shadow:
            0 2px 20px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 255, 255, 0.20);
    }
    to {
        text-shadow:
            0 2px 20px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(255, 255, 255, 0.55);
    }
}


/* --------------------------------------------------------------------------
   5. טופס החיפוש - כרטיס זכוכית מרחפת
   -------------------------------------------------------------------------- */
.modern-ui .banner-outer .caption .holder form {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    padding: 10px !important;
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modern-ui .banner-outer .caption .holder form:hover {
    transform: translateY(-4px) !important;
    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* כפתור חיפוש - גרדיאנט עם shine */
.modern-ui .banner-outer .caption .holder form button[type="submit"] {
    background: linear-gradient(135deg, #1b8af3 0%, #6366f1 50%, #0056b3 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    width: 100% !important;
    height: 56px !important;
    font-size: 22px !important;
    cursor: pointer !important;
    box-shadow:
        0 10px 25px rgba(27, 138, 243, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
}

.modern-ui .banner-outer .caption .holder form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%);
    transition: left 0.7s ease;
    pointer-events: none;
}

.modern-ui .banner-outer .caption .holder form button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow:
        0 15px 35px rgba(27, 138, 243, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.modern-ui .banner-outer .caption .holder form button[type="submit"]:hover::before {
    left: 200%;
}


/* --------------------------------------------------------------------------
   6. שורת כפתורי ההתחברות (CTA) - כניסה מלמטה + עיצוב חזק
   -------------------------------------------------------------------------- */
.modern-ui .banner-outer:has(.btn-row) {
    animation: slideInFromBottom 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s backwards;
}

.modern-ui .banner-outer .btn-row {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.modern-ui .banner-outer .btn-row a {
    background: linear-gradient(135deg, #1b8af3 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow:
        0 10px 25px rgba(27, 138, 243, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    border: none !important;
}

.modern-ui .banner-outer .btn-row a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.modern-ui .banner-outer .btn-row a:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow:
        0 18px 40px rgba(27, 138, 243, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.modern-ui .banner-outer .btn-row a:hover::before {
    transform: translateX(100%);
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --------------------------------------------------------------------------
   7. כותרת "המשרות הכי נצפות" - גרדיאנט + קו דקורטיבי
   -------------------------------------------------------------------------- */
.modern-ui #content-area > h2 {
    text-align: center !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #1b8af3 0%, #6366f1 50%, #0056b3 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    padding: 24px 0 0 !important;
    margin: 0 0 36px 0 !important;
    position: relative;
    letter-spacing: -0.5px;
}

.modern-ui #content-area > h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #1b8af3, #6366f1, #1b8af3, transparent);
    background-size: 200% auto;
    margin: 14px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(27, 138, 243, 0.45);
    animation: shimmerText 3s linear infinite;
}


/* --------------------------------------------------------------------------
   8. כרטיסי משרה - כניסה מהצדדים (לסירוגין) על Scroll
   -------------------------------------------------------------------------- */
.modern-ui .modern-job-box {
    opacity: 0;
    transform: translateX(-80px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform, opacity;
}

/* כרטיסים זוגיים נכנסים מהצד השני - אפקט "זיג-זג" */
.modern-ui .modern-job-box:nth-child(even) {
    transform: translateX(80px);
}

.modern-ui .modern-job-box.in-view {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* גרדיאנט יותר חי על הכרטיס + אפקט hover משופר */
.modern-ui #content-area .box.modern-job-box {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.05),
        0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.modern-ui #content-area .box.modern-job-box:hover {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    border-color: #93c5fd !important;
    transform: translateY(-8px) !important;
    box-shadow:
        0 28px 55px rgba(27, 138, 243, 0.14),
        0 8px 20px rgba(27, 138, 243, 0.08) !important;
}

/* פס צבעוני בצד ימין שזולג בריחוף */
.modern-ui #content-area .box.modern-job-box::before {
    background: linear-gradient(180deg, #1b8af3 0%, #6366f1 50%, #0056b3 100%) !important;
    box-shadow: 0 0 12px rgba(27, 138, 243, 0.5) !important;
}


/* --------------------------------------------------------------------------
   9. אזור CTA תחתון ("תוצאות טובות יותר...") - תיבה דרמטית
   -------------------------------------------------------------------------- */
.modern-ui .call-action-section {
    background:
        linear-gradient(135deg, #1b8af3 0%, #6366f1 50%, #0056b3 100%) !important;
    border-radius: 28px !important;
    margin: 50px auto !important;
    max-width: 92% !important;
    padding: 48px 40px !important;
    box-shadow:
        0 25px 60px rgba(27, 138, 243, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: hidden;
    border: none !important;
}

/* דפוס דקורטיבי ברקע */
.modern-ui .call-action-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.modern-ui .call-action-section .container {
    position: relative;
    z-index: 1;
    align-items: center !important;
    gap: 24px !important;
}

.modern-ui .call-action-section h2,
.modern-ui .call-action-section p {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.20) !important;
}

.modern-ui .call-action-section h2 {
    font-weight: 800 !important;
    font-size: 28px !important;
    margin-bottom: 8px !important;
}

.modern-ui .call-action-section .btn-get {
    background: #ffffff !important;
    color: #0056b3 !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    white-space: nowrap;
}

.modern-ui .call-action-section .btn-get:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.30) !important;
    color: #1b8af3 !important;
}


/* --------------------------------------------------------------------------
   10. מערכת חשיפה ב-Scroll (Reveal on Scroll API)
   נשלטת ע"י modern-effects.js
   -------------------------------------------------------------------------- */
.modern-ui [data-reveal] {
    opacity: 0;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.modern-ui [data-reveal="right"] { transform: translateX(-80px); }
.modern-ui [data-reveal="left"]  { transform: translateX(80px); }
.modern-ui [data-reveal="up"]    { transform: translateY(60px); }
.modern-ui [data-reveal="down"]  { transform: translateY(-60px); }
.modern-ui [data-reveal="zoom"]  { transform: scale(0.88); }

.modern-ui [data-reveal].in-view {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --------------------------------------------------------------------------
   11. Immunity Zone — ויאז'טי בוט ווואטסאפ מנהלים את עצמם
   אסור ל-CSS הזה לגעת בהם. הם משתמשים ב-transform/position עצמאית.
   -------------------------------------------------------------------------- */
.wc-style3,
.wc-style3 *,
.wc-button,
.bot-toggle,
.bot-window,
.bot-window *,
#botToggle,
#botWindow,
#siteToast {
    animation: none !important;
}

/* גם אם data-reveal הוטמע בטעות בתוך אזור החסינות - להשבית */
.wc-style3 [data-reveal],
.bot-window [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
}
/* ==========================================================================
   QJob Typography Polish - Hebrew clean font
   ========================================================================== */

body.modern-ui,
body.modern-ui *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: "Assistant", Arial, Helvetica, sans-serif !important;
}

/* איזור שכירים */
.modern-ui .banner-outer:has(> .caption > .holder > h1) h1 {
  font-family: "Assistant", Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  font-size: 36px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

/* חיפוש משרות / חיפוש מועמדים */
.modern-ui .banner-outer .caption .holder h3 {
  font-family: "Assistant", Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  font-size: 36px !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 3px 8px rgba(0,0,0,.42) !important;
}

/* המשרות הכי נצפות */
.modern-ui #content-area > h2 {
  font-family: "Assistant", Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

/* טפסים */
body.modern-ui input,
body.modern-ui select,
body.modern-ui textarea,
body.modern-ui button {
  font-family: "Assistant", Arial, Helvetica, sans-serif !important;
}


/* --------------------------------------------------------------------------
   12. רספונסיביות - מובייל
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body.modern-ui::after {
        width: 350px;
        height: 350px;
    }

    .modern-ui .banner-outer:has(> .caption > .holder > h1) h1 {
        font-size: 28px !important;
    }

    .modern-ui #content-area > h2 {
        font-size: 24px !important;
    }

    .modern-ui .modern-job-box,
    .modern-ui .modern-job-box:nth-child(even) {
        transform: translateY(40px) !important;
    }

    .modern-ui .modern-job-box.in-view {
        transform: translateY(0) !important;
    }

    .modern-ui .call-action-section {
        padding: 32px 24px !important;
        margin: 32px auto !important;
    }

    .modern-ui .call-action-section .container {
        flex-direction: column !important;
        text-align: center;
    }

    .modern-ui .call-action-section h2 {
        font-size: 22px !important;
    }
}


/* --------------------------------------------------------------------------
   13. נגישות - הפחתת אנימציות למשתמשים שביקשו
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.modern-ui::after { animation: none !important; }

    .modern-ui *,
    .modern-ui *::before,
    .modern-ui *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .modern-ui [data-reveal],
    .modern-ui .modern-job-box {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* הגדלת כפתור החיפוש במובייל בלבד */
@media (max-width: 768px) {
    .modern-ui .banner-outer .caption .holder form button[type="submit"] {
        width: 130% !important;
        font-size: 30px !important;
        margin-right: 10px;
    }
}
