/* Avatar Outfits Viewer - Custom Styles */
/* Version: 4.0.0 - FastAPI Direct + Batch Images */

#outfitsGrid .card-base {
    animation: scaleIn 0.3s ease-out;
}

#outfitsGrid .card-base:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PRODUCT MODAL STYLES (matching room-history) ===== */
#productModal {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 108, 255, 0.3) transparent;
}

#productModal::-webkit-scrollbar {
    width: 6px;
}

#productModal::-webkit-scrollbar-track {
    background: transparent;
}

#productModal::-webkit-scrollbar-thumb {
    background: rgba(100, 108, 255, 0.3);
    border-radius: 3px;
}

/* Product items hover effect */
.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== LIGHTBOX STYLES (matching room-history) ===== */
#outfitLightbox {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

#outfitLightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Tab buttons - side by side, equal width */
    .tab-btn {
        flex: 1 !important;
        padding: 12px 10px !important;
        font-size: 12px !important;
        text-align: center !important;
    }
    
    .tab-btn i {
        margin-right: 6px !important;
    }
    
    /* Outfit grid - 2 columns */
    #savedOutfitsGrid,
    #roomOutfitsGrid,
    #fullOutfitsGrid,
    .outfits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Outfit cards */
    .outfit-card {
        padding: 8px !important;
    }
    
    .outfit-card img {
        height: 150px !important;
        object-fit: cover !important;
    }
    
    /* Outfit buttons */
    .outfit-button-container {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 8px !important;
    }
    
    .outfit-action-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
    
    /* Pagination */
    #savedPagination,
    #roomPagination,
    #fullPagination {
        gap: 8px !important;
    }
    
    .pagination-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    /* Section box */
    .section-box {
        padding: 12px !important;
        border-radius: 8px 8px 12px 12px !important;
    }
    
    /* Product modal responsive */
    #productModal > div {
        width: 95% !important;
        padding: 16px !important;
        margin: 20px auto !important;
    }
    
    /* Product grid - 2 columns on tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    /* Smaller tabs */
    .tab-btn {
        padding: 10px 8px !important;
        font-size: 11px !important;
    }
    
    /* Single column on very small screens */
    #savedOutfitsGrid,
    #roomOutfitsGrid,
    #fullOutfitsGrid,
    .outfits-grid {
        grid-template-columns: 1fr !important;
    }
    
    .outfit-card img {
        height: 200px !important;
    }
    
    /* Product grid - single column on mobile */
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Product modal full width */
    #productModal > div {
        width: 98% !important;
        padding: 12px !important;
        border-radius: 8px !important;
    }
}
