@charset "UTF-8";
/* /theme/henallte/design/css/golfstar-header.css
 *
 * GOLFSTAR — HEADER DESIGN SYSTEM v4
 *
 * 이전: _header.main.php 안 <style> 인라인
 * 이전 → 외부 파일 분리 (PR 1 / 2026-05-05)
 *
 * ★ 다크모드 분기 규칙
 *   - 모든 색상은 var(--gs-*) 토큰으로
 *   - 토큰이 부족한 곳(rgba 직접 색상)은 html[data-theme="dark"] 분기 명시
 *   - 토큰 정의 자체는 golfstar-theme.css 가 담당 (이 파일은 사용만)
 *
 * ★ 로드 순서
 *   golfstar-theme.css → core → ui → components → [이 파일] → chat-layer
 *
 * ★ 헤더 전용 로컬 토큰
 *   --gs-max / --gs-header-h / --gs-subbar-h / --gs-r-*
 *   theme.css 에 없는 헤더 전용 값. 다른 파일에서 같은 이름 재정의 금지.
 */


/* ══════════════════════════════════════════
   1. 헤더 전용 로컬 토큰
   theme.css 에 없는 값만 정의
══════════════════════════════════════════ */
:root {
    --gs-max:       1440px;   /* 컨테이너 최대 폭 */
    --gs-header-h:  60px;     /* 메인 헤더 높이 */
    --gs-subbar-h:  48px;     /* 서브바 높이 */

    --gs-r-xl:  20px;
    --gs-r-lg:  14px;
    --gs-r-md:  10px;
    --gs-r-sm:  7px;
}


/* ══════════════════════════════════════════
   2. RESET 보강
   theme.css 의 reset(box-sizing 만) 위에
   추가 reset 을 얹는다.
══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; }

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
}

/* body.app.golfstar 의 폰트 스택은 theme.css 의 body{ font-family } 보다
   specificity 가 높아 우선 적용된다. 영문 시스템 폰트 우선 정책. */
body.app.golfstar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }


/* ══════════════════════════════════════════
   3. PAGE LOAD BAR
   페이지 상단 로딩 진행 바
══════════════════════════════════════════ */
#page-load-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: transparent;
    z-index: 99999;
    overflow: hidden;
    pointer-events: none;
}
#page-load-progress .plp-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gs-green) 0%, #34d399 100%);
    transition: width .22s ease-out;
}
#page-load-progress.plp-done {
    animation: plp-fadeout .4s ease-out .25s forwards;
}
@keyframes plp-fadeout {
    to { opacity: 0; visibility: hidden; }
}


/* ══════════════════════════════════════════
   4. HEADER SHELL
══════════════════════════════════════════ */
.gs-header-shell {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gs-border);
    box-shadow: var(--gs-shadow-sm);
    transition: box-shadow .2s ease, background .2s ease;
    will-change: transform;
}
html[data-theme="dark"] .gs-header-shell {
    background: rgba(22, 27, 34, .92);
}

.gs-header-shell.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
}
html[data-theme="dark"] .gs-header-shell.is-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

.gs-header-inner {
    max-width: var(--gs-max);
    height: var(--gs-header-h);
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}


/* ══════════════════════════════════════════
   5. BRAND
══════════════════════════════════════════ */
.gs-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.gs-brand-logo-box {
    width: 36px; height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gs-border);
    background: var(--gs-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gs-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gs-brand-link:hover .gs-brand-logo-box {
    transform: translateY(-1px);
    box-shadow: var(--gs-shadow);
}
.gs-brand-logo-box img {
    width: 28px; height: 28px;
    object-fit: contain;
}

.gs-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.gs-brand-kicker {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--gs-green);
    text-transform: uppercase;
    line-height: 1;
}

