/* public_html/blog/nav/nav-mobile.css */

/* =========================================================
   FONTS (match desktop)
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single&display=swap');

/* =========================================================
   ROOT COLORS (match desktop palette)
========================================================= */
:root {
  --nav-text: #ffffff;
  --nav-accent: #7bb5ff;
  --nav-hover: rgba(255, 255, 255, 0.15);
  --nav-shadow: rgba(0, 0, 0, 0.35);

  --nav-bg: rgba(0, 0, 0, 0.15);
  --nav-border: rgba(255,255,255,0.08);

  --overlay-bg: rgba(10, 12, 16, 0.88);
  --overlay-border: rgba(255,255,255,0.10);
  --row-border: rgba(255,255,255,0.10);
  --row-hover: rgba(255,255,255,0.08);
}

/* =========================================================
   MOBILE NAV ROOT
========================================================= */
#nav-mobile {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  font-family: "Inter", sans-serif;
}

/* =========================================================
   TOP BAR (transparent glass over hero)
========================================================= */
#nav-mobile .mobile-bar {
  height: 56px;
  padding: 0 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--nav-border);
}

/* logo link */
#nav-mobile .mobile-logo-link {
  text-decoration: none;
  color: var(--nav-text);
  font-family: 'Bitcount Prop Single';
  font-size: 26px;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px var(--nav-shadow);
}

/* burger button */
#nav-mobile .mobile-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);

  color: #fff;
  font-size: 22px;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

/* =========================================================
   FULLSCREEN OVERLAY (dark glass)
========================================================= */
#nav-mobile .mobile-overlay {
  position: fixed;
  inset: 0;

  display: none;
  flex-direction: column;

  background: var(--overlay-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  color: var(--nav-text);
}

#nav-mobile .mobile-overlay.active {
  display: flex;
}

/* header inside overlay */
#nav-mobile .mobile-header {
  height: 64px;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--overlay-border);
}

/* close button */
#nav-mobile .mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);

  color: #fff;
  font-size: 20px;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

/* =========================================================
   SCREENS (stack navigation)
========================================================= */
#nav-mobile .mobile-screens {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* each screen */
#nav-mobile .mobile-screen {
  position: absolute;
  inset: 0;

  padding: 18px 16px 16px;
  transform: translateX(100%);
  transition: transform 0.32s ease;
}

/* visible screen */
#nav-mobile .mobile-screen.active {
  transform: translateX(0);
}

/* =========================================================
   MENU ITEMS (Stripe-like rows)
========================================================= */
#nav-mobile .mobile-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 14px;
  margin: 8px 0;

  border-radius: 14px;
  border: 1px solid var(--row-border);

  background: rgba(255,255,255,0.04);
  color: var(--nav-text);

  text-decoration: none;
  font-size: 16px;
  font-weight: 500;

  text-shadow: 0 2px 6px var(--nav-shadow);
}

#nav-mobile button.mobile-item {
  cursor: pointer;
  border: 1px solid var(--row-border);
}

/* arrow */
#nav-mobile .mobile-item .arrow {
  opacity: 0.85;
  font-size: 18px;
}

/* tap/hover feedback */
#nav-mobile .mobile-item:hover {
  background: var(--row-hover);
  border-color: rgba(123,181,255,0.35);
}

/* =========================================================
   BACK BUTTON
========================================================= */
#nav-mobile .mobile-back {
  display: inline-flex;
  align-items: center;

  padding: 10px 12px;
  margin: 2px 0 12px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);

  color: #fff;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

/* =========================================================
   FOOTER (Donate + Contact)
========================================================= */
#nav-mobile .mobile-footer {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--overlay-border);

  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

/* contact button */
#nav-mobile .btn-contact {
  flex: 1;
  text-align: center;

  padding: 12px 14px;
  border-radius: 14px;

  text-decoration: none;
  color: #fff;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);

  font-weight: 600;
}

/* =========================================================
   DONATE BUTTON (PAYPAL OVERLAY — MOBILE)
========================================================= */
#donate-button-container-mobile {
  flex: 1;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  border-radius: 14px;
}

/* visual overlay */
#custom-donate-btn-mobile {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: 14px;

  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 700;

  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);

  pointer-events: none;
}

#custom-donate-btn-mobile .heart {
  color: #ff4d6d;
  font-size: 1rem;
}

/* hide PayPal visuals but keep click */
#donate-button-mobile iframe,
#donate-button-mobile img {
  opacity: 0;
}

#donate-button-mobile {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
}

/* optional: hover effect (desktop emulators) */
#donate-button-container-mobile:hover #custom-donate-btn-mobile,
#nav-mobile .btn-contact:hover {
  background: var(--nav-hover);
  border-color: rgba(123,181,255,0.45);
}

/* =========================================================
   DESKTOP SAFETY (hide mobile nav)
========================================================= */
@media (min-width: 901px) {
  #nav-mobile {
    display: none;
  }
}
