@charset "utf-8";
/* Artnet 작품 리스트 스타일 */

/* ============================================
   작품 리스트 컨테이너
   ============================================ */

#js-grid-masonry-projects {
    margin: 0;
    padding: 0;
}

/* ============================================
   작품 아이템 스타일 (cubeportfolio)
   ============================================ */

.cbp-item {
    margin-bottom: 0 !important;
}

.cbp-caption {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cbp-caption:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.cbp-caption-defaultWrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.cbp-caption-defaultWrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.cbp-caption:hover .cbp-caption-defaultWrap img {
    transform: scale(1.05);
}

.cbp-caption-defaultWrap a {
    display: block;
    text-decoration: none;
}

.cbp-caption-activeWrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0) 0%,
        rgba(26, 26, 26, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.cbp-caption:hover .cbp-caption-activeWrap {
    opacity: 1;
}

.cbp-l-caption-alignCenter {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.5rem;
}

.cbp-l-caption-body {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cbp-l-caption-buttonLeft,
.cbp-l-caption-buttonRight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cbp-l-caption-buttonLeft:hover,
.cbp-l-caption-buttonRight:hover {
    background: #ffffff;
    color: #1c479e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 작품 제목 및 설명 */
.cbp-l-grid-masonry-projects-title {
    display: block;
    padding: 1rem 1.25rem 0.5rem;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
    word-break: break-word;
}

.cbp-l-grid-masonry-projects-title:hover {
    color: #1c479e;
    text-decoration: none;
}

.cbp-l-grid-masonry-projects-desc {
    padding: 0 1.25rem 1.25rem;
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    word-break: break-word;
}

.cbp-l-grid-masonry-projects-desc br {
    display: block;
    margin: 0.25rem 0;
}

/* ============================================
   빈 상태 (Empty State)
   ============================================ */

.artnet-artist-works-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
}

.artnet-artist-works-empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1c479e 0%, #1d489d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(28, 71, 158, 0.2);
}

.artnet-artist-works-empty-icon i {
    font-size: 48px;
    color: #ffffff;
}

.artnet-artist-works-empty-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.5px;
}

.artnet-artist-works-empty-description {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Load More 버튼
   ============================================ */

.artnet-artist-works-loadmore {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem 0;
}

.artnet-artist-works-loadmore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    border: 2px solid #1c479e;
    border-radius: 12px;
    color: #1c479e;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(28, 71, 158, 0.1);
}

.artnet-artist-works-loadmore-btn:hover {
    background: #1c479e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 71, 158, 0.3);
    text-decoration: none;
}

.artnet-artist-works-loadmore-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.artnet-artist-works-loadmore-btn:hover i {
    transform: translateY(2px);
}

/* Load More 상태별 스타일 */
.cbp-l-loadMore-loadingText {
    display: none;
}

.cbp-l-loadMore-link.loading .cbp-l-loadMore-defaultText {
    display: none;
}

.cbp-l-loadMore-link.loading .cbp-l-loadMore-loadingText {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.cbp-l-loadMore-link.loading .cbp-l-loadMore-loadingText i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cbp-l-loadMore-noMoreLoading {
    display: none;
}

.cbp-l-loadMore-link.no-more .cbp-l-loadMore-defaultText,
.cbp-l-loadMore-link.no-more .cbp-l-loadMore-loadingText {
    display: none;
}

.cbp-l-loadMore-link.no-more .cbp-l-loadMore-noMoreLoading {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
}

.cbp-l-loadMore-link.no-more {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: default;
}

.cbp-l-loadMore-link.no-more:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    transform: none;
    box-shadow: 0 4px 12px rgba(28, 71, 158, 0.1);
}

/* ============================================
   반응형 디자인
   ============================================ */

@media (max-width: 991.98px) {
    .cbp-l-grid-masonry-projects-title {
        font-size: 16px;
        padding: 0.875rem 1rem 0.5rem;
    }

    .cbp-l-grid-masonry-projects-desc {
        font-size: 13px;
        padding: 0 1rem 1rem;
    }

    .artnet-artist-works-empty {
        padding: 3rem 1.5rem;
        min-height: 300px;
    }

    .artnet-artist-works-empty-icon {
        width: 80px;
        height: 80px;
    }

    .artnet-artist-works-empty-icon i {
        font-size: 40px;
    }

    .artnet-artist-works-empty-title {
        font-size: 22px;
    }

    .artnet-artist-works-empty-description {
        font-size: 15px;
    }

    .artnet-artist-works-loadmore {
        margin-top: 2.5rem;
        padding: 1.5rem 0;
    }

    .artnet-artist-works-loadmore-btn {
        padding: 0.875rem 1.5rem;
        font-size: 15px;
        min-width: 180px;
    }
}

@media (max-width: 767.98px) {
    .cbp-caption {
        border-radius: 10px;
    }

    .cbp-caption-defaultWrap {
        border-radius: 10px 10px 0 0;
    }

    .cbp-l-grid-masonry-projects-title {
        font-size: 15px;
        padding: 0.75rem 0.875rem 0.5rem;
    }

    .cbp-l-grid-masonry-projects-desc {
        font-size: 12px;
        padding: 0 0.875rem 0.875rem;
    }

    .artnet-artist-works-empty {
        padding: 2.5rem 1rem;
        min-height: 250px;
    }

    .artnet-artist-works-empty-icon {
        width: 70px;
        height: 70px;
    }

    .artnet-artist-works-empty-icon i {
        font-size: 36px;
    }

    .artnet-artist-works-empty-title {
        font-size: 20px;
    }

    .artnet-artist-works-empty-description {
        font-size: 14px;
    }

    .artnet-artist-works-loadmore {
        margin-top: 2rem;
        padding: 1.25rem 0;
    }

    .artnet-artist-works-loadmore-btn {
        padding: 0.75rem 1.25rem;
        font-size: 14px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .cbp-l-grid-masonry-projects-title {
        font-size: 14px;
    }

    .cbp-l-grid-masonry-projects-desc {
        font-size: 11px;
    }

    .artnet-artist-works-empty {
        padding: 2rem 0.75rem;
        min-height: 200px;
    }

    .artnet-artist-works-empty-icon {
        width: 60px;
        height: 60px;
    }

    .artnet-artist-works-empty-icon i {
        font-size: 32px;
    }

    .artnet-artist-works-empty-title {
        font-size: 18px;
    }

    .artnet-artist-works-empty-description {
        font-size: 13px;
    }

    .artnet-artist-works-loadmore-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   기존 스타일 오버라이드
   ============================================ */

.artnet-artist-tab-pane .empty_table {
    display: none !important;
}

/* cubeportfolio 기본 스타일 개선 */
.cbp-l-grid-masonry-projects .cbp-item {
    margin-bottom: 0;
}

.cbp-l-grid-masonry-projects .cbp-caption {
    background: #ffffff;
}
