/* _header.css */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 110;
  transition: all var(--transition-norm);
  padding: 24px 0;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border-subtle);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  gap: 20px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.logo-un {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-jobs {
  background: linear-gradient(135deg, var(--accent-primary), #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* Icon Buttons (profile, messages) */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  color: #FFFFFF;
}

/* Header message badge */
.header-msg-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Center Pill Nav */
.header-center-nav {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-center-nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header-center-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Header Actions */
.header-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Burger Button */
.burger-btn {
  color: #FFFFFF;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.burger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.burger-btn svg {
  width: 24px;
  height: 24px;
  color: #FFFFFF;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  padding: 100px 32px 40px;
  z-index: 99;
  animation: menuFadeIn 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-nav-link {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
  display: block;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(8px);
}

.profile-menu {
  position: absolute;
  right: 18px;
  top: 64px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
  min-width: 200px;
}

.profile-menu a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-danger);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.nav-hidden-compat {
  display: none !important;
}

.main-nav-horizontal ul {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav-horizontal ul li a {
  color: var(--text-primary);
  font-weight: 500;
  transition: opacity 0.2s;
}

.main-nav-horizontal ul li a:hover {
  opacity: 0.7;
}

#mainNavRight {
  display: flex;
  justify-content: flex-end;
}
