/* Modern Category Cards Styling */
.category-card-modern {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f3f4f6;
}

.category-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Category-specific background images */
.category-electronics {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1498049794561-7780e7231661?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

.category-musical-instruments {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

.category-photography {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1502920917128-1aa500764cbd?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

.category-home-garden {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

.category-vehicles {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1544636331-e26879cd4d9b?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

.category-gaming {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1493711662062-fa541adb3fc8?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

.category-tools-diy {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1530124566582-a618bc2615dc?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

.category-events-party {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1530103862676-de8c9debad1d?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

/* Fallback for any other categories */
.category-card-modern:not([class*="category-"]) {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=400&h=300&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card-modern {
        aspect-ratio: 1;
    }
    
    .category-card-modern .absolute.bottom-0 {
        padding: 1rem;
    }
    
    .category-card-modern h3 {
        font-size: 1rem;
    }
}