/* hub-nav.css — Game Dev AI Guide · Shared Navigation Styles
   One file to update when nav visuals change. Push once, all tools update.
   Load order: this file before nav-component.js                           */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@700&f[]=satoshi@400,500&display=swap');

.hub-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(17,17,16,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #2e2d2b;
  padding: 0.75rem 0;
  font-family: 'Satoshi', 'Inter', sans-serif;
}

.hub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex-wrap: nowrap;
}

.hub-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #d4d0c8;
  flex-shrink: 0;
}
.hub-nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.hub-nav-logo-text {
  font-family: 'Cabinet Grotesk', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hub-nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.hub-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hub-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  font-weight: 500;
  color: #8a8680;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}
.hub-nav-links a:hover  { color: #d4d0c8; background: #222120; }
.hub-nav-links a.active { color: #d4943c; background: rgba(212,148,60,0.08); }

.hub-nav-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mobile toggle */
.hub-nav-mobile-toggle {
  display: none;
  padding: 0.5rem;
  color: #8a8680;
  cursor: pointer;
  background: none;
  border: none;
}

/* Responsive */
@media (max-width: 900px) {
  /* section bar handles in-page nav on tablet */
}

@media (max-width: 640px) {
  .hub-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #1a1918;
    border-bottom: 1px solid #3a3836;
    padding: 0.5rem;
    gap: 0.25rem;
  }
  .hub-nav-links.open { display: flex; }
  .hub-nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0;
  }
  .hub-nav-mobile-toggle { display: flex; align-items: center; }
}
