/* sheslab — 전역 푸터 (.sl-footer)
 * 대장님 명령: 모든 화면 하단에 sticky 표시 (항상 visible)
 * → position: fixed, 탭바 바로 위 (bottom: 64px)
 * 콘텐츠가 양쪽 fixed 박스에 가리지 않게 body padding-bottom 보강
 */
.sl-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 64px;       /* 탭바 64px 위 */
    z-index: 905;       /* 탭바(900)보다 위 */
    padding: 8px 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    pointer-events: auto;
}

.sl-footer-nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 4px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}
.sl-footer-nav a {
    color: var(--text-muted, #888);
    text-decoration: none;
    padding: 2px 6px;
    transition: color 0.2s ease;
}
.sl-footer-nav a:hover { color: var(--primary-dark, #8E5878); }
.sl-footer-dot {
    color: var(--secondary, #E8A4B8);
    opacity: 0.55;
    font-weight: 400;
    user-select: none;
}
.sl-footer-copy {
    display: inline-block;
    margin-left: 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.7rem;
    color: var(--text-muted, #888);
}

/* E-Ink 호환 */
html[data-theme="eink"] .sl-footer {
    background: rgba(255, 255, 255, 0.94) !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="eink"] .sl-footer-nav a { color: #5A5A5A !important; }
html[data-theme="eink"] .sl-footer-nav a:hover { color: #1A1A1A !important; }
html[data-theme="eink"] .sl-footer-copy { color: #5A5A5A !important; }
html[data-theme="eink"] .sl-footer-dot { color: rgba(0,0,0,0.30) !important; }

@media (max-width: 480px) {
    .sl-footer {
        padding: 6px 8px;
        bottom: 60px;  /* 모바일 탭바가 약간 작음 */
    }
    .sl-footer-nav { font-size: 0.66rem; gap: 1px 3px; }
    .sl-footer-nav a { padding: 2px 4px; }
    .sl-footer-copy { font-size: 0.66rem; margin-left: 4px; }
    /* 모바일에선 copy 숨김 (공간 절약) — 너무 좁으면 사라짐 */
    @media (max-width: 360px) {
        .sl-footer-copy { display: none; }
    }
}

/* body padding-bottom 보강 — 탭바(64) + footer(~36) 합 100px */
body.has-sl-tabbar { padding-bottom: 110px; }
@media (max-width: 480px) {
    body.has-sl-tabbar { padding-bottom: 100px; }
}

/* 홈/community/love 페이지의 기존 portal-footer는 그대로 (일반 흐름) — 중복 방지
 * sl-footer (JS inject)와 portal-footer (HTML 직접)는 footer.js의 중복 방지로 동시 출현 X */
