/* ============================================================
   fx-mobile.css — Mobile nav panel for JD Yuversity (light theme)
   Breakpoint: < 768px
   ============================================================ */

/* ── Hamburger button ─────────────────────────────────────── */
#fx-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

@media (max-width: 768px) {
  #fx-hamburger { display: flex; }
  .nav-links, .nav-actions { display: none !important; }
}

/* 3 lines */
#fx-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #115055;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* State: X */
body.nav-open #fx-hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.nav-open #fx-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.nav-open #fx-hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile panel ─────────────────────────────────────────── */
#fx-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 380px;
  height: 100vh;
  background: #E8F5FB;
  border-left: 1px solid rgba(42, 157, 143, 0.2);
  box-shadow: -20px 0 60px rgba(17, 80, 85, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1000;
  padding: 5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

body.nav-open #fx-mobile-menu {
  transform: translateX(0);
}

/* ── Overlay ──────────────────────────────────────────────── */
#fx-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 80, 85, 0.3);
  z-index: 999;
  backdrop-filter: blur(2px);
}

body.nav-open #fx-mobile-overlay {
  display: block;
}

/* ── Links inside panel ───────────────────────────────────── */
#fx-mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: #115055;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(42, 157, 143, 0.12);
  transition: color 0.2s, padding-left 0.2s;
}

#fx-mobile-menu a:hover {
  color: #2A9D8F;
  padding-left: 0.5rem;
}

/* ── CTA button inside panel ──────────────────────────────── */
#fx-mobile-menu .mobile-cta {
  margin-top: 2rem;
  background: #115055;
  color: #FFFFFF;
  text-align: center;
  border-radius: 30px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-bottom: none;
}

#fx-mobile-menu .mobile-cta:hover {
  background: #2A9D8F;
  padding-left: 0;
}