.gs-brand-name {
    font-size: 16px;
    font-weight: 900;
    color: var(--gs-text);
    letter-spacing: -.03em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.gs-brand-desc {
    font-size: 11px;
    color: var(--gs-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    line-height: 1.2;
}


/* ══════════════════════════════════════════
   6. RIGHT ACTIONS
══════════════════════════════════════════ */
.gs-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 회원 상태 pill */
.gs-status-pill {
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 100px;
    border: 1px solid var(--gs-green-line);
    background: var(--gs-green-l);
    color: var(--gs-green-d);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
html[data-theme="dark"] .gs-status-pill {
    color: var(--gs-green);
}

.gs-status-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gs-green);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(24, 160, 88, .15);
    animation: gs-livepulse 2.4s infinite;
}
html[data-theme="dark"] .gs-status-pill::before {
    box-shadow: 0 0 0 3px rgba(34, 192, 105, .18);
}

@keyframes gs-livepulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(24, 160, 88, .15); }
    50%      { box-shadow: 0 0 0 6px rgba(24, 160, 88, .04); }
}

/* 아이콘 버튼 공통 */
.gs-icon-btn {
    width: 38px; height: 38px;
    border-radius: var(--gs-r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gs-border);
    background: var(--gs-surface);
    color: var(--gs-text-2);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease,
                border-color .18s ease, color .18s ease, background .18s ease;
    text-decoration: none;
    flex-shrink: 0;
}
.gs-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--gs-shadow);
    border-color: var(--gs-green-line);
    color: var(--gs-green);
}
.gs-icon-btn.is-active {
    border-color: var(--gs-green-line);
    background: var(--gs-green-l);
    color: var(--gs-green-d);
}
html[data-theme="dark"] .gs-icon-btn.is-active {
    color: var(--gs-green);
}
.gs-icon-btn svg {
    width: 18px; height: 18px;
    display: block;
}

/* 햄버거 (모바일 전용) */
.gs-hamburger {
    display: none;
    width: 38px; height: 38px;
    border-radius: var(--gs-r-md);
    border: 1px solid var(--gs-border);
    background: var(--gs-surface);
    color: var(--gs-text-2);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: .18s ease;
    flex-shrink: 0;
}
.gs-hamburger:hover {
    border-color: var(--gs-green-line);
    color: var(--gs-green);
    box-shadow: var(--gs-shadow-sm);
}
.gs-hamburger__line {
    display: block;
    width: 17px; height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .24s ease, opacity .2s ease, width .2s ease;
    transform-origin: center;
}
.gs-hamburger.is-open .gs-hamburger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.gs-hamburger.is-open .gs-hamburger__line:nth-child(2) { opacity: 0; width: 0; }
.gs-hamburger.is-open .gs-hamburger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ══════════════════════════════════════════
   7. SUBBAR
══════════════════════════════════════════ */
.gs-subbar {
    border-top: 1px solid var(--gs-border);
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
html[data-theme="dark"] .gs-subbar {
    background: rgba(22, 27, 34, .5);
}

.gs-subbar-inner {
    max-width: var(--gs-max);
    height: var(--gs-subbar-h);
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-title-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
}
.app-title-eyebrow {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--gs-text-3);
    text-transform: uppercase;
    line-height: 1;
}
.app-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--gs-text);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    margin: 0;
}

/* 데스크톱 NAV */
.gs-desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gs-nav-link {
    height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--gs-r-lg);
    border: 1px solid transparent;
    background: transparent;
    color: var(--gs-text-2);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease,
                color .18s ease, box-shadow .18s ease, transform .18s ease;
    text-decoration: none;
}
.gs-nav-link:hover {
    background: var(--gs-surface-2);
    border-color: var(--gs-border);
    color: var(--gs-text);
    transform: translateY(-1px);
    box-shadow: var(--gs-shadow-sm);
}
.gs-nav-link.is-active {
    background: var(--gs-green-l);
    border-color: var(--gs-green-line);
    color: var(--gs-green-d);
    font-weight: 800;
}
html[data-theme="dark"] .gs-nav-link.is-active {
    color: var(--gs-green);
}


/* ══════════════════════════════════════════
   8. MOBILE DRAWER
══════════════════════════════════════════ */
.gs-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1299;
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s ease, visibility .26s ease;
}
.gs-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.gs-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    background: var(--gs-surface);
    z-index: 1300;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.32, 1, .28, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 40px rgba(0, 0, 0, .18);
    border-left: 1px solid var(--gs-border);
}
html[data-theme="dark"] .gs-drawer {
    box-shadow: -8px 0 40px rgba(0, 0, 0, .55);
}

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

