/* /resource/www/css/artist.css */


.container {
    width: 1440px;
    margin: 0 auto;
    padding: 0 0;
    padding-top: 30px;
}

/* Hero Image/Banner (if used) */
.artist-hero {
    padding: 60px 0;
    text-align: center;
}

/* =========================================
   Search Section (Top)
   ========================================= */
/* =========================================
   Search Section (Top)
   ========================================= */
.artist-search-wrap {
    margin: 0 auto 60px;
    max-width: 1440px;
    padding: 0px 20px 0; /* Added Top Padding 60px */
}
.search-inner {
    display: flex;
    justify-content: flex-start; /* Changed from space-between to start for strict gap control */
    align-items: center;
    gap: 42px; /* User specified 42px gap */
}

/* Filter Left Area (Label + Group) */
.filter-area {
    display: flex;
    align-items: center;
    gap: 18px; /* User hint: margin: ... 18px ... likely gap between label and buttons */
    flex: 0 0 auto; /* Allow it to take natural width or clamp to 30% if needed, but fixed-width buttons dictate size */
    margin-bottom: 0px;
}

/* Common Label Style */
.filter-label, .search-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    white-space: nowrap; 
}
.icon-category {
    display: block;
    width: 24px;
    height: 24px;
    background: url('/resource/www/images/common/icon-division.png') no-repeat center / contain;
}

/* Filter Group Buttons */
.filter-btn-group {
    display: flex;
    /* Attached buttons: No gap */
    gap: 0; 
}
.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px; 
    height: 44px; 
    padding: 0; 
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0; 
    margin-left: -1px; 
}
.btn-filter:first-child {
    margin-left: 0;
    border-top-left-radius: 4px; 
    border-bottom-left-radius: 4px;
}
.btn-filter:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.btn-filter:hover, .btn-filter.active, .btn-filter:focus {
    z-index: 1;
}

.btn-filter:hover {
    background-color: #f5f5f5;
}
.btn-filter.active {
    background: #000;
    border-color: #000;
    color: #fff;
    font-weight: 500;
}

/* Search Input Box */
.search-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; 
}
.inp-search {
    flex: 1;
    height: 44px; 
    padding: 0 20px;
    border: 1px solid #E1E1E1; 
    border-radius: 22px; 
    font-size: 15px;
    background: #fff;
    transition: all 0.2s;
}
.inp-search:focus {
    outline: none;
    border-color: #000;
}
.btn-artist-search {
    flex: 0 0 80px;
    height: 44px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-artist-search:hover, .btn-artist-search.active {
    background: #000;
    color: #fff;
}
.inp-search.onlyNumber {
    text-align: right;
    padding-right: 15px;
}

/* Divider */
.section-divider {
    max-width: 1440px;
    margin: 0 auto 30px;
    padding: 0 20px;
    height: 1px;
    background: #E1E1E1; /* Thinner/Lighter divider */
}

/* Total Info (Left Aligned) */
.total-info {
    max-width: 1440px;
    margin: 0 auto 40px; /* Increased bottom margin */
    padding: 0 20px;
    text-align: left; 
    font-size: 14px;
    color: #888;
    font-weight: 400;
}
.total-info .count-num {
    color: #222;
    font-weight: 700;
    margin-left: 5px;
    font-size: 16px;
}

/* Gray Background Area Wrapper */
.artist-list-bottom-area {
    background-color: #F8F8F8;
    padding: 80px 0;
    width: 100%;
}
.artist-list-bottom-area .container {
    padding-top: 0;
}
.artist-list-bottom-area .content {
    padding: 0;
}

/* =========================================
   Artist List Grid (Text Only)
   ========================================= */
.artist-list-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
.artist-grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.artist-card-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Left Aligned */
    text-decoration: none;
    color: #000;
    background: #fff;
    border: 1px solid #eee;
    padding: 30px 40px; /* Increased horizontal padding for left alignment */
    text-align: left;
    transition: all 0.3s ease;
    min-height: 140px; 
    border-radius: 15px; 
}

