/* Art Showcase Block - Frontend Styles */
.art-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.art-showcase-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.art-showcase-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.art-showcase-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
}

.art-showcase-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.art-showcase-scroll.dragging {
    cursor: grabbing;
}

.art-showcase-grid {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.art-showcase-item {
    flex: 0 0 260px;
    background: #ffed4e;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.art-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.art-showcase-image {
    width: 100%;
    height: 180px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.art-showcase-item:hover .art-showcase-image img {
    transform: scale(1.05);
}

.art-showcase-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.art-showcase-placeholder::before {
    content: "🎨";
    font-size: 24px;
}

.art-showcase-info {
    text-align: left;
}

.art-showcase-artwork-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.art-showcase-artist {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

/* Navigation Buttons */
.art-showcase-nav {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    flex-shrink: 0;
}

.art-showcase-nav:hover {
    background: #f8f9fa;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.art-showcase-nav:active {
    transform: translateY(0);
}

.art-showcase-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.art-showcase-nav svg {
    width: 24px;
    height: 24px;
}

.art-showcase-nav-left {
    order: -1;
}

.art-showcase-nav-right {
    order: 1;
}

/* Empty state */
.art-showcase-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.art-showcase-empty::before {
    content: "🎨";
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .art-showcase-container {
        padding: 30px 15px;
    }
    
    .art-showcase-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .art-showcase-wrapper {
        gap: 10px;
    }
    
    .art-showcase-item {
        flex: 0 0 220px;
        padding: 12px;
    }
    
    .art-showcase-image {
        height: 150px;
        margin-bottom: 12px;
    }
    
    .art-showcase-artwork-title {
        font-size: 15px;
    }
    
    .art-showcase-artist {
        font-size: 13px;
    }
    
    .art-showcase-nav {
        width: 40px;
        height: 40px;
    }
    
    .art-showcase-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .art-showcase-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .art-showcase-container {
        padding: 20px 10px;
    }
    
    .art-showcase-item {
        flex: 0 0 200px;
        padding: 10px;
    }
    
    .art-showcase-image {
        height: 140px;
        margin-bottom: 10px;
    }
    
    .art-showcase-artwork-title {
        font-size: 14px;
    }
    
    .art-showcase-artist {
        font-size: 12px;
    }
    
    .art-showcase-nav {
        width: 35px;
        height: 35px;
    }
    
    .art-showcase-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation for items loading */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.art-showcase-item {
    animation: slideInFromRight 0.5s ease-out;
}

.art-showcase-item:nth-child(1) { animation-delay: 0.1s; }
.art-showcase-item:nth-child(2) { animation-delay: 0.2s; }
.art-showcase-item:nth-child(3) { animation-delay: 0.3s; }
.art-showcase-item:nth-child(4) { animation-delay: 0.4s; }
.art-showcase-item:nth-child(5) { animation-delay: 0.5s; }

/* Focus styles for accessibility */
.art-showcase-nav:focus,
.art-showcase-item:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.art-showcase-wrapper:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Smooth scrolling for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .art-showcase-scroll {
        scroll-behavior: auto;
    }
    
    .art-showcase-item {
        animation: none;
    }
    
    .art-showcase-item:hover {
        transform: none;
    }
}