/* MoMA Template - Works Page Styles */

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.work-item {
    position: relative;
    background: var(--background-color);
}

.work-item a {
    display: block;
    text-decoration: none;
    color: var(--primary-color);
}

.work-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: var(--placeholder-bg);
}

.work-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-info {
    padding: 20px 0;
}

.work-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.work-meta {
    font-size: 12px;
    color: var(--secondary-color);
    line-height: 1.5;
}

.work-meta span {
    display: inline-block;
}

.work-meta .separator {
    margin: 0 var(--spacing-sm);
    color: var(--separator-color);
}

/* Work Type Indicators */
.work-item[data-work-type="artwork"] {
    position: relative;
}

.work-item[data-work-type="artwork"]::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.work-item[data-work-type="case_study"]::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

/* Availability Status Styling in Work Cards */
.work-meta .availability-status {
    font-weight: 500;
}

.work-meta .availability-status.for_sale {
    color: #28a745;
}

.work-meta .availability-status.sold {
    color: #dc3545;
}

.work-meta .availability-status.on_loan {
    color: #ffc107;
}

.work-meta .availability-status.nfs {
    color: var(--secondary-color);
}

.work-meta .work-client {
    font-style: italic;
    color: var(--text-dark-color);
}

/* Page Header */
.page-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.page-title {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-intro {
    font-size: 18px;
    color: #616161;
    line-height: 1.7;
    max-width: 720px;
}

.page-subtitle {
    font-size: 16px;
    color: #757575;
    line-height: 1.6;
    max-width: 600px;
}

/* Filter Controls */
.filter-controls {
    margin-bottom: 40px;
    padding-bottom: 0;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: baseline;
}

.filter-label {
    font-size: 12px;
    font-weight: 400;
    color: #9e9e9e;
    margin-right: 0;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-family: inherit;
    color: #9e9e9e;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    text-decoration: none;
}

.filter-btn:hover {
    color: #616161;
}

.filter-btn.active {
    color: #212121;
    font-weight: 500;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #212121;
}

/* No works message */
.no-works {
    text-align: center;
    padding: 120px 20px;
    color: #757575;
}

.no-works h2 {
    font-size: 24px;
    font-weight: 400;
    color: #424242;
    margin-bottom: 12px;
}

.no-works p {
    font-size: 14px;
}

/* No filtered works message */
.no-filtered-works {
    text-align: center;
    padding: 80px 20px;
    color: #757575;
}

.no-filtered-works h3 {
    font-size: 20px;
    font-weight: 400;
    color: #424242;
    margin-bottom: 12px;
}

.no-filtered-works p {
    font-size: 14px;
    color: #9e9e9e;
}

/* Responsive Grid */
@media (max-width: 1280px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-header {
        padding-bottom: 30px;
    }
}