/* /shared/banner-desktop.css
   Desktop top navbar styling ONLY.
   banner.js adds .liquid-glass to .navbar (glass sheet comes from base.css).
*/

:root{
  --tray-inset: 14px;
  --tray-top: 10px;

  /* you wanted the tray itself to feel tighter */
  --tray-pad-y: 0px;
  --tray-pad-x: 0px;
  --tray-radius: 999px;

  /* glass tint */
  --tray-bg: rgba(235,236,240,0.36);
  --tray-border: rgba(0,0,0,0.10);

  /* strip behind text links */
  --strip-bg: rgba(255,255,255,0.52);
  --strip-border: rgba(0,0,0,0.08);

  /* logo pill */
  --home-pill-bg: rgba(255, 255, 255, 0.366);
  --home-pill-border: rgba(0,0,0,0.08);

  --gap: 22px;

  --hover-blue: #0a4b8b;
  --active-blue: #2F80ED;
}

/* =========================
   Tray
========================= */
.navbar{
  position: fixed;
  top: var(--tray-top);
  left: var(--tray-inset);
  right: var(--tray-inset);
  width: auto;

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

  padding: var(--tray-pad-y) var(--tray-pad-x);
  border-radius: var(--tray-radius);

  z-index: 1000;
  overflow: visible;
  backdrop-filter: blur(3px) saturate(150%) !important;
}

/* blurrier glass only on the tray, not the gold pill */
.navbar.liquid-glass{
  --glass-radius: var(--tray-radius);
  --glass-bg: var(--tray-bg);
  --glass-border: var(--tray-border);

  /* stronger blur */
  --glass-blur: 26px;
  --glass-bright: 1.05;

  --glass-drop: drop-shadow(0 18px 48px rgba(0,0,0,0.14));
}

/* =========================
   Layout
========================= */
.navbar .logo,
.navbar nav{
  display: flex;
  align-items: center;
}

.navbar nav{
  gap: var(--gap);
  position: relative;

  /* tighter so the strip hugs the content better */
  padding: 0px 12px;
  isolation: isolate;
}

/* kill old page-level underline rules */
.navbar nav a{
  margin: 0 !important;
  border-bottom: 0 !important;
}

.auth-area{
  display: inline-flex;
  align-items: center;
  margin-left: 0 !important;
}

/* =========================
   Logo pill
========================= */
.navbar .logo a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  border-radius: 999px;

  background: var(--home-pill-bg);
  border: 1px solid var(--home-pill-border);

  text-decoration: none;
  position: relative;

  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.navbar .logo a img{
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}

/* =========================
   Strip behind all nav items
========================= */
.navbar nav::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  height: 40px;
  border-radius: 999px;

  background: var(--strip-bg);
  border: 1px solid var(--strip-border);

  box-shadow:
    0 12px 26px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.35);

  z-index: 0;
  pointer-events: none;
}

/* above strip */
.navbar nav a,
#authArea{
  position: relative;
  z-index: 1;
}

/* =========================
   Links
========================= */
.navbar nav a{
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  position: relative;
  line-height: 1;
  padding: 7px 3px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

.navbar nav a:hover{
  color: var(--hover-blue);
}

/* left -> right hover underline only */
.navbar nav a::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0.75;
}

.navbar nav a:hover::after{
  transform: scaleX(1);
}

.navbar nav a.active{
  color: var(--active-blue);
  font-weight: 700;
  pointer-events: none;
  border-bottom: 0 !important;
}

/* no permanent underline on active desktop links */
.navbar nav a.active::after{
  transform: scaleX(0);
}

/* =========================
   Home underline (hover only)
========================= */
.navbar .logo a::after{
  content:"";
  position:absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;

  background: var(--primary);
  border-radius: 2px;

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease, background 220ms ease, opacity 220ms ease;
  opacity: 0.75;
}

.navbar .logo a:hover::after{
  transform: scaleX(1);
  background: var(--hover-blue);
}

/* keep active color logic from JS, but no forced underline */
.navbar .logo a.active::after{
  transform: scaleX(0);
  background: var(--active-blue);
}

/* =========================
   Auth
========================= */
.auth-btn{
  background: transparent;
  border: 0;
  margin: 0;
  padding: 7px 3px;

  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

.auth-btn:hover{
  color: var(--hover-blue);
}

/* hover underline only */
.auth-btn::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: -3px;

  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0.75;
}

.auth-btn:hover::after{
  transform: scaleX(1);
}

.auth-btn.active{
  color: var(--active-blue);
  font-weight: 700;
  border-bottom: 0 !important;
}

/* no permanent underline on active login */
.auth-btn.active::after{
  transform: scaleX(0);
}

/* account icon */
.auth-icon-btn{
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;

  width: 34px;
  height: 34px;
  border-radius: 10px;

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

  position: relative;
}

.auth-icon-btn::after{
  content:"";
  position:absolute;
  left: 4px;
  right: 4px;
  bottom: -3px;
  height: 2px;

  background: var(--primary);
  border-radius: 2px;

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease, background 220ms ease, opacity 220ms ease;
  opacity: 0.75;
}

.auth-icon-btn:hover::after{
  transform: scaleX(1);
  background: var(--hover-blue);
}

/* modal open -> login text turns active color, but no forced underline */
body.modal-open #authArea #authLoginBtn{
  color: var(--active-blue) !important;
  font-weight: 700 !important;
}

body.modal-open #authArea #authLoginBtn::after{
  transform: scaleX(0) !important;
  background: var(--active-blue) !important;
}

/* kill black flash */
#authArea #authLoginBtn:active,
#authArea #authLoginBtn:focus,
#authArea #authLoginBtn:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

#authArea #authLoginBtn:active::after,
#authArea #authLoginBtn:focus::after,
#authArea #authLoginBtn:focus-visible::after{
  transform: scaleX(0) !important;
  transition: none !important;
}

/* Hide mobile bar on desktop */
.navbar-bottom{
  display: none;
}

/***********************
  Extra polish
************************/
.navbar.liquid-glass::before{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.03);
}

/***********************
  Desktop GOLD spotlight
************************/
.navbar nav .nav-spotlight{
  position: absolute;
  top: 50%;
  left: 0;
  border-radius: 999px;
  transform: translate3d(0, -50%, 0);
  pointer-events: none;
  z-index: 0;

  background: rgba(212, 175, 55, 0.30);
  border: 1px solid rgba(212, 175, 55, 0.40);

  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.navbar nav a,
.navbar nav .auth-area{
  position: relative;
  z-index: 1;
}

