/* Mobile Card Horizontal Scrolling Styles */

/* Hide desktop grid on mobile */
@media (max-width: 768px) {
    .desktop-grid {
        display: none !important;
    }
}

/* Mobile scroll container */
.mobile-scroll-container {
    display: none;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .mobile-scroll-container {
        display: block;
        margin-bottom: 30px;
    }
}

/* Mobile scroll wrapper */
.mobile-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
}

.mobile-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Mobile scroll cards */
.mobile-scroll-card {
    flex: 0 0 100%;
    width: 100vw;
    max-width: 100%;
    scroll-snap-align: start;
    padding: 0 10px;
    box-sizing: border-box;
}

.mobile-scroll-card .game__item,
.mobile-scroll-card .item-layer {
    margin: 0 auto;
    width: calc(100vw - 50px);
    max-width: calc(100vw - 50px);
}

/* Scroll indicators */
.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background-color: #ff0052;
    transform: scale(1.2);
}

.scroll-dot:hover {
    background-color: rgba(255, 0, 82, 0.7);
}

/* Ensure proper spacing for mobile cards */
@media (max-width: 768px) {
    .mobile-scroll-card .game__inner {
        margin: 0 auto;
    }
    
    .mobile-scroll-card .game__content {
        text-align: center;
    }
    
    .mobile-scroll-card .game__thumb {
        text-align: center;
    }
    
    .mobile-scroll-card .item-layer:hover {
        transform: translateY(0px) !important;
    }
}

/* Animation for smooth transitions */
.mobile-scroll-wrapper {
    scroll-behavior: smooth;
}

/* Touch feedback */
.scroll-dot:active {
    transform: scale(0.9);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-scroll-card {
        padding: 0 8px;
    }
    
    .mobile-scroll-card .game__item,
    .mobile-scroll-card .item-layer {
        width: calc(100vw - 50px);
        max-width: calc(100vw - 50px);
    }
}

@media (max-width: 360px) {
    .mobile-scroll-card {
        padding: 0 5px;
    }
    
    .mobile-scroll-card .game__item,
    .mobile-scroll-card .item-layer {
        width: calc(100vw - 50px);
        max-width: calc(100vw - 50px);
    }
}