/* Yobose 1.5 / 4a public-web layer. Scoped away from admin, host and Live. */
/* 'Pretendard' is served from css/pretendard-black-subset.css (800–900) and
   css/pretendard-text-subset.css (400–700), so every weight resolves to a real face. */

body.redesign-15 {
    --primary: #111111;
    --primary-rgb: 17, 17, 17;
    --primary-color: #111111;
    --primary-dark: #111111;
    --primary-hover: #2a2a2a;
    --primary-soft: #f5f5f3;
    --primary-gradient: #111111;
    --primary-gradient-hover: #2a2a2a;
    --secondary: #f5f5f3;
    --accent: #1e8a5e;
    --accent-soft: #e8f4ee;
    --success: #1e8a5e;
    --warning: #d08a1e;
    --bg: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f3;
    --bg-tertiary: #f0f0ee;
    --card-bg: #ffffff;
    --card-bg-hover: #f5f5f3;
    --text: #111111;
    --text-primary: #111111;
    --text-secondary: #6f6f6f;
    --text-light: #6f6f6f;
    /* WCAG aa: #a3a3a3 는 흰 배경 2.52:1 / #f5f5f3 2.31:1 로 미달이었다.
       #6b6b6b = 흰 5.33:1 / #f5f5f3 4.88:1 / #f0f0ee 4.67:1. */
    --text-muted: #6b6b6b;
    --border: #ececea;
    --border-color: #ececea;
    --border-light: #f0f0ee;
    --chip-bg: #f5f5f3;
    --chip-ink: #111111;
    --shadow: 0 2px 12px rgba(0, 0, 0, .04);
    --shadow-md: 0 2px 12px rgba(0, 0, 0, .04);
    font-family: var(--c4a-font-text);
    color: #111111;
}

/* 제목·강조 태그는 body 의 var(--c4a-font-text)(Pretendard 400–700)를 상속한다.
   800 이상 제목은 각 규칙이 var(--c4a-font) 를 직접 지정한다. */
.redesign-15 :where(h1, h2, h3, strong, b) {
    letter-spacing: -.025em;
}

.redesign-15 :where(button, input, select, textarea) {
    font: inherit;
}

.redesign-15 :where(a, button, input, select, textarea, [role='button']):focus-visible {
    outline-color: #1e8a5e;
}

/* ── 4a 앱바 · 하단 내비 (design_handoff_web_app_4a README "홈") ─────────────
 * 헤더/내비 마크업은 host·live 를 포함한 모든 공개 페이지가 공유하므로 시각 규칙은
 * :root 토큰(아래 4a 토큰 절)으로 스코프 없이 둔다. 내비 높이 68px 와 그에 맞춘
 * 고정 요소 오프셋만 .redesign-15 로 묶는다 — host·live 는 style.css 의 56px
 * 기준 오프셋을 그대로 쓴다. */
.header {
    min-height: 52px;
    background: var(--c4a-surface);
    border-bottom: 1px solid var(--c4a-line);
    box-shadow: none;
}

@media (max-width: 767px) {
    .header {
        padding: 0 8px 0 20px;
    }
}

.header-logo img {
    height: 30px;
    max-height: 30px;
    width: auto;
    border-radius: 8px;
}

.header-right {
    gap: 4px;
}

.header-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 99px;
    color: var(--c4a-ink);
    text-decoration: none;
}

.header-icon-btn.active {
    background: var(--c4a-surface-alt);
}

/* 비로그인 언어 선택: language 아이콘 위에 네이티브 select 를 투명하게 덮어
   탭하면 OS 선택기가 열린다(키보드·스크린리더는 select 를 그대로 쓴다). */
.lang-switcher.header-icon-btn select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    opacity: 0;
    cursor: pointer;
}

.lang-switcher.header-icon-btn:focus-within {
    outline: 2px solid var(--c4a-green);
    outline-offset: 2px;
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 99px;
    background: var(--c4a-ink);
    color: #ffffff;
    font: 600 13px/1 var(--c4a-font-text);
    text-decoration: none;
    white-space: nowrap;
}

.points-badge,
.redesign-15 .points-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px 0 9px;
    border: 1px solid var(--c4a-line);
    border-radius: 99px;
    background: var(--c4a-surface);
    color: var(--c4a-ink);
    font: 700 13px/1 var(--c4a-font-text);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.points-badge .ms {
    font-size: 18px;
    color: var(--c4a-green);
}

.notif-center {
    margin-right: 0;
}

.notif-bell-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--c4a-ink);
}

.notif-bell-btn .ms {
    font-size: 24px;
    pointer-events: none;
}

.notif-bell-dot {
    top: 9px;
    right: 9px;
    background-color: var(--c4a-danger);
    border-color: var(--c4a-surface);
    box-shadow: none;
}

