/* ============================================================================
   Murphy-TH Full-Screen Mobile & iPad 3-Bar Hamburger Menu (Shared Styles)
   - Desktop PC (> 1024px with mouse/fine pointer): Normal 6-button .tab-nav bar
   - Mobile & iPad (<= 1024px or touch tablets <= 1366px): Top-right 3-bar button
     that expands into a full-screen 6-menu overlay
   ============================================================================ */

body.mth-mobile-menu-open {
  overflow: hidden !important;
}

.mth-mobile-nav-wrap {
  display: none;
}

.mth-mobile-nav-wrap--fixed {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 500;
}

.mth-header-elevated {
  z-index: 500 !important;
}

.mth-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mth-hamburger-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 0 !important;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(7, 11, 20, 0.98));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.18);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mth-hamburger-btn:hover,
.mth-hamburger-btn[aria-expanded="true"] {
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
  background: linear-gradient(145deg, rgba(8, 47, 73, 0.96), rgba(15, 23, 42, 0.98));
}

.mth-hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 0 !important;
  background: #f1f5f9;
  transition: transform 0.22s ease, opacity 0.18s ease, background-color 0.2s ease;
  transform-origin: center;
}

@keyframes mthFullscreenUnfold {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mth-mobile-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 510;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 18px 28px;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.16), transparent 55%),
    linear-gradient(170deg, rgba(7, 10, 18, 0.985), rgba(11, 16, 28, 0.99));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
  animation: mthFullscreenUnfold 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mth-mobile-drawer::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #22d3ee, #ec4899);
  z-index: 2;
}

.mth-mobile-drawer__topbar {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.mth-mobile-drawer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.mth-mobile-drawer__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.mth-mobile-drawer__brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mth-mobile-drawer__brand-sub {
  display: block;
  font-family: 'NotoSansThai Custom', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 0.7rem;
  color: #38bdf8;
  margin-top: 3px;
}

.mth-mobile-drawer__close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #38bdf8;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mth-mobile-drawer__close:hover,
.mth-mobile-drawer__close:active {
  background: rgba(239, 68, 68, 0.22);
  border-color: #f87171;
  color: #fecaca;
}

.mth-mobile-drawer__body {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mth-mobile-drawer__title {
  font-family: 'NotoSansThai Custom', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 14px;
}

.mth-mobile-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mth-mobile-item {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-family: 'NotoSansThai Custom', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.mth-mobile-item:hover,
.mth-mobile-item:active {
  border-color: rgba(56, 189, 248, 0.58);
  background: rgba(30, 41, 59, 0.92);
  color: #ffffff;
}

.mth-mobile-item.active-tab {
  border: 1px solid rgba(34, 211, 238, 0.65) !important;
  border-left: 4px solid #22d3ee !important;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.46), rgba(67, 56, 202, 0.42)) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 22px rgba(34, 211, 238, 0.2) !important;
}

.mth-mobile-item.mth-donate-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #f472b6 !important;
  background: linear-gradient(135deg, #831843 0%, #be185d 52%, #9d174d 100%) !important;
  color: #fff1f8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 18px rgba(244, 114, 182, 0.48) !important;
}

.mth-mobile-item.mth-donate-btn::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -75%;
  bottom: -75%;
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  filter: blur(1px);
  pointer-events: none;
  transform: translateX(-260%) rotate(18deg);
  animation: mth-donate-sheen 3.2s ease-in-out infinite;
}

@keyframes mth-donate-sheen {
  0%, 14% { opacity: 0; transform: translateX(-260%) rotate(18deg); }
  26% { opacity: 0.85; }
  58%, 100% { opacity: 0; transform: translateX(560%) rotate(18deg); }
}

.mth-mobile-item.mth-donate-btn.active-tab {
  border-left: 4px solid #fdf2f8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 24px rgba(244, 114, 182, 0.78) !important;
}

.mth-mobile-drawer__footer {
  margin-top: 22px;
  padding-top: 12px;
  text-align: center;
  font-family: 'NotoSansThai Custom', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 0.68rem;
  color: #475569;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* Show 3-bar hamburger ONLY on Mobile & iPad; keep Desktop 6-button bar normal */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  .tab-nav {
    display: none !important;
  }

  .mth-mobile-nav-wrap {
    display: inline-block !important;
  }

  .site-hero {
    padding-top: 56px !important;
  }
}

.mth-mobile-drawer.hidden,
.mth-mobile-backdrop.hidden,
html.mobile-gateway-required .mth-mobile-nav-wrap,
html.mobile-gateway-required .mth-mobile-backdrop {
  display: none !important;
}
