/* static/css/global.css */

/* --- 1. 디자인 시스템 변수 --- */
:root {
    --header-height: 56px;
    --footer-height: 82px;
    --content-max-width: 400px;
    --button-area-height: 48px;
    --color-primary: #5FB995;
    --color-primary-hover: #50a383;
    --color-content-bg: #FFFFFF;
    --color-page-bg: #F8F9FA;
    --color-text-primary: #212529;
    --color-text-secondary: #6c757d;
    --color-border: #E9ECEF;
    --color-hover-bg: #F1F3F5;
}

/* [wBible Architect] Bootstrap의 전역 부드러운 스크롤을 무효화하고, JS에서 개별 제어하도록 강제합니다. */
:root {
    scroll-behavior: auto !important;
}


/* --- 2. 기본 HTML 및 Body 스타일 --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* [핵심 수정] 헤더 고정 오류의 원인이었던 높이 강제 지정을 제거하고, 콘텐츠 길이에 따라 body 높이가 자연스럽게 결정되도록 변경했습니다. */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text-primary);
    background-color: var(--color-content-bg);
    -webkit-font-smoothing: antialiased;
}

/* 악보 상세 페이지 body 배경색 설정 */
body.layout-fixed-content {
    background-color: #fff;
}

/* --- 3. 공용 컴포넌트 스타일 --- */
a {
    color: var(--color-text-primary);
    text-decoration: none;
}
a:hover {
    color: var(--color-primary);
}

.turbo-progress-bar {
    height: 3px;
    background-color: var(--color-primary);
}

.toast-messages-container {
    position: fixed;
    bottom: calc(var(--footer-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast-message {
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
    pointer-events: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* [신규] 모달/오버레이 활성화 시 body 스크롤을 잠그기 위한 전역 클래스 */
.body-scroll-lock {
    overflow: hidden;
}