/* /resource/www/css/artist.css */

/* Hero Image/Banner (if used) */
.artist-hero {
    padding: 60px 0;
    text-align: center;
}


.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, .creation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .artist-grid-list, .creation-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px 16px;
    }
}

@media (max-width: 480px) {
    .artist-grid-list, .creation-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px 10px;
    }
    .info-box {
        padding: 12px;
    }
    .work-title {
        font-size: 15px;
    }
    .price-info strong {
        font-size: 15px;
    }
}

/* =========================================
   Artist View Detail Section
   ========================================= */
.artist-view-header {
    padding-top: 50px;
    border-top: 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: 60px;
}
.detail-section .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
    color: #000;
    padding-bottom: 5px;
}

.section-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
    margin-bottom: 30px;
}

/* Profile List */
.profile-list-wrap {
    border-bottom: 2px solid #383838;
}
.profile-dl {
    display: flex;
    border-bottom: 0px solid #eee;
    padding: 16px 0;
    margin: 0;
}
.profile-dl dt {
    width: 160px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    flex-shrink: 0;
}
.profile-dl dd {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #000;
    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;
}




/* Moved to component.css */

.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: 768px) {
    .profile-dl dt {
        width: 120px;
    }
}
@media (max-width: 480px) {
    .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;
    }
}

/* artist-list-bottom-area has been replaced by common utility classes in sub.css (.full-width-box .bg-gray .py-80) */

/* =========================================
   Artwork Detail View (art/view.jsp)
   ========================================= */
.art-detail-wrap {
	position: relative;
    margin-bottom: 60px;
}

/* Top: Gallery Area (Left Main, Right Vertical Thumbs) */
.art-gallery-area {
    display: flex;
    gap: 24px;
    align-items: stretch;
}
.gallery-main {
    flex: 1;
    position: relative;
    border-radius: 12px;
    min-height: 500px;
    background: #f8f8f8;
    overflow: hidden;
}
.gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main .img-box__inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Category Badge Overlapping */
.artcate-info {
    position: absolute;
    left: 0;
    bottom: -20px;
    background: #000;
    color: #fff;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Right: Vertical Thumbnails (Swiper version) */
.gallery-side-list.swiper {
    width: 100px;
    height: 500px;
    margin: 0;
}
.gallery-side-list .swiper-slide {
    height: auto;
    width: 100%;
}
.thumb-btn {
    width: 100px;
    height: 90px;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-side-list .swiper-slide-thumb-active .thumb-btn {
    border-color: #442c93;
}
.thumb-btn:hover {
    border-color: #442c93;
}

/* Swiper Navigation Custom */
.gallery-main .swiper-button-next:after, 
.gallery-main .swiper-button-prev:after {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
}
.gallery-main .swiper-button-next,
.gallery-main .swiper-button-prev {
    background: rgba(0,0,0,0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* Bottom: Info Area */
.art-info-area {
    width: 100%;
    margin-bottom: 70px;
    padding-bottom: 0;
}
.b-title-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}
.b-title-wrapper .b-title {
    font-size: 38px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0;
}
.b-price {
    font-size: 24px;
    color: #888;
    margin-bottom: 50px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.b-price strong {
    font-size: 42px;
    font-weight: 700;
    color: #000;
}
.price-nego-txt {
    font-size: 26px;
    color: #888;
    font-weight: 400;
}
.badge-nego {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    margin-left: 10px;
    vertical-align: middle;
}
.b-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    margin-bottom: 20px;
}

.btn-inquiry-white {
    background: #fff;
    border: 1px solid #222;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-inquiry-white:hover {
    background: #f8f8f8;
}

.b-title-wrapper .btn-like {
    width: 32px;
    height: 32px;
    background: transparent url('/resource/www/images/common/btn-like.png') no-repeat center / contain;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.b-title-wrapper .btn-like.active {
    background-image: url('/resource/www/images/common/btn-like-on.png');
}

.btn-link-artist {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    text-decoration: none;
    color: #442c93;
    font-size: 14px;
    font-weight: 500;
}
.btn-link-artist img {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .art-gallery-area {
        flex-direction: column;
    }
    .gallery-main {
        min-height: 350px;
    }
    .gallery-side-list.swiper {
        width: 100%;
        height: auto;
        margin-top: 20px;
    }
    .gallery-side-list .swiper-slide {
        width: auto;
    }
    .thumb-btn {
        width: 100px;
        height: 80px; /* Slightly smaller on mobile if needed, or keep 90px */
    }
    .artcate-info {
        left: 10px;
        bottom: 10px;
    }
    .b-title-wrapper .b-title {
        font-size: 28px;
    }
    .b-price strong {
        font-size: 26px;
    }
}


/* =========================================
   Inquiry Modal Styling
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-container {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: #442c93;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 40px 50px;
}

.modal-body .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.modal-body .form-group:last-child {
    align-items: flex-start;
}

.modal-body .form-group label {
    width: 80px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.modal-body .inp-full {
    flex: 1;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #222;
    border-radius: 0;
    font-size: 16px;
    color: #000;
}

.modal-body textarea.inp-full {
    height: 320px;
    padding: 15px;
    border: 1px solid #E1E1E1;
    resize: none;
}

.modal-body .inp-blank {
    border: none;
    background: transparent;
    padding-left: 0;
    font-size: 17px;
    font-weight: 500;
    color: #000;
    height: auto;
}

.modal-body .writer-txt {
    font-size: 17px;
    color: #000;
    font-weight: 500;
}

.modal-footer {
    padding: 0 50px 50px;
    text-align: center;
}

.modal-footer .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 60px;
    border: 2px solid #442c93;
    border-radius: 30px;
    background: #fff;
    color: #442c93;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-footer .btn-submit:hover {
    background: #442c93;
    color: #fff;
}

@media (max-width: 768px) {
    .modal-container {
        width: calc(100% - 40px);
        margin: 20px;
        border-radius: 20px;
    }
    .modal-body {
        padding: 30px 20px;
    }
    .modal-footer {
        padding: 0 20px 30px;
    }
    .modal-body .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Creation filter alignment in view page */
.creations-section .section-header-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 0;
}

.creation-filter {
    margin-left: 29px; /* Requested PC spacing from title */
    display: flex;
    gap: 0;
}

.creation-filter .btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #D5D5D5;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    margin-left: -1px;
}

.creation-filter .btn-filter:first-child {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.creation-filter .btn-filter:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.creation-filter .btn-filter:hover {
    background-color: #f5f5f5;
}

.creation-filter .btn-filter.active {
    background: #000;
    border-color: #000;
    color: #fff;
    z-index: 1;
    font-weight: 500;
}

@media (max-width: 768px) {
    .creations-section .section-header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .creations-section .creation-filter {
        margin-left: 0 !important;
        margin-top: 15px;
        width: 100%;
    }
    .creations-section .btn-filter {
        flex: 1;
    }
}
