/* Mobile Category Carousel */
.mobile-category-carousel {
    display: none;
    padding: 4rem 0 6rem 0;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.mobile-category-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.mobile-category-carousel h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.category-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -1rem;
}

.category-carousel {
    display: flex;
    gap: 2.5rem;
    padding: 0 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-card {
    flex: 0 0 240px;
    height: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.category-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    z-index: 1;
}

.category-image i {
    position: relative;
    z-index: 3;
    font-size: 4rem;
    color: white;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-card.promo .category-image {
    background-image: url('https://images.unsplash.com/photo-1607083206869-4c7672e72a8a?w=400');
    background-size: cover;
    background-position: center;
}

.category-card.discount .category-image {
    background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=400');
    background-size: cover;
    background-position: center;
}

.category-card.anime .category-image {
    background-image: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400');
    background-size: cover;
    background-position: center;
}

.category-card.events .category-image {
    background-image: url('https://images.unsplash.com/photo-1540039155733-5bb30b53aa14?w=400');
    background-size: cover;
    background-position: center;
}

.category-card.tutoring .category-image {
    background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=400');
    background-size: cover;
    background-position: center;
}

.category-content {
    padding: 1.5rem;
    background: white;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.category-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.category-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.category-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.75rem;
    color: #4a5568;
    line-height: 1.4;
    font-weight: 400;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.category-stats .stat {
    font-size: 0.65rem;
    font-weight: 600;
    color: #c2185b;
    background: rgba(194, 24, 91, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-category-carousel {
        display: block;
    }
    
    /* Hide original mobile cards */
    .mobile-cards-section {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .category-card {
        flex: 0 0 260px;
        height: 400px;
    }
    
    .category-image {
        height: 240px;
        font-size: 2.5rem;
    }
    
    .category-content {
        padding: 1.5rem;
        height: 160px;
    }
    
    .category-content h3 {
        font-size: 1.2rem;
    }
    
    .category-content p {
        font-size: 0.9rem;
    }
}