/* ============================================================
   ANYSHIFT — NAVBAR (floating pill + dropdowns + mobile)
   Complements .topbar/.topbar__inner in anyshift-layout.css.
   ============================================================ */
.topbar__logo-link { display: inline-flex; align-items: center; }
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topnav__group { position: relative; }
.topnav__link {
  font: 600 14px/1 var(--as-font-body); color: var(--as-ink);
  background: none; border: 0; cursor: pointer; text-decoration: none;
  padding: 10px 12px; border-radius: var(--as-r-pill); display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .16s var(--as-ease-out), color .16s var(--as-ease-out); white-space: nowrap;
}
.topnav__link:hover { background: rgba(255,255,255,.7); color: var(--as-red); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 1.3px 3.25px rgba(26,29,33,.06); }
.topnav__link .caret { font-size: 10px; opacity: .7; }
.topnav__cta { margin-left: 6px; }
/* Glas 23/11: Inloggen = neutraal glas met icoon; enkel Registreer is rood */
.topnav__login { margin-left: 6px; white-space: nowrap; }

.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 190px;
  /* Glas-overlay: dik glas zodat tekst leesbaar blijft boven de pagina */
  background: linear-gradient(180deg, rgba(255,255,255,.145), rgba(255,255,255,0) 52%, rgba(26,29,33,.0406)), rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(40px) saturate(1.8); backdrop-filter: blur(40px) saturate(1.8);
  border: 0; border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 1.3px 3.25px rgba(26,29,33,.06), 0 24px 60px -6px rgba(26,29,33,.18);
  padding: 8px; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--as-ease-out), transform .16s var(--as-ease-out), visibility .16s;
}
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.dropdown-menu--end { left: auto; right: 0; }
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 16px;
  font: 500 14px/1.2 var(--as-font-body); color: var(--as-ink); text-decoration: none;
}
.dropdown-menu a:hover { background: rgba(26,29,33,.05); color: var(--as-red); }
/* open on hover (desktop) or via .open (JS / mobile) */
.has-dropdown:hover > .dropdown-menu,
.has-dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* burger hidden on desktop */
.topbar__burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-width: 44px; min-height: 44px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.topbar__burger span { width: 22px; height: 2px; background: var(--as-black); border-radius: 2px; transition: .2s; }

@media (max-width: 980px) {
  .topbar__burger { display: flex; }
  .topnav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(40px) saturate(1.8); backdrop-filter: blur(40px) saturate(1.8);
    border: 0; border-radius: 29px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 24px 60px -6px rgba(26,29,33,.18);
    padding: 10px; margin-left: 0;
    z-index: 100;
    display: none;
  }
  .topnav.open { display: flex; }
  .topnav__link { justify-content: space-between; width: 100%; min-height: 44px; }
  .dropdown-menu a { padding-block: 13px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 2px 0 6px 12px; min-width: 0; display: none; }
  .has-dropdown.open > .dropdown-menu { display: block; }
  .has-dropdown:hover > .dropdown-menu { display: none; }
  .has-dropdown.open:hover > .dropdown-menu { display: block; }
  .topnav__cta { margin: 8px 0 2px; text-align: center; }
  .topnav__login { display: none; } /* login is desktop-only */
}

@media (prefers-reduced-motion: reduce) { .dropdown-menu { transition: none; transform: none; } }

/* Vlaggen in de taalkeuze: plat, zonder kader of schaduw */
.topnav__lang .flag { width: 18px; height: 12px; flex: none; border-radius: 2px; display: inline-block; vertical-align: -1px; margin-right: 2px; }
.topnav__lang .dropdown-menu a { display: flex; align-items: center; }
.topnav__lang .dropdown-menu .flag { margin-right: 10px; }
@media (max-width: 980px) { .topnav__lang > .topnav__link { justify-content: flex-start; } .topnav__lang > .topnav__link .caret { margin-left: auto; } }
