/* Artwork Page Styles */

/* Utility */
.hidden {
    display: none !important;
}

.artwork-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 1.5rem;
}

.error-state svg {
    width: 80px;
    height: 80px;
    color: var(--gray-400);
}

.error-state h2 {
    color: var(--gray-900);
    font-size: 2rem;
    margin: 0;
}

.error-state p {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 500px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--gray-400);
}

.breadcrumb span:last-child {
    color: var(--primary);
    font-weight: 600;
}

/* Artwork Content */
.artwork-content {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Artwork Grid */
.artwork-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Image Section */
.artwork-image-section {
    position: sticky;
    top: 2rem;
}

.artwork-image-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    position: relative;
}

.artwork-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.artwork-image-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    border: none;
}

.artwork-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-radius: 12px;
}

.artwork-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.artwork-image-placeholder p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Media Thumbnails Navigation */
.media-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: center;
}

.media-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.media-thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.media-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(90, 107, 71, 0.3);
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumbnail.video-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Media Navigation Arrows */
.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.media-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.media-nav-prev {
    left: 1rem;
}

.media-nav-next {
    right: 1rem;
}

.media-nav svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* Details Section */
.artwork-details-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

/* Header */
.artwork-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-100);
}

.artwork-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 24px;
    margin-bottom: 1rem;
}

.artwork-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--gray-900);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.artwork-year {
    font-size: 1.125rem;
    color: var(--gray-500);
    font-weight: 500;
    margin: 0;
}

/* Price Section */
.artwork-price-section {
    background: linear-gradient(135deg, rgba(90, 107, 71, 0.05) 0%, rgba(139, 153, 118, 0.05) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border: 2px solid rgba(90, 107, 71, 0.1);
}

.price-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* Details Grid */
.artwork-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: var(--cream-dark);
    transform: translateX(4px);
}

.detail-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    color: var(--primary);
}

.detail-content h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 0.375rem;
}

.detail-content p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* Description */
.artwork-description {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--cream-dark);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.artwork-description h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 1rem;
}

.artwork-description p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin: 0;
}

/* Action Buttons */
.artwork-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(90, 107, 71, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(90, 107, 71, 0.4);
}

.btn-buy svg {
    width: 1.5rem;
    height: 1.5rem;
}

.btn-contact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(90, 107, 71, 0.3);
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-4px);
}

.btn-back svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .artwork-image-section {
        position: relative;
        top: 0;
    }

    .artwork-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .artwork-page-container {
        padding: 2rem 1rem;
    }

    .artwork-image-container {
        padding: 1rem;
    }

    .artwork-details-section {
        padding: 2rem 1.5rem;
    }

    .artwork-title {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 2.25rem;
    }

    .artwork-actions {
        flex-direction: column;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .artwork-page-container {
        padding: 1.5rem 1rem;
    }

    .artwork-details-section {
        padding: 1.5rem 1rem;
    }

    .artwork-title {
        font-size: 1.75rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .detail-item {
        padding: 1rem;
    }

    .artwork-description {
        padding: 1.5rem;
    }
}
