/* @import url('사용하실_폰트_주소'); */

:root {
    /* 시안 속 주요 컬러 반영 */
    --color-primary: #7EC1FF;     /* 파스텔 블루 */
    --color-bg-light: #E6F2FF;    /* 연한 블루 배경 */
    --color-white: #FFFFFF;       /* 화이트 */
    --color-dark: #2B2D42;        /* 텍스트 및 어두운 톤 */
    --color-gray: #A0AEC0;        /* 가이드라인 및 서브 텍스트 */
    
    /* 폰트 정의 */
    --font-main: 'Noto Sans KR', sans-serif;
}

/* 기본 리셋 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-main);
    color: var(--color-dark);
    background-color: #F8FAFC;
    line-height: 1.5;
    border: .1px solid white;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, ol {
    list-style: none;
}
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-main);
}

/* 전체 레이아웃 구조 */
.site-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 70px; /* 헤더 높이만큼 여백 */
}

/* [공통] 상단 헤더 (GNB) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-bg-light);
    z-index: 1000;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.header-container .logo img {
    height: 40px;
}
.search-bar {
    display: flex;
    align-items: center;
    background-color: #F1F5F9;
    border-radius: 20px;
    padding: 10px 15px;
    width: 400px;
}
.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}
.header-util {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}
.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

/* [PC] 좌측 고정 사이드바 */
.sidebar-pc {
    width: 240px;
    height: calc(100vh - 70px);
    position: fixed;
    background-color: var(--color-white);
    border-right: 1px solid var(--color-bg-light);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.side-nav ul li {
    margin-bottom: 10px;
}
.side-nav ul li a {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}
.side-nav ul li.active a,
.side-nav ul li a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    font-weight: bold;
}
.sidebar-footer img {
    width: 100%;
    opacity: 0.7;
}

/* [공통] 메인 콘텐츠 유동 기본 여백 */
.main-content {
    flex: 1;
    margin-left: 240px; /* 사이드바 너비만큼 확보 */
    padding: 30px;
}

/* 모바일 전용 UI 초기 숨김 (PC 우선 기준) */
.sub-tab-mobile, 
.bottom-nav-mobile {
    display: none;
}

/* 📱 모바일 및 태블릿 반응형 브레이크포인트 */
@media (max-width: 1024px) {
    .sidebar-pc {
        display: none; /* PC 사이드바 숨김 */
    }
    .main-content {
        margin-left: 0; /* 사이드바 여백 제거 */
        padding: 15px;
        padding-bottom: 80px; /* 하단 탭바 여백 */
    }
    .search-bar {
        display: none; /* 모바일은 헤더 돋보기 아이콘 등으로 대체 권장 */
    }
    
    /* 모바일 상단 서브 탭바 활성화 */
    .sub-tab-mobile {
        display: flex;
        border-bottom: 1px solid var(--color-bg-light);
        margin-bottom: 20px;

        display : none;

    }
    .sub-tab-mobile a {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        font-weight: 500;
        color: var(--color-gray);
    }
    .sub-tab-mobile a.active {
        color: var(--color-primary);
        border-bottom: 3px solid var(--color-primary);
        font-weight: bold;
    }

    /* 모바일 하단 고정 네비게이션 바 활성화 */
    .bottom-nav-mobile {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background-color: var(--color-white);
        border-top: 1px solid var(--color-bg-light);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 1000;
        align-items: center;
        display: none;
    }
    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        color: var(--color-gray);
    }
    .nav-item .icon {
        font-size: 20px;
        margin-bottom: 2px;
    }
    .nav-item.active {
        color: var(--color-primary);
    }
    
    /* 가운데 작품 등록 버튼 커스텀 */
    .btn-center .plus-circle {
        width: 44px;
        height: 44px;
        background-color: var(--color-primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-top: -20px;
        box-shadow: 0 4px 10px rgba(126, 193, 255, 0.4);
    }
}
