/* Cobblebase Global Navbar */
.cb-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0d1117;
  border-bottom: 1px solid #2a2520;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cb-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.cb-navbar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.cb-navbar-brand span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #f0f6fc;
}

.cb-navbar-brand:hover span {
  color: #f7c948;
}

.cb-navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
  list-style: none;
}

.cb-navbar-links a {
  color: #8b949e;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.cb-navbar-links a:hover {
  color: #c9d1d9;
  background: #161b22;
  text-decoration: none;
}

.cb-navbar-links a.active {
  color: #f7c948;
  background: #1c2128;
}

.cb-navbar-links a.cb-external {
  color: #6e7681;
}

.cb-navbar-links a.cb-external:hover {
  color: #8b949e;
  background: #161b22;
}

.cb-navbar-spacer {
  flex: 1;
}

.cb-navbar-hamburger {
  display: none;
  background: none;
  border: none;
  color: #c9d1d9;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  line-height: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .cb-navbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 0 16px;
  }

  .cb-navbar-brand {
    padding: 14px 0;
  }

  .cb-navbar-hamburger {
    display: block;
  }

  .cb-navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    padding: 0 0 12px;
    gap: 2px;
    border-top: 1px solid #30363d;
  }

  .cb-navbar-links.open {
    display: flex;
  }

  .cb-navbar-links a {
    padding: 10px 12px;
    width: 100%;
  }
}
