/* 작품 리스트 페이지 스타일 */

.artwork-list-container {
    padding: 60px 0;
    background-color: #fff;
    width: 100%;
}

.artwork-list-container .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-header-left {
    display: flex;
    align-items: center;
}

.page-header-right {
    display: flex;
    align-items: center;
}

.artist-list-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.artist-list-link:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.artist-list-link i {
    font-size: 14px;
}

.artist-list-link span {
    font-weight: 500;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.mobile-filter-toggle {
    display: none;
    padding: 10px 20px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    background-color: #f5f5f5;
}

.mobile-filter-toggle i {
    margin-right: 8px;
}

/* 콘텐츠 래퍼 - Flex 레이아웃 */
.artwork-list-container .content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

/* 필터 사이드바 */
.artwork-list-container .filter-sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    padding-right: 20px;
    position: relative;
    box-sizing: border-box;
}

.filter-sidebar-content {
    padding: 0;
}

/* 필터 섹션 */
.filter-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 체크박스 리스트 */
.filter-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    padding-left: 32px;
    position: relative;
    user-select: none;
    transition: background-color 0.2s ease;
}

.filter-checkbox-item:hover {
    background-color: #f9f9f9;
    border-radius: 4px;
}

.filter-checkbox-item input[type="checkbox"],
.filter-checkbox-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    cursor: pointer;
}

/* 커스텀 체크박스 - 기본 상태 (흰색) */
.filter-checkbox-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox-text {
    position: relative;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* 체크된 상태 - 빨간색 배경 */
.filter-checkbox-item input[type="checkbox"]:checked ~ .filter-checkbox-text::before,
.filter-checkbox-item input[type="radio"]:checked ~ .filter-checkbox-text::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 2px;
    z-index: 1;
}

/* 체크된 상태 - 흰색 체크마크 */
.filter-checkbox-item input[type="checkbox"]:checked ~ .filter-checkbox-text::after,
.filter-checkbox-item input[type="radio"]:checked ~ .filter-checkbox-text::after {
    content: '✓';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

.filter-checkbox-item:hover .filter-checkbox-text {
    color: #000;
}

.filter-checkbox-item input:checked ~ .filter-checkbox-text {
    font-weight: 500;
    color: #000;
}

.filter-checkbox-item:has(input:checked) {
    background-color: transparent;
}

/* 검색 버튼 섹션 */
.filter-button-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-search-btn,
.filter-reset-btn {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #000;
    background-color: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.filter-search-btn:hover {
    background-color: #333;
}

.filter-reset-btn {
    background-color: #fff;
    color: #000;
    margin-bottom: 0;
}

.filter-reset-btn:hover {
    background-color: #f5f5f5;
}

/* 작품 메인 콘텐츠 */
.artwork-main-content {
    flex: 1;
    min-width: 0;
}

/* 작품 그리드 */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.artwork-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-5px);
}

.artwork-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.artwork-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 15px;
    border-radius: 4px;
}

.artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artwork-card:hover .artwork-image {
    transform: scale(1.05);
}

.artwork-info {
    padding: 0 5px;
}

.artwork-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    line-height: 1.4;
}

.artwork-artist {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.artwork-price {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

/* 뱃지 영역 */
.artwork-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.artwork-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.artwork-badge i {
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 생산방법 뱃지 (흰색 배경, 검은색 테두리) */
.artwork-badge-production {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.artwork-badge-production i {
    color: #000;
}

/* 배송출발지 뱃지 (빨간색 배경 유지) */
.artwork-badge-shipping {
    background-color: #e74c3c;
    color: #fff;
    border: none;
}

.artwork-badge-shipping i {
    color: #fff;
}

.badge-text {
    font-size: 11px;
    font-weight: 500;
}

.artwork-materials {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* 카테고리 */
.artwork-category {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* 모든 뱃지 한 줄로 배치 */
.artwork-all-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.artwork-badge-material {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.artwork-badge-material .badge-text {
    color: #333;
}

.artwork-badge-usage {
    background-color: #e8f4f8;
    color: #2c5f7d;
    border: 1px solid #b8d4e3;
}

.artwork-badge-usage .badge-text {
    color: #2c5f7d;
}

/* 해외전시 이력 */
.artwork-exhibitions {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.exhibition-label {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.exhibition-text {
    color: #666;
}

/* 해외판매경험 */
.artwork-overseas-sales {
    margin-top: 6px;
    margin-bottom: 8px;
}

.overseas-sales-badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.artwork-empty {
    text-align: center;
    padding: 100px 20px;
}

.artwork-empty p {
    font-size: 18px;
    color: #999;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #f5f5f5;
    border-color: #000;
}

.pagination-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* 모바일 필터 오버레이 */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.filter-overlay.active {
    display: block;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-header-left,
    .page-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
    }
    
    .artist-list-link {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .artist-list-link i {
        margin-right: 0;
    }
    
    .artwork-list-container .content-wrapper {
        position: relative;
    }
    
    .artwork-list-container .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        background-color: #fff;
        border-right: 1px solid #e0e0e0;
        padding: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .artwork-list-container .filter-sidebar.active {
        left: 0;
    }
    
    .artwork-main-content {
        width: 100%;
    }
    
    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .artwork-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 1200px) {
    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
