/* =============================================================
   MIRAI — Navbar
   Font: Montserrat · Colors: --gray #8D99AE, white on hover
   Underline accent: --red #DB324D (Amaranth)
   ============================================================= */

/* ===== BLOCK: Reset ===== */
* {
  box-sizing: border-box;
}

/* ===== BLOCK: Navbar shell ===== */
/*
  #navbar sits inside .header-inner which handles max-width + centering.
  No extra margin/padding needed here.
*/
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  position: relative;
}

/* ===== BLOCK: Left link group ===== */
.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  min-width: 0;
}

/* ===== BLOCK: Right utility group ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ===== BLOCK: Nav links ===== */
#navbar a {
  color: #8D99AE;
  padding: 10px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

#navbar a:hover {
  color: #FFFFFF;
}

#navbar a.active {
  color: #FFFFFF;
}

/* ===== BLOCK: Sign-in link ===== */
#navbar .nav-right a {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: #8D99AE;
  padding: 6px 10px;
  text-transform: uppercase;
}

#navbar .nav-right a:hover {
  color: #FFFFFF;
}

/* ===== BLOCK: Animated underline indicator ===== */
#underline {
  position: absolute;
  height: 1.5px;
  background-color: #DB324D;   /* Amaranth */
  bottom: -8px;
  left: 0;
  width: 0;
  transition: left 0.25s ease, width 0.25s ease;
  border-radius: 1px;
}

/* ===== BLOCK: Login icon ===== */
.icon-container {
  display: flex;
  align-items: center;
  height: 30px;
}

.login-icon {
  height: 18px;
  margin-right: 5px;
  filter: brightness(0) saturate(100%) invert(70%) sepia(8%) saturate(400%)
          hue-rotate(175deg) brightness(90%) contrast(90%);
}

/* ===== BLOCK: Hamburger — hidden on desktop ===== */
.hamburger-menu {
  display: none;
}

.hamburger-icon {
  display: none;
}

/* ===== BLOCK: Curtain menu — hidden by default ===== */
.curtain-menu {
  display: none;
}

/* ===== BLOCK: Responsive — mobile breakpoint ===== */
@media (max-width: 860px) {

  /* Hide desktop nav groups */
  .nav-left  { display: none; }
  .nav-right { display: none; }

  /* Show hamburger */
  .hamburger-menu {
    display: block;
    cursor: pointer;
    font-size: 22px;
    color: #8D99AE;
    transition: color 0.2s;
  }

  .hamburger-menu:hover { color: #FFFFFF; }

  .hamburger-icon {
    display: block;
    cursor: pointer;
    font-size: 22px;
    color: #8D99AE;
    padding: 0 10px;
    font-family: 'Montserrat', system-ui, sans-serif;
  }

  /* Curtain slide-in panel */
  .curtain-menu {
    display: none;
    position: fixed;
    top: 56px;           /* matches header height */
    left: 0;
    height: 100%;
    width: 75%;
    background-color: #10101C;
    border-right: 0.5px solid rgba(141, 153, 174, 0.12);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow-y: auto;
    padding: 24px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    font-family: 'Montserrat', system-ui, sans-serif;
  }

  .curtain-menu.open {
    display: block;
    transform: translateX(0);
    width: 100%;
  }

  .curtain-links {
    display: flex;
    flex-direction: column;
  }

  .curtain-menu a {
    display: block;
    color: #8D99AE;
    padding: 16px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 0.5px solid rgba(141, 153, 174, 0.1);
    transition: color 0.2s, background 0.2s;
  }

  .curtain-menu a:hover {
    color: #FFFFFF;
    background: rgba(141, 153, 174, 0.05);
  }
}
