/* ✅ HEADER כללי */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  direction: rtl;
}

/* ✅ ריווח כללי לתוכן */
body {
  margin: 0;
  padding-top: 70px;
}


/* -------------------------------------------------- */
/* ✅ HEADER למובייל בלבד (max-width: 767px) */
/* -------------------------------------------------- */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }

  .site-header {
    height: 60px;
    padding: 15px 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 1000;
  }

  .site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.7); /* לבן שקוף */
    backdrop-filter: blur(10px);               /* טשטוש */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);  /* צל עדין */
  }

  body {
    padding-top: 65px;
  }

  .mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo-container {
  display: flex;
  align-items: center;
  gap: 5px; /* ריווח בין הלוגו לטקסט */
}

.logo-link {
  display: block;
}

.logo-img {
  max-height: 35px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #000;
  line-height: 1;
  margin: 0;
}






  .right-section {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 14px; /* ✅ ריווח אחיד בין האייקונים */
  }

  .icon-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .icon-btn .lucide-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.8; /* קו עדין */
    color: black;
  }

  #hamburgerBtn {
    all: unset;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #hamburgerBtn .lucide-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
  }

  #mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
    padding: 20px 24px 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-nav-link {
    text-decoration: none !important;
    color: #000 !important;
    font-size: 22px;
    font-weight: 700;
    padding: 12px 0;
    display: block;
  }

  .disabled-link {
    color: #aaa !important;
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
  }

  .mobile-header .right-section i {
    color: black;
  }
}



/* -------------------------------------------------- */
/* ✅ HEADER לדסקטופ בלבד (min-width: 768px) */
/* -------------------------------------------------- */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }

  .site-header {
    height: 64px;
    padding: 0;
  }

  body {
    padding-top: 70px;
  }

  .desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 60px;
    box-sizing: border-box;
    gap: 40px;
  }

  .desktop-login {
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 170px;
  }

  .login-button {
    height: 100%;
    border: none;
    border-radius: 0;
    background-color: #007bff;
    color: white;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .login-button:hover {
    background-color: #0056b3;
  }

  .desktop-logo {
    display: flex;
    align-items: center;
    min-width: 170px;
  }

  .desktop-logo img.logo {
    height: 42px;
    max-width: 140px;
    object-fit: contain;
    display: block;
  }

  .desktop-nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 64px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .desktop-nav-links a {
    font-size: 15px;
    font-weight: 400;
    color: #444;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: color 0.2s ease;
    padding: 12px 0;
  }

  .desktop-nav-links a:hover {
    color: #0071e3;
  }

  .desktop-nav-links a.active {
    color: #000;
    font-weight: 500;
    pointer-events: none;
  }

  .desktop-nav-links a.disabled-link {
    color: #ccc !important;
    pointer-events: none;
    cursor: default;
  }
}
