@charset "UTF-8";

/* content */
.content{
    width: 100%;
    height: calc(100vh - 100px);
    overflow: hidden;
}

/* content-wrap */
.content .content-wrap{
    width: 100%;
    height: 100%;
    display: flex;
}

/* category-tab */
.content .content-wrap .category-tab{
    width: 360px;
    height: 100%;
    background-color: #FFFBEF;
    border-right: 1px solid #659AB9;
    flex-shrink: 0;
    overflow-y: auto;
}
.content .content-wrap .category-tab .tab-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid #e0e0e0;
}
.content .content-wrap .category-tab .tab-item:hover{
    background-color: rgba(101, 154, 185, 0.1);
}
.content .content-wrap .category-tab .tab-item.active{
    background-color: #2B4C70;
}
.content .content-wrap .category-tab .tab-item .tab-number{
    font-size: 24px;
    font-weight: 100;
    color: #666;
}
.content .content-wrap .category-tab .tab-item.active .tab-number{
    color: #fff;
}
.content .content-wrap .category-tab .tab-item .tab-name{
    font-size: 24px;
    font-weight: 700;
    color: #2B4C70;
}
.content .content-wrap .category-tab .tab-item.active .tab-name{
    color: #fff;
}

/* description-area */
.content .content-wrap .description-area{
    width: 360px;
    height: 100%;
    border-right: 1px solid #659AB9;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 40px 30px;
}
.content .content-wrap .description-area .description-content{
    display: none;
}
.content .content-wrap .description-area .description-content.active{
    display: block;
}

/* desc-header */
.content .content-wrap .description-area .desc-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #659AB9;
}

.content .content-wrap .description-area .desc-title{
    font-size: 20px;
    font-weight: 700;
    color: #2B4C70;
    margin: 0;
}

/* desc-tools */
.content .content-wrap .description-area .desc-tools{
    display: flex;
    gap: 8px;
    align-items: center;
}

.content .content-wrap .description-area .tool-icon{
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
    transition: opacity 0.2s;
    filter: brightness(0) saturate(100%) invert(55%) sepia(24%) saturate(734%) hue-rotate(160deg) brightness(93%) contrast(87%);
    opacity: 0.9;
}

.content .content-wrap .description-area .tool-icon:hover{
    opacity: 1;
}

.content .content-wrap .description-area .desc-text{
    font-size: 15px;
    line-height: 1.8;
    color: #205472;
    margin-bottom: 20px;
}

/* artwork-area */
.content .content-wrap .artwork-area{
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 40px;
}
.content .content-wrap .artwork-area .artwork-content{
    display: none;
}
.content .content-wrap .artwork-area .artwork-content.active{
    display: block;
}
.content .content-wrap .artwork-area .artwork-content .artwork-item{
    width: 100%;
    margin: 0 auto 30px;
    overflow: hidden;
}
.content .content-wrap .artwork-area .artwork-content .artwork-item:last-child{
    margin-bottom: 0;
}
.content .content-wrap .artwork-area .artwork-content .artwork-item img{
    width: 100%;
    height: auto;
    display: block;
}

/* scrollbar */
.content .content-wrap .category-tab::-webkit-scrollbar,
.content .content-wrap .description-area::-webkit-scrollbar{
    width: 6px;
}
.content .content-wrap .category-tab::-webkit-scrollbar-track,
.content .content-wrap .description-area::-webkit-scrollbar-track{
    background: #f1f1f1;
}
.content .content-wrap .category-tab::-webkit-scrollbar-thumb,
.content .content-wrap .description-area::-webkit-scrollbar-thumb{
    background: #659AB9;
    border-radius: 3px;
}
.content .content-wrap .artwork-area::-webkit-scrollbar{
    width: 8px;
}
.content .content-wrap .artwork-area::-webkit-scrollbar-track{
    background: #f1f1f1;
}
.content .content-wrap .artwork-area::-webkit-scrollbar-thumb{
    background: #659AB9;
    border-radius: 4px;
}

/* Top 버튼 */
.top-btn{
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background-color: #2B4C70;
    border: 2px solid #659AB9;
    border-radius: 50%;
    display: block;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(43, 76, 112, 0.2);
    text-decoration: none;
}

.top-btn.show{
    opacity: 1;
    visibility: visible;
}

.top-btn:hover{
    background-color: #659AB9;
    border-color: #2B4C70;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(43, 76, 112, 0.3);
}

.top-btn::before{
    content: '^';
    font-size: 26px;
    color: #FFFBEF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -6px;
}

.top-btn::after{
    content: 'top';
    font-size: 13px;
    font-weight: 600;
    color: #FFFBEF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 8px;
}

/* 반응형 */
@media screen and (max-width: 1280px){
    .content .content-wrap .category-tab,
    .content .content-wrap .description-area{
        width: 300px;
    }
}

@media screen and (max-width: 1024px){
    .content{
        height: auto;
        min-height: calc(100vh - 100px);
    }
    .content .content-wrap{
        flex-direction: column;
    }
    .content .content-wrap .category-tab{
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid #659AB9;
    }
    .content .content-wrap .category-tab .tab-item{
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        padding: 15px 20px;
    }
    .content .content-wrap .category-tab .tab-item .tab-number{
        font-size: 1em;
        margin-right: 10px;
    }
    .content .content-wrap .category-tab .tab-item .tab-name{
        font-size: 1.1em;
        font-weight: 700;
    }
    .content .content-wrap .category-tab .tab-item:last-child{
        border-right: none;
    }
    .content .content-wrap .description-area{
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #659AB9;
        padding: 30px 20px;
    }
    .content .content-wrap .artwork-area{
        height: auto;
        overflow-y: visible;
        padding: 30px 20px;
    }
}

@media screen and (max-width: 768px){
    .content .content-wrap .category-tab .tab-item{
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
        padding: 12px 15px;
    }
    .content .content-wrap .category-tab .tab-item .tab-number{
        font-size: 0.5em;
    }
    .content .content-wrap .category-tab .tab-item .tab-name{
        font-size: 0.75em;
    }
    .content .content-wrap .description-area{
        padding: 20px 15px;
    }
    .content .content-wrap .artwork-area{
        padding: 20px 15px;
    }
    .content .content-wrap .artwork-area .artwork-content .artwork-item{
        margin-bottom: 20px;
    }
    .top-btn{
        bottom: 30px;
        right: 30px;
        width: 65px;
        height: 65px;
    }
    .top-btn::before{
        font-size: 26px;
    }
    .top-btn::after{
        font-size: 12px;
    }
}

@media screen and (max-width: 480px){
    .content .content-wrap .category-tab{
        justify-content: flex-start;
    }
    .content .content-wrap .category-tab .tab-item{
        min-width: 100px;
    }
    .content .content-wrap .description-area .tool-icon{
        width: 20px;
        height: 20px;
    }
    .top-btn{
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    .top-btn::before{
        font-size: 25px;
    }
    .top-btn::after{
        font-size: 10px;
    }
}