/* Modern Game Cards - Horizontal Scroll Layout */

.my-games-section {
    padding: 40px 0;
    background: #000;
}

.my-games-title {
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    padding-left: 15px;
}

.games-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 15px 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.games-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.games-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.games-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* .games-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} */

.games-grid {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.modern-game-card {
    flex: 0 0 auto;
    width: 160px;
    cursor: pointer;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.modern-game-card:hover {
    transform: translateY(-8px);
}

.modern-game-card__image {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease;
}

.modern-game-card:hover .modern-game-card__image {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.modern-game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modern-game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-game-card:hover .modern-game-card__overlay {
    opacity: 1;
}

.modern-game-card__buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 70%;
}

.modern-game-card__btn {
    flex: 1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    /* cursor: pointer; */
}

.modern-game-card__btn--play {
    background: #10b981;
    color: #fff;
}

/* .modern-game-card__btn--play:hover {
    background: #059669;
    transform: scale(1.05);
} */

.modern-game-card__btn--demo {
    background: #6366f1;
    color: #fff;
}

/* .modern-game-card__btn--demo:hover {
    background: #4f46e5;
    transform: scale(1.05);
} */

.modern-game-card__info {
    margin-top: 12px;
}

.modern-game-card__title {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-game-card__subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-game-card {
        width: 140px;
    }
    
    .modern-game-card__image {
        width: 140px;
        height: 140px;
    }
    
    .my-games-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .modern-game-card {
        width: 120px;
    }
    
    .modern-game-card__image {
        width: 120px;
        height: 120px;
        border-radius: 4px;
    }
    
    .my-games-title {
        font-size: 20px;
    }
    
    .modern-game-card__title {
        font-size: 13px;
    }
    
    .modern-game-card__subtitle {
        font-size: 11px;
    }
}
