/* ========================================== */
/* Header Navigation Styles */
/* ========================================== */

/* ── NAVIGATION BAR ── */
.ep-header  {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-nav);
  background: var(--default-color);
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 24px rgba(14, 45, 94, 0.4);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
}

.nav-logo img {
  width: auto;
  max-height:50px;

}

/* ── NAVIGATION LINKS ── */
.nav-links {
  display: flex;
  gap: var(--spacing-2xl);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transition: width var(--transition-slow);
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ── CTA BUTTON ── */
.nav-cta {
  background: var(--secondary-color);
  color: var(--color-white);
  padding:6px 16px;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-extrabold);
  font-size: 12px;
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1.5px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.nav-cta:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* ── AUTH SECTION ── */
.nav-auth {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  text-decoration: none;
  transition: background var(--transition-base);
  font-size: 18px;
  border: none;
  cursor: pointer;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
}

.nav-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-danger);
  border-radius: 50%;
  border: 2px solid var(--default-color);
}

/* ════════════════════════════════════════════
   نهاية الهيدر: اللغة + الإشعارات + قائمة الحساب
   (المصدر الوحيد — يُستخدم في الرئيسية والداخلية)
   ════════════════════════════════════════════ */
.nav-end { display:flex; align-items:center; gap:12px; }

.nav-lang-btn { color:rgba(255,255,255,0.7); font-size:13px; font-weight:700; text-decoration:none; padding:6px 10px; border:1px solid rgba(255,255,255,0.2); border-radius:6px; transition:all .2s; letter-spacing:0.5px; }
.nav-lang-btn:hover { color:#fff; border-color:rgba(255,255,255,0.5); }

.hdr-notif-bell { position:relative; color:rgba(255,255,255,0.7); font-size:20px; display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; transition:all .2s; text-decoration:none; }
.hdr-notif-bell:hover { color:#fff; background:rgba(255,255,255,0.08); }
.hdr-notif-bell__badge { position:absolute; top:2px; left:2px; background:#EF4444; color:#fff; font-size:9px; font-weight:800; min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 3px; }

.hdr-client { position:relative; }
.hdr-client__btn { display:flex; align-items:center; gap:8px; background:var(--default-color); border:1px solid rgba(255,255,255,0.15); color:#fff; padding:6px 14px 6px 8px; border-radius:10px; font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; transition:all .2s; }
.hdr-client__btn:hover { background:rgba(255,255,255,0.14); }
.hdr-client__avatar { width:28px; height:28px; border-radius:50%; background:#fff; color:var(--secondary-color); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:900; flex-shrink:0; }
.hdr-client__caret { font-size:12px; opacity:0.7; transition:transform .2s; }
.hdr-client.open .hdr-client__caret { transform:rotate(180deg); }

.hdr-client__dropdown { position:absolute; top:calc(100% + 10px); left:0; min-width:280px; background:#fff; border-radius:14px; box-shadow:0 16px 48px rgba(14,45,94,0.18); border:1px solid #e8edf2; z-index:2000; display:none; overflow:hidden; }
.hdr-client.open .hdr-client__dropdown { display:block; }

.hdr-client__header { padding:16px; display:flex; align-items:center; gap:10px; background:#f8faff; border-bottom:1px solid #e8edf2; }
.hdr-client__hdr-avatar { width:40px; height:40px; border-radius:50%; background:var(--secondary-color); color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:900; flex-shrink:0; text-decoration:none; }
.hdr-client__hdr-info { flex:1; min-width:0; }
.hdr-client__name { font-size:13px; font-weight:800; color:var(--default-color); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hdr-client__email { font-size:11px; color:#64748b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hdr-client__badge { font-size:10px; font-weight:700; background:#eef4ff; color:var(--secondary-color); padding:2px 8px; border-radius:100px; flex-shrink:0; }

.hdr-client__menu { padding:14px 14px 6px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.hdr-client__item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:18px 10px; border-radius:12px; font-size:12px; font-weight:600; color:#4a5568; text-decoration:none; border:1.5px solid #e8edf2; transition:all .2s; text-align:center; line-height:1.3; }
.hdr-client__item:hover { border-color:transparent; color:var(--default-color); transform:translateY(-2px); box-shadow:0 6px 18px rgba(27,86,126,.13); }
.hdr-client__item:hover .hdr-client__item-icon { transform:scale(1.12); }
.hdr-client__item-icon { width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; transition:transform .2s; }
.hdr-client__item-icon--blue   { background:#dbeafe; color:#1d4ed8; }
.hdr-client__item-icon--purple { background:#ede9fe; color:#7c3aed; }
.hdr-client__item-icon--teal   { background:#ccfbf1; color:#0f766e; }
.hdr-client__item-icon--orange { background:#ffedd5; color:#c2410c; }

.hdr-client__footer { padding:8px; }
.hdr-client__divider { height:1px; background:#e8edf2; margin-bottom:8px; }
.hdr-client__logout { width:100%; display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:9px; background:none; border:none; color:#EF4444; font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; transition:background .15s; }
.hdr-client__logout:hover { background:#FEF2F2; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ep-header {
    height: 60px;
    padding: 0 4%;
  }

  .nav-links {
    gap: var(--spacing-lg);
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .ep-header {
    height: 56px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 10px;
  }
}
