/* Fix browser autofill background colour */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset;
  -webkit-text-fill-color: #f0ede8;
  border-color: #2a2a2a;
  transition: background-color 5000s ease-in-out 0s;
}

.nav-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); background: var(--black);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px; z-index: 200;
}
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-greeting {
  font-size: 12px; color: var(--grey);
  font-style: italic; white-space: nowrap;
}
.nav-greeting span { color: var(--white); font-style: normal; }
.nav-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px; letter-spacing: 0.2em;
  background: transparent; color: var(--grey);
  border: 1px solid var(--grey-dim);
  padding: 5px 14px; cursor: pointer;
  text-transform: uppercase; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { border-color: var(--white); color: var(--white); }
.nav-link.active { border-color: var(--red); color: var(--red); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.mobile-drawer {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--black); z-index: 199;
  padding: 24px 20px; flex-direction: column;
  gap: 0; border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.drawer-greeting {
  font-size: 12px; color: var(--grey-dim);
  font-style: italic; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.drawer-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.15em;
  color: var(--grey); text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.drawer-link:hover { color: var(--white); }
.drawer-link.active { color: var(--red); }
.drawer-logout { color: var(--grey-dim); margin-top: 8px; border-bottom: none; }

/* Side lines */
.side-line {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 1px; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  z-index: 50;
}
.side-line.left { left: 20px; }
.side-line.right { right: 20px; }

@media (max-width: 640px) {
  .nav-greeting { display: none; }
  .nav-link { display: none; }
  .hamburger { display: flex; }
  .side-line { display: none; }
}
