/* resources/initializr/css/ixp_navbar.css */

/* 1) @font-face declarations for your DIN Neuzeit files */
/* resources/initializr/css/ixp_navbar.css */

/* 1) @font-face declarations for your DIN Neuzeit files */
@font-face {
  font-family: "DINNeuzeitLight";
  src: url("/fonts/DINNeuzeitGroteskStdLight.otf") format("opentype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DINNeuzeitBoldCond";
  src: url("/fonts/DINNeuzeitGroteskStdBdCond.otf") format("opentype");
  font-style: normal;
  font-display: swap;
}

/* 2) Navbar container itself */
.ixp-navbar {
  /* Dimensions */
  width: 980px;
  height: 27px;
  margin-top: 6px !important;

  /* Background & borders */
  background-color: rgb(255, 255, 255);
  background-attachment: scroll;
  background-clip: border-box;
  background-image: none;
  background-origin: padding-box;
  background-position: 0% 0%;
  background-repeat: repeat;
  background-size: auto;
  border-top:    0px solid rgb(0, 0, 0);
  border-right:  0px solid rgb(0, 0, 0);
  border-bottom: 0px solid rgb(0, 0, 0);
  border-left:   0px solid rgb(0, 0, 0);

  /* Box shadow */
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.7);

  /* Font & text (inherited by children) */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  text-wrap-mode: nowrap;
  unicode-bidi: isolate;
  white-space-collapse: collapse;
  -webkit-font-smoothing: antialiased;

  /* Layout & positioning */
  position: relative;
  display: block;
  overflow-x: visible;
  overflow-y: visible;
  margin: 0 auto;   /* center horizontally */
  padding: 0;

  /* Font & text (inherited by children) */
  font-size: 10px;  
  font-family: Arial, Helvetica, sans-serif;
  text-wrap-mode: nowrap;
  unicode-bidi: isolate;
  white-space-collapse: collapse;
  -webkit-font-smoothing: antialiased;

  /* Misc */
  outline: none;
  pointer-events: auto;
  visibility: visible;
  vertical-align: baseline;
}

/* 3) Main <ul> inside the navbar */
.ixp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;               /* center items horizontally */
  justify-content: center;
  align-items: center;
  gap: 24px;
  height: 100%;                /* fill the 47px height */
}

/* 4) Each top-level <li> (menu item) = 171px × 46px */
.ixp-menu-item {
  position: relative;
  width: 171px;                /* computed width */
  height: 46px;                /* computed height */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: visible;
}

/* 5) Base styling for every <a> inside .ixp-menu-item */
.ixp-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;                 /* fill the parent <li> */
  height: 100%;
  font-family: "DINNeuzeitBoldCond", sans-serif; /* use condensed bold */
  font-size: 16px;             /* match computed */
  color: #000000;              /* rgb(85, 26, 139) */
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
  border: none;
  outline: none;
  white-space: nowrap;
}

/* 6) Hover/focus state for normal (unselected) tabs */
.ixp-menu-link:hover,
.ixp-menu-link:focus {
  color: #ffe80c;
  background-color: #74a0cc !important; /* ensures no “box” appears */
}

/* 7) Active/selected tab (EXACT computed values) */
.ixp-menu-link.active {
  font-family: "DINNeuzeitBoldCond", sans-serif;
  font-size: 16px;
  background-color: #1E68CB;            /* rgb(30, 104, 203) */
  color: #dbdbdb !important;                       /* rgb(85, 26, 139) */
  box-shadow: 2px 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* 8) Hide the dropdown arrow for items that have submenus */
.has-dropdown > .ixp-menu-link::after {
  content: none;
}

/* 9) Submenu container (hidden by default) */
.ixp-submenu {
  display: none;
  position: absolute;
  top: 46px;                  /* just below the 46px parent <li> */
  left: 0;
  background-color: #ffffff;
  list-style: none;
  margin: 0;
  padding: 4px 0;             /* small vertical padding above items */
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 171px;           /* same width as parent */
}

/* 10) Submenu <a> links */
.ixp-submenu-link {
  display: block;
  font-family: "DINNeuzeitBoldCond", sans-serif;
  font-size: 16px;
  padding: 10px 16px;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

/* 11) Submenu hover/focus */
.ixp-submenu-link:hover,
.ixp-submenu-link:focus {
  background-color: #f0f0f0;
}

/* 12) Divider between submenu items */
.ixp-submenu-link:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}

/* 13) Show submenu on hover (desktop) */
.has-dropdown:hover > .ixp-submenu,
.has-dropdown:focus-within > .ixp-submenu {
  display: block;
}

/* 14) Responsive/mobile: stack items vertically */
@media (max-width: 768px) {
  .ixp-menu {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .ixp-menu-item {
    width: 100%;
  }
  .ixp-submenu {
    position: static;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: auto;
  }
  .has-dropdown > .ixp-menu-link::after {
    transform: rotate(-90deg);
  }
}
