/* ══════════════════════════════════════════════════════════
   Shared header + side menu styles
   Include via: <link rel="stylesheet" href="/components/header.css">
   ══════════════════════════════════════════════════════════ */

.header {
  position: sticky; top: 0; left: 0; right: 0; height: 64px;
  z-index: 200; background: #fff; box-shadow: 0 1px 0 #eee;
}
.header-inner {
  height: 64px; display: flex; align-items: center; padding: 0 8px 0 4px;
}
.header-left  { display: flex; align-items: center; gap: 6px; flex: 1; }
.header-center {
  display: flex; align-items: center; gap: 6px;
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
}
.header-right { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; }

.icon-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer; border-radius: 8px; flex-shrink: 0;
  color: #1a1a1a; padding: 0;
}
.icon-btn:hover { background: #f5f5f5; }

.avatar-wrap {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #f97316);
  flex-shrink: 0; position: relative; overflow: hidden; margin-left: 4px;
}
.avatar-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* ── Side menu ── */
.side-menu-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.side-menu-overlay.open { opacity: 1; pointer-events: all; }

.side-menu {
  position: fixed; top: 64px; left: 0; bottom: 0;
  width: 256px; z-index: 195;
  background: #fff; border-right: 1px solid #eee;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
}
.side-menu.open { transform: translateX(0); }
.side-menu-top { padding: 12px 12px 8px; border-bottom: 1px solid #f0f0f0; }
.side-menu-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.side-menu-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500; color: #1a1a1a;
  text-decoration: none; text-align: left;
  transition: background 0.13s;
}
.side-menu-btn:hover { background: #f5f5f5; }
.side-menu-btn .bi { font-size: 17px; color: #888; flex-shrink: 0; }
.side-menu-bottom { padding: 12px; border-top: 1px solid #f0f0f0; }

.side-profile-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: #fafafa; border: 1px solid #eee;
}
.side-profile-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #F5A623, #f97316);
  position: relative; overflow: hidden;
}
.side-profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-profile-name { font-size: 13px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-login-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 10px; border-radius: 10px;
  border: 1.5px solid #eee; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #1a1a1a;
  text-decoration: none; transition: background 0.13s, border-color 0.13s;
}
.side-login-btn:hover { background: #fafafa; border-color: #ddd; }
