/* ==========================================================================
   Header Component Styles with Live WebSocket Indicator
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 300ms var(--ease);
}
.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 6px;
  margin-left: -6px;
  border-radius: var(--radius-sm);
  transition: transform 200ms var(--ease-spring), opacity 200ms var(--ease);
}
.logo:hover {
  transform: translateY(-1px) scale(1.02);
}
.logo:active {
  transform: scale(0.97);
}

.logo__drift {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange) 0%, #FF7A2E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -2px rgba(255, 91, 0, 0.35);
  transition: transform 300ms var(--ease-spring), box-shadow 300ms var(--ease);
}
.logo:hover .logo__mark {
  transform: rotate(6deg) scale(1.06);
  box-shadow: 0 6px 20px -2px rgba(255, 91, 0, 0.5);
}
.logo__mark--img {
  background: none;
  box-shadow: none;
  padding: 0;
}
.logo__mark--img img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px -2px rgba(255, 91, 0, 0.3);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__word {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo__sub {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-top: 2px;
}

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

/* Global WebSocket Live Presence Badge */
.live-users-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  letter-spacing: 0.02em;
  transition: all 200ms var(--ease);
}
.live-users-pill.is-offline {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #DC2626;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLive 2s infinite;
}
.is-offline .live-pulse-dot {
  background: #EF4444;
  box-shadow: none;
  animation: none;
}
@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--nav-bg);
  padding: 5px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.nav-link {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all 220ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--nav-hover-bg);
}
.nav-link.is-active {
  color: var(--nav-active-ink);
  background: var(--nav-active-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.nav-link__badge {
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255, 91, 0, 0.4);
}
.nav-link--admin {
  background: rgba(255, 91, 0, 0.08);
  color: var(--orange-dark);
}
.nav-link--admin:hover {
  background: rgba(255, 91, 0, 0.15);
  color: var(--orange-dark);
}
.nav-link--admin.is-active {
  background: var(--orange);
  color: #fff;
}
