/* ===== Common header ===== */

#common-header {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  z-index: 100;
  transition: margin-top 0.25s ease;
}


#common-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 42px;
}

#common-header h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ch-hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s;
}

.ch-hamburger:hover {
  background: rgba(255,255,255,0.15);
}

/* Overlay */
.ch-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}

.ch-overlay.visible {
  display: block;
}

/* Drawer */
.ch-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background: var(--color-surface);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ch-drawer.open {
  transform: translateX(0);
}

.ch-drawer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-primary);
  color: #fff;
}

.ch-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.ch-user-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  line-height: 1;
}

.ch-drawer-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.ch-drawer-body {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ch-setting-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ch-setting-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ch-lang-select {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.ch-signout-btn {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
}

.ch-signout-btn:hover {
  background: var(--color-primary-light);
}
