/* Pinshape Flask - Items Styles */

/* Item Cards */
.card-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.item-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    background-color: #f8f9fa;
}

.price-badge {
    background: linear-gradient(45deg, var(--pinshape-primary), var(--pinshape-secondary));
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.stats-text {
    font-size: 0.875rem;
    color: var(--pinshape-dark);
}

/* Item Detail Styles */
.item-detail-image {
    height: 400px;
    object-fit: cover;
}

.item-detail-carousel-image {
    height: 400px;
    object-fit: cover;
}

/* Image Carousel Thumbnail Styles */
.carousel-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.carousel-thumbnail.active {
    border-color: var(--pinshape-primary);
}

.carousel-thumbnail:hover {
    border-color: var(--pinshape-secondary);
}

/* Horizontal Scrollable Thumbnail Carousel */
.thumbnail-carousel-container {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.thumbnail-carousel {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-carousel::-webkit-scrollbar {
    display: none;
}

.thumbnail-carousel .carousel-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

/* Navigation Arrows */
.thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    color: #6c757d;
}

.thumbnail-nav:hover {
    background: white;
    border-color: var(--pinshape-primary);
    color: var(--pinshape-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thumbnail-nav.prev {
    left: -16px;
}

.thumbnail-nav.next {
    right: -16px;
}

.thumbnail-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hide arrows on very small screens where touch is primary */
@media (max-width: 576px) {
    .thumbnail-nav {
        display: none;
    }
}

/* Carousel Control Buttons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100%, 100%;
    width: 2rem;
    height: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: white;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
}

.carousel-indicators .active {
    background-color: white;
}

/* Featured Designer Avatar */
.featured-designer-avatar {
    width: 80px;
    height: 80px;
}

/* Additional Item Styles */
.item-image {
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.stats-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* File list improvements for individual downloads */
.file-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

.file-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background-color: #e9ecef;
}

.file-info {
    flex-grow: 1;
    margin-right: 1rem;
}

.file-name {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

/* File type specific styling */
.file-type-stl { color: #007bff; }
.file-type-obj { color: #28a745; }
.file-type-ply { color: #dc3545; }
.file-type-3mf { color: #ffc107; }
.file-type-amf { color: #6f42c1; }
.file-type-x3d { color: #fd7e14; }
.file-type-dae { color: #20c997; }
.file-type-blend { color: #e83e8c; }
.file-type-fbx { color: #6c757d; }
.file-type-zip { color: #17a2b8; }
.file-type-rar { color: #343a40; }
.file-type-pdf { color: #dc3545; }
.file-type-txt { color: #495057; }
.file-type-gcode { color: #28a745; }

/* File metadata styling */
.file-size {
    font-size: 0.8rem;
    color: #6c757d;
}

.file-type {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 500;
    background-color: #e9ecef;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.file-download-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.25rem;
}

/* File list scrollbar */
.file-list::-webkit-scrollbar {
    width: 8px;
}

.file-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.375rem;
}

.file-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 0.375rem;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Compact stats for side-by-side layout */
.compact-stats {
    font-size: 0.85rem;
    color: #6c757d;
}

.compact-stats .stats-item {
    margin-right: 1rem;
}

/* Simplified layout for item detail page */
.item-detail-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Description card */
.description-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.description-card h5 {
    color: var(--pinshape-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.description-card p {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 0;
}

/* File info card */
.file-info-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

/* File list with custom scrollbar */
.file-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: white;
}

.file-list-container::-webkit-scrollbar {
    width: 8px;
}

.file-list-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 0.375rem;
}

.file-list-container::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 0.375rem;
}

.file-list-container::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .item-detail-image,
    .item-detail-carousel-image {
        height: 250px;
    }
    
    .thumbnail-carousel .carousel-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .file-list {
        max-height: 200px;
    }
    
    .file-item {
        padding: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .description-card,
    .file-info-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .featured-designer-avatar {
        width: 60px;
        height: 60px;
    }
} 