/* ═══════════════════════════════════════════
   MOJAHID TECH — Mobile Nav + Hamburger
═══════════════════════════════════════════ */

/* ── Hamburger button ── */
.mt-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  z-index: 1100;
}
.mt-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F5F7FA;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.mt-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mt-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mt-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile overlay menu ── */
.mt-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
}
.mt-mobile-nav.open {
  pointer-events: all;
}

/* Backdrop */
.mt-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mt-mobile-nav.open .mt-mobile-backdrop {
  opacity: 1;
}

/* Drawer */
.mt-mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: #0d1528;
  border-left: 1px solid rgba(35, 114, 146, 0.2);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mt-mobile-nav.open .mt-mobile-drawer {
  transform: translateX(0);
}

/* Drawer header */
.mt-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(35, 114, 146, 0.15);
}
.mt-drawer-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: #00E5FF;
  letter-spacing: 2px;
  text-decoration: none;
}
.mt-drawer-logo span { color: #237292; }
.mt-drawer-close {
  width: 32px;
  height: 32px;
  background: rgba(245,247,250,0.08);
  border: 1px solid rgba(245,247,250,0.12);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,247,250,0.6);
  font-size: 1.1rem;
  transition: all 0.2s;
}
.mt-drawer-close:hover {
  background: rgba(245,247,250,0.14);
  color: #F5F7FA;
}

/* Drawer links */
.mt-drawer-links {
  padding: 16px 0;
  flex: 1;
}
.mt-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: rgba(245,247,250,0.7);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.25s;
  border-right: 3px solid transparent;
  font-family: 'Tajawal', sans-serif;
}
.mt-drawer-link:hover {
  color: #00E5FF;
  background: rgba(35,114,146,0.08);
  border-right-color: #237292;
}
.mt-drawer-link.active {
  color: #00E5FF;
  background: rgba(35,114,146,0.12);
  border-right-color: #00E5FF;
}
.mt-drawer-link-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* Drawer footer */
.mt-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(35,114,146,0.12);
}
.mt-drawer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.mt-drawer-av {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #237292, #0B7F95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.mt-drawer-username {
  font-size: 0.88rem;
  font-weight: 600;
  color: #F5F7FA;
}
.mt-drawer-btn {
  display: block;
  width: 100%;
  padding: 11px;
  text-align: center;
  border-radius: 9px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.mt-drawer-btn-login {
  background: linear-gradient(135deg, #237292, #0B7F95);
  color: white;
  border: none;
}
.mt-drawer-btn-logout {
  background: transparent;
  border: 1px solid rgba(245,247,250,0.15);
  color: rgba(245,247,250,0.6);
}
.mt-drawer-btn-logout:hover {
  border-color: rgba(245,247,250,0.3);
  color: #F5F7FA;
}

/* ── Show hamburger on mobile ── */
@media (max-width: 768px) {
  .mt-hamburger { display: flex !important; }
  .mt-mobile-nav { display: block !important; }
  /* Hide desktop links — keep them hidden, drawer replaces them */
  .mt-navlinks, .mt-nav-links { display: none !important; }
  /* Keep nav user info hidden on mobile too (shown in drawer) */
  .mt-navuser, .mt-nav-user { display: none !important; }
}
