/* DiscountHub unified application bar — 2026-10-01 */

header.nav.nav-unified{
  position:sticky;
  top:0;
  z-index:60;
  display:grid;
  grid-template-columns:minmax(190px,1fr) auto minmax(190px,1fr);
  align-items:center;
  width:100%;
  height:82px;
  padding:0 max(42px,calc((100vw - var(--container,1600px))/2));
  background:rgba(4,10,28,.88);
  border-bottom:1px solid rgba(255,255,255,.085);
  box-shadow:0 12px 36px rgba(0,0,0,.10);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
}

header.nav.nav-unified .brand{
  grid-column:1;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:#f6f9ff;
  font-size:18px;
  font-weight:760;
  line-height:1;
  letter-spacing:0;
  text-decoration:none;
}

header.nav.nav-unified .brand img{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(35,116,255,.26);
}

header.nav.nav-unified .brand > span{
  white-space:nowrap;
}

header.nav.nav-unified .brand > span > span{
  color:#2b80ff;
}

header.nav.nav-unified .nav-links{
  grid-column:2;
  justify-self:center;
  display:flex;
  align-items:center;
  gap:4px;
  margin:0;
  padding:5px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:16px;
  color:#aebbd5;
  background:rgba(255,255,255,.025);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:14px;
  font-weight:720;
}

header.nav.nav-unified .nav-links a,
header.nav.nav-unified .nav-links a[href="/ai/"]{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:12px;
  color:#aebbd5;
  background:transparent;
  opacity:1;
  text-decoration:none;
  white-space:nowrap;
  transition:
    color .18s ease,
    background .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

header.nav.nav-unified .nav-links a:hover{
  color:#f6f9ff;
  background:rgba(255,255,255,.055);
  border-color:rgba(255,255,255,.07);
  transform:translateY(-1px);
}

header.nav.nav-unified .nav-links a.active,
header.nav.nav-unified .nav-links a[aria-current="page"]{
  color:#ffffff;
  background:
    linear-gradient(135deg,rgba(35,116,255,.28),rgba(66,234,255,.13));
  border-color:rgba(66,234,255,.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 24px rgba(35,116,255,.12);
}

header.nav.nav-unified .nav-links a.active::before,
header.nav.nav-unified .nav-links a[aria-current="page"]::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 6px;
  margin-right:8px;
  border-radius:50%;
  background:#62ffc7;
  box-shadow:0 0 0 4px rgba(98,255,199,.09),0 0 14px rgba(98,255,199,.42);
}

header.nav.nav-unified .nav-links a.active::after,
header.nav.nav-unified .nav-links a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:3px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,#62efff,transparent);
  opacity:.72;
}

/* The old right-side AI Finder button duplicated a primary navigation item. */
header.nav.nav-unified .nav-cta{
  display:none !important;
}

.nav-menu-toggle{
  display:none;
  grid-column:3;
  justify-self:end;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:13px;
  color:#e7efff;
  background:rgba(255,255,255,.045);
  cursor:pointer;
}

.nav-menu-toggle span,
.nav-menu-toggle::before,
.nav-menu-toggle::after{
  content:"";
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  border-radius:999px;
  background:currentColor;
  transition:transform .18s ease,opacity .18s ease;
}

header.nav.nav-unified.is-menu-open .nav-menu-toggle span{
  opacity:0;
}

header.nav.nav-unified.is-menu-open .nav-menu-toggle::before{
  transform:translateY(6px) rotate(45deg);
}

header.nav.nav-unified.is-menu-open .nav-menu-toggle::after{
  transform:translateY(-6px) rotate(-45deg);
}

@media(max-width:1180px){
  header.nav.nav-unified{
    grid-template-columns:auto 1fr auto;
    height:76px;
    padding:0 22px;
  }

  header.nav.nav-unified .brand img{
    width:44px;
    height:44px;
    flex-basis:44px;
  }

  header.nav.nav-unified .nav-links{
    position:absolute;
    top:calc(100% + 8px);
    left:18px;
    right:18px;
    z-index:70;
    display:none;
    grid-column:auto;
    justify-self:stretch;
    flex-direction:column;
    align-items:stretch;
    gap:5px;
    padding:8px;
    border-radius:18px;
    background:rgba(4,10,28,.97);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 22px 70px rgba(0,0,0,.36);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
  }

  header.nav.nav-unified.is-menu-open .nav-links{
    display:flex;
  }

  header.nav.nav-unified .nav-links a,
  header.nav.nav-unified .nav-links a[href="/ai/"]{
    justify-content:flex-start;
    min-height:46px;
    padding:0 14px;
  }

  header.nav.nav-unified .nav-links a.active::after,
  header.nav.nav-unified .nav-links a[aria-current="page"]::after{
    left:14px;
    right:auto;
    width:72px;
  }

  .nav-menu-toggle{
    display:block;
  }
}

@media(max-width:640px){
  header.nav.nav-unified{
    height:72px;
    padding:0 14px;
  }

  header.nav.nav-unified .brand{
    gap:9px;
    font-size:16px;
  }

  header.nav.nav-unified .brand img{
    width:42px;
    height:42px;
    flex-basis:42px;
    border-radius:12px;
  }

  header.nav.nav-unified .nav-links{
    left:10px;
    right:10px;
  }
}