.header-tab.active,
.nav-item.active {
    color: var(--c4a-ink);
}

.bottom-nav {
    background: var(--c4a-surface);
    border-top: 1px solid var(--c4a-line);
    box-shadow: none;
    padding: 0 8px;
}

/* iconMuted(#B5B5B5) 는 흰 배경 대비 미달 — 비활성 탭도 text-secondary. */
.nav-item {
    position: relative;
    justify-content: center;
    gap: 3px;
    padding: 6px 0;
    color: var(--c4a-text-secondary);
    font: 500 10px/1 var(--c4a-font-text);
}

.nav-item .ms {
    font-size: 26px;
}

.nav-item.active .nav-label {
    font-weight: 600;
}

.nav-unread-badge {
    top: 4px;
    right: auto;
    left: calc(50% + 8px);
    transform: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--c4a-danger);
    font: 700 11px/18px var(--c4a-font-text);
}

.redesign-15 .bottom-nav {
    min-height: 68px;
    padding-bottom: 4px;
}

/* style.css hardcodes the fixed-position offsets below for a 56px bottom-nav.
 * This nav is 68px (+12px), so every offset built on top of it needs the
 * same +12px so the live mini-player / bottom CTA / chat input don't overlap
 * the taller nav. Keep these in sync if either height changes. */
.redesign-15 .live-mini-player {
    bottom: 76px;
}

.redesign-15 .live-mini-active .fixed-bottom-cta {
    bottom: 112px;
}

.redesign-15 .live-mini-active .chat-page-container {
    height: calc(100vh - 186px);
    height: calc(100dvh - 186px);
    max-height: calc(100vh - 186px);
    max-height: calc(100dvh - 186px);
}

.redesign-15 .bottom-cta-spacer {
    height: 152px;
}

.redesign-15 .live-mini-active .bottom-cta-spacer {
    height: 196px;
}

/* /charge 하단 고정 바(style.css bottom: 56px)도 같은 +12px 보정 대상이다.
 * 보정 전에는 바 하단이 내비 아래로 12px 잘렸다. 내비는 desktop.css 에서
 * ≥1024px 일 때 숨겨지므로(그리고 body 하단 여백도 24px 로 바뀌므로)
 * 이 보정은 내비가 실제로 떠 있는 구간에만 적용한다. */
@media (max-width: 1023px) {
    .redesign-15 .charge-bottom-bar {
        bottom: 68px;
    }

    /* style.css 의 body { padding-bottom: 70px } 는 56px 내비 기준이라
       68px 내비에는 2px 만 남는다. */
    body.redesign-15 {
        padding-bottom: 82px;
    }
}

/* ── 4a 토큰 (design_handoff_web_app_4a/README.md) ─────────────────────────
 * 전 공개 페이지(host/live 포함)에서 쓸 수 있게 :root 에 둔다. */
:root {
    --c4a-surface: #ffffff;
    --c4a-surface-alt: #f5f5f3;
    --c4a-ink: #111111;
    --c4a-text-secondary: #6f6f6f;
    /* #a3a3a3 는 흰 배경 2.52:1 로 WCAG AA 미달 → #6f6f6f(5.0:1). */
    --c4a-text-tertiary: #6f6f6f;
    /* iconMuted(#B5B5B5) 는 흰 배경 대비 미달이라 웹 토큰에서 제외 — 비활성 아이콘도 --c4a-text-secondary 를 쓴다. */
    --c4a-line: #ececea;
    --c4a-list-divider: #f0f0ee;
    --c4a-skeleton: #f0f0ee;
    --c4a-btn-border: #e4e4e1;
    --c4a-row-bg: #f9f9f7;
    --c4a-bubble: #f2f2f0;
    --c4a-green: #1e8a5e;
    --c4a-mint: #99f0ce;
    --c4a-green-soft: #e8f4ee;
    --c4a-green-text: #1b4d37;
    --c4a-green-text-2: #2e6b4e;
    --c4a-green-dark: #34c77b;
    --c4a-amber: #d08a1e;
    --c4a-amber-soft: #fbf1e1;
    --c4a-amber-text: #a66a10;
    --c4a-danger: #e5484d;
    --c4a-kakao: #fee500;
    --c4a-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    --c4a-radius-card: 20px;
    --c4a-radius-cta: 14px;
    --c4a-radius-btn: 12px;
    --c4a-font: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
    /* 본문·버튼·캡션용. pretendard-text-subset.css 가 400/500/600–700 을 제공하므로 이제
       --c4a-font 와 같은 Pretendard 스택이다(예전 800+ 한정 함정은 해소). 토큰은 용도 구분용으로 유지. */
    --c4a-font-text: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

/* Material Symbols Rounded — <span class="ms" aria-hidden="true">call</span>, 활성/상태는 .ms.fill */
.ms {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    flex: none;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}

.ms.fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