.gs-drawer__head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--gs-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    background: var(--gs-surface);
}

.gs-drawer__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.gs-drawer__logo {
    width: 32px; height: 32px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--gs-border);
    background: var(--gs-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gs-drawer__logo img {
    width: 24px; height: 24px;
    object-fit: contain;
}
.gs-drawer__title {
    font-size: 15px;
    font-weight: 900;
    color: var(--gs-text);
    letter-spacing: -.03em;
}

.gs-drawer__close {
    width: 34px; height: 34px;
    border-radius: var(--gs-r-sm);
    border: 1px solid var(--gs-border);
    background: transparent;
    color: var(--gs-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: .18s ease;
    flex-shrink: 0;
}
.gs-drawer__close:hover {
    border-color: var(--gs-green-line);
    color: var(--gs-green);
    background: var(--gs-green-l);
}

.gs-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    -webkit-overflow-scrolling: touch;
}

.gs-drawer__section-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gs-text-3);
    padding: 4px 8px 8px;
}

.gs-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gs-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: var(--gs-r-md);
    border: 1px solid transparent;
    color: var(--gs-text-2);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .18s ease;
    position: relative;
}
.gs-drawer__link:hover {
    background: var(--gs-surface-2);
    border-color: var(--gs-border);
    color: var(--gs-text);
}
.gs-drawer__link.is-active {
    background: var(--gs-green-l);
    border-color: var(--gs-green-line);
    color: var(--gs-green-d);
}
html[data-theme="dark"] .gs-drawer__link.is-active {
    color: var(--gs-green);
}

.gs-drawer__link-icon {
    width: 34px; height: 34px;
    border-radius: var(--gs-r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gs-surface-2);
    border: 1px solid var(--gs-border);
    flex-shrink: 0;
    font-size: 15px;
    transition: .18s ease;
}
.gs-drawer__link.is-active .gs-drawer__link-icon {
    background: rgba(24, 160, 88, .12);
    border-color: var(--gs-green-line);
}
html[data-theme="dark"] .gs-drawer__link.is-active .gs-drawer__link-icon {
    background: rgba(34, 192, 105, .14);
}

.gs-drawer__link-text { flex: 1; }

.gs-drawer__divider {
    height: 1px;
    background: var(--gs-border);
    margin: 10px 0;
}

.gs-drawer__foot {
    padding: 14px 12px;
    border-top: 1px solid var(--gs-border);
    flex-shrink: 0;
}

.gs-drawer__me-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 13px;
    border-radius: var(--gs-r-md);
    border: 1.5px solid var(--gs-green-line);
    background: var(--gs-green-l);
    color: var(--gs-green-d);
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: .18s ease;
}
.gs-drawer__me-btn:hover {
    box-shadow: var(--gs-shadow-sm);
    transform: translateY(-1px);
}
.gs-drawer__me-btn i {
    font-size: 15px;
    color: var(--gs-green);
}
html[data-theme="dark"] .gs-drawer__me-btn {
    color: var(--gs-green);
}


/* ══════════════════════════════════════════
   9. MAIN CONTAINER
   .container 와 함께 쓰는 헤더/메인 컨테이너 폭 제한
══════════════════════════════════════════ */
.container.gs-main-container {
    max-width: var(--gs-max);
    margin: 0 auto;
    padding: 18px 14px 28px;
}


/* ══════════════════════════════════════════
   10. RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1023px) {
    .gs-desktop-nav { display: none; }
    .gs-hamburger   { display: inline-flex; }
    .gs-status-pill { display: none; }
}

@media (max-width: 760px) {
    .gs-header-inner            { padding: 0 12px; }
    .gs-subbar-inner            { padding: 0 12px; height: 44px; }
    .gs-brand-desc              { display: none; }
    .gs-brand-name              { font-size: 15px; max-width: 150px; }
    .app-title                  { font-size: 17px; }
    .container.gs-main-container { padding: 14px 10px 24px; }
}

@media (max-width: 420px) {
    .gs-brand-kicker { display: none; }
    .gs-brand-name   { font-size: 14px; }
}
