/* ========================================
   헤더 공통 컴포넌트 (public/css/components/header.css)
   - 모든 페이지의 헤더에서 사용
   ======================================== */

/* 헤더 기본 레이아웃 */
.page-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-light);
}

/* 헤더 타이틀 */
.header-title {
  font-size: var(--font-xlarge);
  font-weight: 700;
  color: var(--gray-dark);
  text-align: center;
}

/* 뒤로가기 버튼 */
.btn-back {
  position: absolute;
  left: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--gray-dark);
  transition: color 0.3s;
}

.btn-back:hover {
  color: var(--primary-color);
}

.icon-back {
  font-size: 28px;
  line-height: 1;
}

/* 프로필 메뉴 영역 */
.profile-menu {
  position: absolute;
  right: 20px;
}

/* 프로필 버튼 */
.profile-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

/* 프로필 이미지 placeholder (동그라미) */
.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--gray-light);
  border: 2px solid var(--gray-light);
  transition: border-color 0.3s;
}

.profile-button:hover .profile-placeholder {
  border-color: var(--primary-color);
}

/* 실제 프로필 이미지 (JS로 추가될 때) */
.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-light);
  transition: border-color 0.3s;
    pointer-events: none; /* 이미지 클릭 방지 */
  user-select: none; /* 이미지 드래그 방지 */
  -webkit-user-drag: none; /* Safari용 드래그 방지 */
}

.profile-button:hover .profile-image {
  border-color: var(--primary-color);
}