/* =========================
   MENU
   ========================= */

.tz-header{
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(4, 8, 16, .62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120, 180, 255, .12);
}

.tz-header__inner{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.tz-nav{ margin-left: auto; }

.tz-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Joomla standaard menu output */
.tz-nav > ul.mod-menu{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Pills */
.tz-nav a{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 18px;
  border-radius: 999px;

  font-weight: 850;
  letter-spacing: .2px;

  color: rgba(234,242,255,.95);
  text-decoration: none;

  background: linear-gradient(180deg, rgba(34,78,135,.42), rgba(12,26,52,.58));
  border: 1px solid rgba(155,210,255,.22);

  box-shadow:
    0 10px 26px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.12);

  overflow: hidden;

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

/* Glow */
.tz-nav a::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(120px 70px at 30% 20%, rgba(110,220,255,.35), transparent 60%);
  opacity: 0;
  filter: blur(6px);
  transition: opacity .18s ease;
  pointer-events: none;
}

/* Shine */
.tz-nav a::after{
  content: "";
  position: absolute;
  top: -35%;
  left: -60%;
  width: 55%;
  height: 170%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.18) 35%,
    rgba(255,255,255,.05) 50%,
    transparent 70%
  );
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.tz-nav a:hover{
  transform: translateY(-1px);
  border-color: rgba(190,235,255,.34);
  background: linear-gradient(180deg, rgba(55,140,255,.36), rgba(12,26,52,.55));
  box-shadow:
    0 14px 34px rgba(0,0,0,.42),
    0 0 0 1px rgba(90,190,255,.10),
    inset 0 1px 0 rgba(255,255,255,.14);
}
.tz-nav a:hover::before{ opacity: 1; }

@keyframes tz-shine{
  0%   { left: -60%; opacity: 0; }
  12%  { opacity: .75; }
  55%  { opacity: .35; }
  100% { left: 130%; opacity: 0; }
}
.tz-nav a:hover::after{
  opacity: 1;
  animation: tz-shine 1.05s ease-in-out forwards;
}

/* Active */
.tz-nav li.active > a,
.tz-nav a[aria-current="page"]{
  background: linear-gradient(180deg, rgba(80,165,255,.48), rgba(18,40,72,.62));
  border-color: rgba(210,245,255,.42);
  box-shadow:
    0 18px 44px rgba(0,0,0,.48),
    0 0 26px rgba(70,180,255,.18),
    inset 0 1px 0 rgba(255,255,255,.16);
}

/* Mobile toggle en sidebar blijft zoals jij al had, maar zonder 4 varianten */
.mobile-menu-toggle{ display:none; }
.menu-overlay{ display:none; }

@media (max-width: 768px){

  .mobile-menu-toggle{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10001;
  }

  .mobile-menu-toggle span{
    width: 100%;
    height: 3px;
    background: rgba(234, 242, 255, 0.95);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active span:nth-child(1){ transform: rotate(45deg) translate(7px, 7px); }
  .mobile-menu-toggle.active span:nth-child(2){ opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3){ transform: rotate(-45deg) translate(7px, -7px); }

  .menu-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    opacity: 0;
    transition: opacity .3s ease;
  }
  .menu-overlay.active{ display:block; opacity:1; }

  .tz-nav{
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #0c1a34;
    border-right: 1px solid rgba(120, 180, 255, 0.3);
    box-shadow: 4px 0 24px rgba(0,0,0,0.8);
    padding: 80px 20px 20px;
    overflow-y: auto;
    transition: left .4s ease;
    z-index: 10002;
    margin-left: 0;
  }
  .tz-nav.active{ left: 0; }

  .tz-nav > ul.mod-menu{
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  .tz-nav a{
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
  }

  body.menu-open{ overflow: hidden; }
}
