/**
 * Showroom Gallery Skeleton Styles
 * Version: 1.0.0
 */

/* Gallery Wrapper */
.showroom-gallery-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Main Image Container */
.showroom-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.showroom-gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Status Badge */
.showroom-gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.showroom-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.showroom-badge-sold {
    background-color: #ef4444;
    color: white;
}

.showroom-badge-pending {
    background-color: #f59e0b;
    color: white;
}

.showroom-badge-used {
    background-color: #6b7280;
    color: white;
}

.showroom-badge-new {
    background-color: #10b981;
    color: white;
}

.showroom-badge-available {
    background-color: #3b82f6;
    color: white;
}

/* Navigation Arrows */
.showroom-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.showroom-gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.showroom-gallery-prev {
    left: 1rem;
}

.showroom-gallery-next {
    right: 1rem;
}

/* Thumbnails Wrapper */
.showroom-gallery-thumbnails-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

/* Skeleton Loader */
.showroom-thumbnail-skeleton {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    min-height: 90px;
}

.showroom-thumbnail-skeleton::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.skeleton-thumbnail-item {
    flex-shrink: 0;
    width: 6rem;
    aspect-ratio: 4/3;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hide skeleton when content is ready */
.showroom-thumbnail-skeleton.hidden {
    display: none;
}

/* Actual Thumbnails Container */
.showroom-gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.showroom-gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.showroom-gallery-thumbnails.hidden {
    display: none;
}

.showroom-gallery-thumbnails.ready {
    display: flex !important;
}

/* Thumbnail Buttons */
.showroom-thumbnail-btn {
    flex-shrink: 0;
    width: 6rem;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: none;
    padding: 0;
}

.showroom-thumbnail-btn:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.showroom-thumbnail-btn.active {
    border-color: #3b82f6;
}

.showroom-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumbnail Navigation Arrows */
.showroom-thumbnail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.showroom-thumbnail-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.showroom-thumbnail-prev {
    left: -1rem;
}

.showroom-thumbnail-next {
    right: -1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .showroom-gallery-arrow {
        width: 2rem;
        height: 2rem;
    }
    
    .showroom-gallery-prev {
        left: 0.5rem;
    }
    
    .showroom-gallery-next {
        right: 0.5rem;
    }
    
    .showroom-thumbnail-btn {
        width: 5rem;
    }
    
    .skeleton-thumbnail-item {
        width: 5rem;
    }
    
    .showroom-thumbnail-arrow {
        display: none;
    }
}

/* Loading State */
.showroom-gallery-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.showroom-gallery-thumbnails.ready {
    animation: fadeIn 0.3s ease-in-out;
}
