/* Artwork Page CSS */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.artwork-item {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
    height: 100%;
}

.artwork-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.artwork-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 aspect ratio */
}

.artwork-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artwork-item:hover .artwork-overlay {
    opacity: 1;
}

.artwork-overlay-content {
    text-align: center;
    padding: 20px;
}

.artwork-category {
    display: inline-block;
    background: #E95420;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.view-artwork {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.view-artwork:hover {
    background: #E95420;
    color: #fff;
}

.artwork-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.artwork-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.artwork-artist {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.artwork-artist a {
    color: #E95420;
    text-decoration: none;
}

.artwork-artist a:hover {
    text-decoration: underline;
}

.artwork-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.artwork-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.artwork-price {
    font-weight: 600;
    color: #333;
}

.btn-purchase {
    display: inline-block;
    background: #E95420;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-purchase:hover {
    background: #d44613;
    color: #fff;
}

.artwork-sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sold-badge {
    background: #dc3545;
    color: #fff;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 4px;
    transform: rotate(-15deg);
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .artworks-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Animation for filter transitions */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Artwork Modal Styles */
.artwork-modal .modal-dialog {
    max-width: 900px;
}

.artwork-modal .modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.artwork-modal .modal-body {
    padding: 0;
}

.artwork-modal-image {
    height: 450px;
    background-size: cover;
    background-position: center;
}

.artwork-modal-info {
    padding: 30px;
}

.artwork-modal-artist-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.artwork-modal-actions {
    margin-top: 20px;
} 