/* 레이아웃: 헤더, 메인, 푸터 구조 */

/* 고정형 헤더 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* 메인 컨텐츠 영역 (헤더 높이만큼 띄움) */
main {
    margin-top: 60px;
    /* 헤더 높이 60px 만큼 여백 */
    min-height: calc(100vh - 120px);
    /* 화면 전체에서 헤더와 푸터 높이를 뺀 최소 높이 */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

/* 푸터 영역 */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    font-size: 0.85rem;
    color: #888;
}

/* 모바일 대응 (화면이 768px 이하일 때 여백 축소) */
@media (max-width: 768px) {
    main {
        padding: 20px 15px;
    }
}