/* ─────────────────────────────────────────────
   SITE HEADER  (replaces sidebar)
───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ─── LEFT: Nav links ─── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  padding: 7px 13px;
  border-radius: 7px;
  color: var(--text-md);
  font-size: 13px; font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.15s;
  display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  letter-spacing: 0;
}

.nav-item:hover { color: var(--text-hi); }

.nav-item.active {
  color: var(--text-hi);
  font-weight: 600;
  border-bottom: 2px solid var(--text-hi);
  border-radius: 0;
  padding-bottom: 6px;
}

/* Hide emoji icons in top nav */
.nav-icon { display: none; }

/* ─── CENTER: Logo ─── */
.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.header-logo:hover { transform: translateX(-50%) scale(1.06); }

/* ─── RIGHT: Social links ─── */
.header-right {
  display: flex; align-items: center; gap: 8px;
}

.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-md);
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid var(--border);
}

.social-link:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* ─── MOBILE HAMBURGER ─── */
.hamburger {
  display: none;
  position: fixed; top: 16px; right: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 4px; z-index: 200;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-hi); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

body.sidebar-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
body.sidebar-open .hamburger span:nth-child(2) { opacity: 0; }
body.sidebar-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ─── MOBILE NAV DROPDOWN ─── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .site-header { padding: 0 20px; }
  .header-nav { display: none; }
  .header-right { display: none; }
  .header-logo { position: relative; left: auto; transform: none; }

  body.sidebar-open .header-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    z-index: 99;
    gap: 0;
  }
  body.sidebar-open .nav-item { padding: 10px 12px; width: 100%; border-bottom: none; border-radius: 8px; }
  body.sidebar-open .nav-item.active { border-bottom: none; font-weight: 600; background: var(--bg-hover); border-radius: 8px; padding-bottom: 10px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .site-header { padding: 0 28px; }
  .nav-item { padding: 7px 9px; font-size: 12px; }
}
