/*
 Theme Name: Isaacco Child
 Template: hello-elementor
 Author: Isaac Co
 Version: 1.0
*/
/* HEADER */
:root {
    /* צבעי בסיס */
    --color-white: #FFFFFF;
    --color-soft-white: #F7F9FB;
    --color-border: #E3E7EE;

    /* פלטת כחולים */
    --blue-night: #0A1A2F;
    --blue-ocean: #123A5F;
    --blue-sky: #3D6A90;

    /* טקסט */
    --text-main: #0A1A2F;
    --text-muted: #526174;
    --text-light: #8C9AAF;

    /* מצבי מערכת */
    --success-mint: #65D6AD;
    --warning-amber: #FFC76B;
    --info-light: #A8C4E8;
    --warning-red: #D66565;
    /* בורדרים */
    --border-light: 1px solid #E3E7EE;
    --border-medium: 1px solid #CFD6E0;
    --border-dark: 1px solid rgba(10,26,47,0.15);

    /* רדיוסים */
    --radius-none: 0;
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;

    /* הצללות */
    --shadow-sm: 0 2px 6px rgba(10,26,47,0.06);
    --shadow-md: 0 4px 12px rgba(10,26,47,0.08);
    --shadow-lg: 0 8px 24px rgba(10,26,47,0.12);

    /* טיפוגרפיה */
    --fs-hero: clamp(2.4rem, 4vw, 3rem);
    --fs-h1: 2rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* אינטראקציות */
    --focus-ring: 0 0 0 3px rgba(61,106,144,0.25); /* sky-blue */
    --hover-bg: rgba(247,249,251,0.8);
    --active-bg: rgba(18,58,95,0.10);
}

/************************************
  ISAACCO – PREMIUM AUTH POPUP (FIXED)
*************************************/
/* === Dropdown Container === */
.elementor-nav-menu .sub-menu {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(10, 26, 47, 0.12);
    border: 1px solid #E3E7EE !important;
    min-width: 220px !important;
    z-index: 35;
}

/* בסיס */
.elementor-nav-menu .sub-menu .elementor-sub-item {
    position: relative;
    overflow: visible; /* ❗ קריטי – לא לחתוך את החץ */
}

/* החץ */
.elementor-nav-menu .sub-menu .elementor-sub-item::after {
    content: "";
    position: absolute;

    /* ⬅️ נכנס מהצד השמאלי */
    left: 12px;
    top: 50%;

    width: 18px;
    height: 18px;

    opacity: 0;
    transform: translate(-8px, -50%);
    transition: opacity 0.25s ease, transform 0.25s ease;

    background-color: var(--warning-red);

    /* SVG → */
    -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<line x1='4' y1='12' x2='20' y2='12' stroke='black' stroke-width='2' stroke-linecap='round'/>\
<polyline points='14 6 20 12 14 18' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/>\
</svg>") no-repeat center / contain;

    mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<line x1='4' y1='12' x2='20' y2='12' stroke='black' stroke-width='2' stroke-linecap='round'/>\
<polyline points='14 6 20 12 14 18' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/>\
</svg>") no-repeat center / contain;
}

/* הפעלה בהובר */
.elementor-nav-menu .sub-menu .elementor-sub-item:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}


/* שכבת רקע */
#isaacco-auth-popup.isaacco-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999 !important;
}

/* קופסה */
.isaacco-auth-box {
    width: 360px;
    background: #fff;
    padding: 28px 26px;
    border-radius: 14px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
    animation: fadeInUp .25s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* כפתור סגירה */
.auth-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none !important;
    background: #F0F2F5 !important;
    color: #556273;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: 0.25s ease;
}

.auth-close:hover {
    background: var(--color-soft-white) !important;
    color: var(--blue-ocean) !important;
}

/* === טאבים עליונים === */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.auth-tab {
    flex: 1;
    background: #F5F7FA !important;
    border: 1px solid #D8DFE8 !important;
    border-radius: 8px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #777;
    text-align: center;
    transition: 0.25s ease;
}
.auth-tab:hover {
    background: var(--color-soft-white) !important;
    color: var(--blue-sky) !important;
}
.auth-tab.active {
    background: #123A5F !important;
    border-color: #123A5F !important;
    color: white !important;
}

/* טפסים */
.auth-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-panel.hidden {
    display: none !important;
}

/* שדות */
.isaacco-auth-box input[type="text"],
.isaacco-auth-box input[type="email"],
.isaacco-auth-box input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: #F7F9FB;
    border: 1px solid #D7DEE8;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.25s ease;
}

.isaacco-auth-box input:focus {
    background: #fff;
    border-color: #123A5F;
    box-shadow: 0 0 0 3px rgba(18,58,95,0.15);
    outline: none;
}

/* תנאי שימוש */
.auth-terms {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

/* כפתור ראשי */
#auth-register-btn,
#auth-login-btn {
    width: 100%;
    padding: 13px 0;
    background: #123A5F !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

#auth-register-btn:hover,
#auth-login-btn:hover {
    background: #0E2A49 !important;
}

#auth-register-btn:active,
#auth-login-btn:active {
    transform: scale(0.97);
}


/************************************
  LOGIN MODULE – ICON ONLY CLEAN STYLE
************************************/

/* מעטפת */
.isaacco-login-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

/* איפוס מוחלט */
.isaacco-login-wrapper * {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* אייקון */
.isaacco-login-icon {
    width: 20px;
    height: 20px;
    stroke: var(--blue-ocean);
    transition: .25s ease;
}

/* משתמש מחובר */
.isaacco-login-icon-user .isaacco-login-head,
.isaacco-login-icon-user .isaacco-login-body {
    fill: var(--blue-ocean);
    stroke: var(--blue-ocean);
}

/* Hover — צובע את האייקון */
.isaacco-login-wrapper:hover .isaacco-login-icon {
    stroke: var(--blue-sky);
}


.isaacco-login-name{
        cursor: pointer;
    color: var(--blue-ocean)!important;
    font-size: 18px!important;
    font-weight: 400;
    transition: .25s ease;
}
/* כפתור התחברות */
.isaacco-login-btn {
    cursor: pointer;
    color: var(--blue-ocean)!important;
    font-size: 18px!important;
    font-weight: 400;
    transition: .25s ease;
}

.isaacco-login-btn:hover {
    color: var(--blue-sky)!important;
}

/* כפתור יציאה */
.isaacco-login-logout-btn {
    cursor: pointer;
    color: var(--blue-ocean);
    display: flex;
}

.isaacco-login-logout-btn:hover {
    color: var(--blue-sky);
}


/* FIX Elementor Nav Menu dropdown pushing header */
.elementor-nav-menu > ul > li {
    display: block !important;
    line-height: normal !important;
}

.elementor-nav-menu > ul > li.menu-item-has-children {
    position: relative;
}

.elementor-nav-menu > ul > li > ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    right: auto;
    margin: 0 !important;
}

/****************************/