
/* aca-explorer-navbar.css */
/* Navbar CSS */
.nav-container {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem;
}
/* Desktop layout with centered content */
.nav-content {
  display: grid;
  grid-template-areas:
    "title title title"
    "lang nav controls";
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.nav-title {
  grid-area: title;
  font-size: 1.50rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
}
.nav-title span {
  color: var(--primary);
}
/* Language switcher */
/* New nav-actions container to group home button and language switcher */
.nav-actions {
  grid-area: lang; /* Use the same grid area as language-switch had */
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}

/* Home button styling */
.home-button {
  background: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.home-button:hover {
  background: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Remove grid-area from language-switch since it's now inside nav-actions */
.language-switch {
  background: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.nav-button {
  display: none;
}
.nav-select {
  position: relative;
  min-width: 250px;
}
.nav-current {
  padding: 0.5rem 1rem;
  background: var(--background);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 320px;
  margin-top: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1001;
}
.nav-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: normal;
  overflow: visible;
  text-overflow: ellipsis;
}
.nav-item:hover {
  background: var(--background);
}
.nav-item.current {
  background: var(--primary);
  color: white;
}
