@charset "utf-8";

/* 탭메뉴 컨테이너 */
.detail-tab-wrap {
    margin: 30px 0 0 0;
    border-bottom: 2px solid #2c3e50;
}
.detail-tab-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.detail-tab-menu li {
    flex: 1;
}
.detail-tab-menu li a {
    display: block;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: #888;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: -1px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.detail-tab-menu li:first-child a {
    border-radius: 4px 0 0 0;
}
.detail-tab-menu li:last-child a {
    border-radius: 0 4px 0 0;
    margin-right: 0;
}
.detail-tab-menu li a:hover {
    color: #2c3e50;
    background: #eef2f7;
}
.detail-tab-menu li.active a {
    color: #fff;
    background: #2c3e50;
    border-color: #2c3e50;
    font-weight: 600;
}

/* 탭 콘텐츠 영역 */
.detail-tab-content {
    position: relative;
}
.detail-tab-panel {
    display: none;
    padding: 25px 5px;
}
.detail-tab-panel.active {
    display: block;
}

/* 더보기 기능 - 접힌 상태 */
.detail-tab-content.collapsed .detail-tab-panel.active {
    max-height: 500px;
    overflow: hidden;
}

/* 그라디언트 오버레이 */
.detail-tab-content .tab-fade-overlay {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 1;
}
.detail-tab-content.collapsed .tab-fade-overlay {
    display: block;
}

/* 더보기 버튼 */
.tab-expand-btn-wrap {
    display: none;
    text-align: center;
    padding: 15px 0 20px!important;
    position: relative;
    z-index: 2;
    background: #fff;
}
.tab-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 30px!important;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-expand-btn:hover {
    background: #f8f9fa;
    border-color: #2c3e50;
}
.tab-expand-btn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.tab-expand-btn.expanded .arrow {
    transform: rotate(180deg);
}

/* 반응형 */
@media (max-width: 768px) {
    .detail-tab-menu li a {
        padding: 12px 0;
        font-size: 13px;
    }
}