/* Navbar styles extracted from styles.css */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(11, 13, 16, 0.6);
  border-bottom: 1px solid var(--border);
}

.grid-3 {
  display: grid;
  grid-template-columns: auto 1fr auto; /* brand auto | nav flex | actions auto */
  align-items: center;
  gap: 60px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.brand-wordmark {
  height: 20px;
  width: auto;
  display: block;
}

.logo-icon {
  color: var(--primary);
  font-size: 26px;
}

.logo-text {
  font-size: 18px;
}

.nav {
  display: flex;
  justify-content: flex-start; /* align links to the left */
  align-items: center; /* vertically center items */
  gap: 20px;
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px; /* match navbar button */
  padding: 0 14px; /* match navbar button */
  border-radius: 10px;
  background: linear-gradient(180deg, #1e2228, #0b0d10); /* match .btn.primary */
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text);
  font-weight: 700; /* match .btn text weight */
  font-family: var(--font-family);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px -14px rgba(0, 0, 0, 0.9);
}
.dropdown-toggle:hover {
  background: linear-gradient(180deg, #222730, #0e1115); /* match .btn.primary:hover */
}
.dropdown-toggle:active {
  background: linear-gradient(180deg, #1b1f25, #0a0c0f); /* match .btn.primary:active */
}
.dropdown .caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 16px 36px -24px var(--ring);
  display: none;
  z-index: 100;
}
.dropdown[aria-expanded="true"] .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-item {
  display: block;            /* stack vertically */
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;     /* remove underline */
}
.dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  text-decoration: none;     /* keep clean on hover */
}

/* Ensure CTA button typography matches the dropdown toggle */
.dropdown-toggle,
.nav .btn,
.actions .btn,
.nav-link {
  font-size: 1rem;        /* unify size */
  font-weight: 700;       /* unify weight */
  letter-spacing: 0.2px;  /* unify spacing */
  line-height: 1;         /* unify line-height */
  font-family: var(--font-family); /* force same font face (fixes UA defaults on <button>) */
}

.nav-link {
  display: inline-flex;            /* align text vertically */
  align-items: center;             /* center within link */
  height: 40px;                    /* match button/dropdown height */
  padding: 0 6px;                  /* small horizontal pad */
  color: var(--muted);
  text-decoration: none;
  /* font-size/weight unified above */
}

.nav-link:hover {
  color: var(--text);
}

.actions {
  display: flex;
  justify-content: end;
  gap: 12px; /* space between buttons */
}

/* Responsive rules for navbar */
@media (max-width: 720px) {
  .grid-3 {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 0 4px;
  }
  .nav {
    gap: 12px;
  }
  .logo-text {
    display: none;
  }
}
