/* ============================================================
   MARY'S MANTLE — X.AI + SPACEX HYBRID NAVIGATION SYSTEM
   Centered Menu • Icon‑Only Toggle • Gold Accents • Ultra‑Black
   ============================================================ */

/* ROOT VARIABLES */
:root {
  --mm-text: #e5e7eb;
  --mm-text-light: #1f2937;

  --gold: #fbbf24;

  --header-bg-top: rgba(0, 0, 0, 0);       /* fully transparent */
  --header-bg-scroll: rgba(0, 0, 0, 0.45); /* x.ai glass tint */
}

/* STICKY NAV — TRANSPARENT AT TOP */
.mm-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--header-bg-top);
  backdrop-filter: none;
  border-bottom: 0.5px solid transparent;
  transition:
    background 0.25s ease,
    backdrop-filter 0.25s ease,
    border-color 0.25s ease,
    padding 0.25s ease;
}

/* ON SCROLL — X.AI GLASS EFFECT */
.mm-nav.shrink {
  background: var(--header-bg-scroll);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--gold);
}

/* INNER WRAPPER */
.mm-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.25s ease;
}

/* SHRINK MODE */
.mm-nav.shrink .mm-nav-inner {
  padding: 12px 32px;
}

.mm-nav.shrink .mm-logo {
  transform: scale(0.88);
  opacity: 0.9;
}

/* LOGO */
.mm-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--mm-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* CENTERED MENU — SPACEX STYLE */
.mm-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
}

/* MENU LINKS */
.mm-link {
  position: relative;
  font-size: 14px;
  color: var(--mm-text);
  text-decoration: none;
  padding: 6px 0;
  transition: opacity 0.2s ease;
}

/* GOLD UNDERLINE — SLIDES RIGHT */
.mm-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.18s ease-out;
}

.mm-link:hover::after {
  width: 100%;
}

/* RIGHT SIDE: THEME TOGGLE + HAMBURGER */
.mm-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ICON‑ONLY THEME TOGGLE — YEAR 9001 */
.mm-theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--mm-text);
  font-size: 20px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.mm-theme-toggle:hover {
  opacity: 0.7;
}

/* HAMBURGER */
.mm-hamburger {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mm-hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--mm-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mm-hamburger span:nth-child(1) { top: 0; }
.mm-hamburger span:nth-child(2) { top: 11px; }
.mm-hamburger span:nth-child(3) { top: 22px; }

/* MOBILE MENU */
@media (max-width: 900px) {
  .mm-center {
    display: none;
  }

  .mm-hamburger {
    display: block;
  }

  .mm-links-mobile {
    position: fixed;
    top: 64px;
    right: -260px;
    width: 240px;
    height: calc(100vh - 64px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--gold);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transition: right 0.3s ease;
  }

  .mm-links-mobile.open {
    right: 0;
  }
}
