/* ════════════════════════════════════════════════════
   HEADER  —  css/header.css
════════════════════════════════════════════════════ */

.app-header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

/* ── Logo ─────────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo__icon {
  width: 32px;
  height: 32px;
  background: var(--brand-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.header-logo__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--brand-orange);
  letter-spacing: -0.01em;
}

/* ── Divider ──────────────────────────── */
.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Company / Project selectors ──────── */
.header-context {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-context__label {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-weight: var(--weight-medium);
}

.header-project-select {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.header-project-select:hover {
  background: var(--surface-raised);
  border-color: var(--brand-orange-dim);
}

.header-project-select__caret {
  color: var(--ink-faint);
  font-size: 10px;
}

/* ── Spacer ───────────────────────────── */
.header-spacer { flex: 1; }

/* ── Right actions ────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 18px;
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.header-icon-btn:hover {
  background: var(--surface-raised);
  color: var(--ink);
}

.header-icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  border: 2px solid var(--surface-card);
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.header-avatar:hover {
  border-color: var(--brand-orange);
}
