/* ===== Artwork Detail Page — Dark Luxury Tabbed Layout ===== */

body.artwork-page {
    background: #0d0d1a;
    color: #e8e4dd;
}

.artwork-detail-wrapper {
    max-width: 960px;
    margin: 90px auto 60px auto;
    padding: 0 24px;
}

/* Back link */
.artwork-detail-back {
    display: inline-block;
    margin-bottom: 24px;
    color: #8e8ea0;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.artwork-detail-back:hover {
    color: #c9a84c;
}

/* Title area */
.artwork-detail-header {
    margin-bottom: 32px;
}

.artwork-detail-title {
    font-size: 2.2rem;
    color: #e8e4dd;
    font-weight: 300;
    letter-spacing: 3px;
    font-family: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
    margin-bottom: 8px;
    line-height: 1.3;
}

.artwork-detail-subtitle {
    color: #8e8ea0;
    font-size: 1rem;
    letter-spacing: 1px;
    font-family: 'Lora', 'Noto Serif SC', serif;
}

/* ===== Tab Bar ===== */
.artwork-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 32px;
    gap: 0;
}

.artwork-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #8e8ea0;
    font-size: 0.85rem;
    font-family: 'Lora', 'Noto Serif SC', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.artwork-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s;
}

.artwork-tab.active {
    color: #e8e4dd;
}

.artwork-tab.active::after {
    background: #c9a84c;
}

.artwork-tab:hover {
    color: #e8e4dd;
}

/* ===== Tab Panels ===== */
.artwork-tab-panel {
    display: none;
}

.artwork-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Details Tab ===== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.detail-card {
    background: #15152a;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 2px solid rgba(201,168,76,0.3);
    border-radius: 6px;
    padding: 16px 20px;
}

.detail-card-label {
    font-size: 0.7rem;
    color: #8e8ea0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    font-family: 'Lora', 'Noto Serif SC', serif;
}

.detail-card-value {
    font-size: 1rem;
    color: #e8e4dd;
    font-family: 'Lora', 'Noto Serif SC', serif;
    line-height: 1.5;
}

/* Description block */
.detail-description {
    background: #15152a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.detail-description p {
    color: #8e8ea0;
    line-height: 2;
    font-size: 0.95rem;
    font-family: 'Lora', 'Noto Serif SC', serif;
    white-space: pre-line;
}

/* ===== Photos Tab ===== */
.photos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.photo-item {
    text-align: center;
}

.photo-item img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    background: #15152a;
}

.photo-item img:hover {
    transform: scale(1.02);
}

/* ===== Research Tab ===== */
.research-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #8e8ea0;
    font-size: 1rem;
    font-family: 'Lora', 'Noto Serif SC', serif;
}

.research-placeholder .research-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

/* ===== Navigation ===== */
.artwork-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.artwork-detail-nav a {
    color: #8e8ea0;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Lora', 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

.artwork-detail-nav a:hover {
    border-color: rgba(201,168,76,0.3);
    color: #e8e4dd;
}

/* ===== Image Modal ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s ease;
}
.image-modal-content {
    width: auto; height: auto;
    min-width: 300px; min-height: 300px;
    max-width: 95vw; max-height: 95vh;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    border-radius: 4px;
}
.image-modal-close {
    position: absolute;
    top: 20px; right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    font-family: 'Cormorant Garamond', serif;
}
.image-modal-close:hover { color: #c9a84c; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .artwork-detail-wrapper {
        margin-top: 70px;
        padding: 0 16px;
    }
    .artwork-detail-title {
        font-size: 1.6rem;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .artwork-tabs {
        overflow-x: auto;
    }
    .artwork-tab {
        padding: 12px 16px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .artwork-detail-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    .artwork-detail-nav {
        flex-direction: column;
        gap: 12px;
    }
    .artwork-detail-nav a {
        width: 100%;
        text-align: center;
    }
}

/* ===== Artwork Detail (legacy class compat) ===== */
.artwork-detail-section {
    padding-top: 80px;
}
.artwork-detail {
    max-width: 960px;
    margin: 0 auto;
}
.artwork-image-large {
    margin-bottom: 32px;
}
.artwork-img-large {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}
.artwork-img-large:hover {
    transform: scale(1.02);
}
.artwork-title-large {
    font-size: 2rem;
    color: #e8e4dd;
    font-weight: 300;
    font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.artwork-info-detail .artwork-meta p {
    color: #8e8ea0;
    margin-bottom: 8px;
}
.artwork-info-detail .artwork-meta p strong {
    color: #e8e4dd;
}
.artwork-info-detail .artwork-description p {
    color: #8e8ea0;
    line-height: 2;
    margin-bottom: 16px;
}
.artwork-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}
.artwork-actions a {
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #8e8ea0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.artwork-actions a:hover {
    border-color: rgba(201,168,76,0.3);
    color: #e8e4dd;
}
