/* FIXED TOPBAR */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
  backdrop-filter: blur(16px);
  background: var(--topbar-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* CONTAINER */
.topbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  gap: 6px;
}

.brand-my {
  color: var(--brand-my);
}

.brand-career {
  color: var(--brand-career);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--nav-link);
  font-size: 0.97rem;
  transition: 0.2s;
}

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

/* RIGHT ACTIONS */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------------------------
   THEME BUTTON (FULL FIX)
---------------------------- */
.theme-toggle-btn {
  background: none !important;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--theme-icon);
  cursor: pointer;
  user-select: none;
}

/* LOGIN BUTTON */
.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--login-bg);
  color: #ffffff;
  border: 1px solid var(--login-border);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.login-btn:hover {
  border-color: #ffffff;
}

.login-icon {
  width: 18px;
  height: 18px;
}

/* MOBILE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 22px;
  height: 3px;
  background: white;
  display: block;
  border-radius: 3px;
  position: relative;
}

.hamburger::before {
  content: "";
  position: absolute;
  top: -6px;
}

.hamburger::after {
  content: "";
  position: absolute;
  top: 6px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: #0f172a;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.show {
    display: flex;
  }
}

/* SPA navigation clickable */
[data-route] {
    cursor: pointer;
}

.brand {
    cursor: pointer;
}
/* ===============================
   BRAND TEXT THEME SAFETY FIX
   =============================== */