/* Search Label Icon */
.icon-search-label {
    display: block;
    width: 24px;
    height: 24px;
    background-color: #000;
    mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='currentColor' stroke-width='2'/%3E%3Cpath d='M20 20L17 17' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='currentColor' stroke-width='2'/%3E%3Cpath d='M20 20L17 17' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

/* Search Area Layout (Label + Input) */
.search-box-area {
    display: flex;
    align-items: center;
    gap: 18px; /* Matching gap for consistency */
    flex: 1; /* Take huge area as requested (70%) */
}

/* Card Hover / Active */
.artist-card-item:hover,
.artist-card-item:focus {
    background: #442c93; /* Purple Background */
    border-color: #442c93;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(68, 44, 147, 0.2);
}

.artist-card-item:hover .info-dept,
.artist-card-item:focus .info-dept {
    color: rgba(255, 255, 255, 0.8);
}

.artist-card-item:hover .info-name,
.artist-card-item:focus .info-name {
    color: #fff;
}

/* Info Text */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-dept {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.info-name {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    transition: color 0.3s;
    word-break: keep-all;
}

/* =========================================
   Infinite Scroll Trigger
   ========================================= */
.more-btn-area {
    text-align: center;
    margin-top: 60px;
}
.btn-more-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent url('/resource/www/images/common/btm-sub-next.png') no-repeat center / auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-more-arrow:hover {
    transform: translateY(5px);
    opacity: 0.7;
}

/* No Data */
.no-data-view {
    text-align: center;
    padding: 100px 0;
    font-size: 16px;
    color: #999;
}

/* =========================================
   Responsiveness
   ========================================= */
@media (max-width: 1024px) {
    .artist-grid-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .search-inner {
        flex-direction: column;
        align-items: stretch; /* Full width */
        gap: 20px;
    }
    .filter-area, .search-box-area {
        width: 100%;
        justify-content: space-between; /* Spread label and input/buttons */
    }
    .search-input-box {
         flex: 1;
    }
    .inp-search {
        width: 100%; /* Full width in mobile stack */
    }
    .btn-search {
        right: 10px; /* Reset position for full width */
    }
}
@media (max-width: 768px) {
    .filter-btn-group {
        flex: 1;
    }
    .btn-filter {
        flex: 1; /* Strech buttons */
        width: auto;
    }
    .artist-grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 16px;
    }
}
@media (max-width: 480px) {
    .artist-grid-list {
        grid-template-columns: repeat(1, 1fr);
    }
    .filter-area, .search-box-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .filter-btn-group, .search-input-box {
        width: 100%;
    }
}

/* =========================================
   Artist View Detail Section
   ========================================= */
.artist-view-header {
    margin-bottom: 50px;
    border-bottom: 2px solid #000;
    padding-bottom: 30px;
}
.artist-view-header .dept-info {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}
.artist-view-header .name-info {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.detail-section {
    margin-bottom: 80px;
}
.detail-section .section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

/* Profile List */
.profile-list-wrap {
    border-top: 2px solid #383838;
    border-bottom: 2px solid #383838;
}
.profile-dl {
    display: flex;
    border-bottom: 0px solid #eee;
    padding: 24px 0;
    margin: 0;
}
.profile-dl dt {
    width: 160px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    flex-shrink: 0;
}
.profile-dl dd {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}
.link-item {
    color: #442c93;
    text-decoration: underline;
}

/* Career Table */
.career-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e1e1e1;
}
.career-table th {
    background: #f2f2f2;
    padding: 15px;
    border: 1px solid #e1e1e1;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
.career-table td {
    padding: 18px 15px;
    border: 1px solid #e1e1e1;
    text-align: center;
    font-size: 15px;
    color: #666;
}
.career-table td.t-left {
    text-align: left;
}

/* Creation Section */
.creation-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}
.creation-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 30px 0 30px;
}
.tab-btn-group {
    display: flex;
    gap: 0;
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 44px;
    padding: 0;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    margin-left: -1px;
}
.tab-btn:first-child {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.tab-btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.tab-btn:hover {
    background-color: #f5f5f5;
}
.tab-btn.active {
    z-index: 1;
    background: #000;
    border-color: #000;
    color: #fff;
}




.creation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.creation-item {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.thumb-box {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.creation-item:hover .thumb-box img {
    transform: scale(1.05);
}
.card-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
}
.card-item-header .badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.card-item-header .btn-like {
    width: 24px;
    height: 24px;
    background: transparent url('/resource/www/images/common/btn-like.png') no-repeat center / contain;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.card-item-header .btn-like:hover, 
.card-item-header .btn-like.active {
    background-image: url('/resource/www/images/common/btn-like-on.png');
}

.thumb-box {
    position: relative;
    aspect-ratio: 3 / 4; 
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.info-box {
    padding: 20px;
}
.work-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000;
}
.artist-name {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    display: block;
}
.price-info {
    font-size: 14px;
    color: #222;
}
.price-info strong {
    font-size: 18px;
    color: #000;
}

.view-btn-area {
    text-align: center;
    margin-top: 50px;
}
.btn-back-list {
    width: 200px;
    height: 56px;
    background: #fff;
    border: 1px solid #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-back-list:hover {
    background: #000;
    color: #fff;
}

/* Responsiveness for Detail */
@media (max-width: 1024px) {
    .creation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .creation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-dl dt {
        width: 120px;
    }
}
@media (max-width: 480px) {
    .creation-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .profile-dl {
        flex-direction: column;
        gap: 8px;
    }
    .profile-dl dt {
        width: 100%;
    }
    .artist-view-header .name-info {
        font-size: 24px;
    }
    .career-table thead {
        display: none;
    }
    .career-table tr {
        display: block;
        border-bottom: 2px solid #eee;
        padding: 10px 0;
    }
    .career-table td {
        display: block;
        text-align: left;
        padding: 5px 0;
        border: none;
    }
    .career-table td[data-label]::before {
        content: attr(data-label);
        font-weight: 700;
        display: inline-block;
        width: 100px;
    }
}

/* Bottom Gray Area */
.artist-list-bottom-area, .artist-view-bottom-area {
    background-color: #f7f7f7;
    padding-top: 0px;
    padding-bottom: 100px;
    border-top: 1px solid #eee;
}
.artist-view-bottom-area {
    margin-top: 0;
}

